This commit is contained in:
2024-02-22 13:05:57 +05:30
parent 247464d712
commit 7bd1d6fde3
2 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -88,5 +88,5 @@ RUN bash -c "echo -e 'secret\nsecret' | passwd -q root"
# VOLUME [ "/sys/fs/cgroup" ] # VOLUME [ "/sys/fs/cgroup" ]
CMD ["/lib/systemd/systemd"] CMD ["/sbin/init", "--log-target=console"]
# CMD [ "init", "--log-target=console", "--log-level=debug", "--crash-shell" ] # CMD [ "init", "--log-target=console", "--log-level=debug", "--crash-shell" ]
+10 -5
View File
@@ -1,4 +1,3 @@
version: '3' version: '3'
services: services:
www: www:
@@ -7,11 +6,17 @@ services:
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
tty: true tty: true
ports: ports:
- 8090:80 - 0.0.0.0:8282:22
- 8093:443 - 8280:80
- 8099:10000 - 8281:443
- 8283:10000
# Fallback if systemd is not working
# command: '/bin/bash -c "trap : TERM INT; sleep infinity & wait"' # command: '/bin/bash -c "trap : TERM INT; sleep infinity & wait"'
command: "/sbin/init --log-target=console --log-level=debug --crash-shell" # To debug systemd
# command: "/sbin/init --log-target=console --log-level=debug --crash-shell"
# Production command
command: "/sbin/init --log-target=console"
environment: environment:
# container: docker # container: docker
container: podman container: podman