Browse Source

Updates

main
Harish Karumuthil 2 years ago
parent
commit
7bd1d6fde3
  1. 2
      Dockerfile
  2. 15
      docker-compose.yml

2
Dockerfile

@ -88,5 +88,5 @@ RUN bash -c "echo -e 'secret\nsecret' | passwd -q root"
# VOLUME [ "/sys/fs/cgroup" ]
CMD ["/lib/systemd/systemd"]
CMD ["/sbin/init", "--log-target=console"]
# CMD [ "init", "--log-target=console", "--log-level=debug", "--crash-shell" ]

15
docker-compose.yml

@ -1,4 +1,3 @@
version: '3'
services:
www:
@ -7,11 +6,17 @@ services:
dockerfile: ./Dockerfile
tty: true
ports:
- 8090:80
- 8093:443
- 8099:10000
- 0.0.0.0:8282:22
- 8280:80
- 8281:443
- 8283:10000
# Fallback if systemd is not working
# 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:
# container: docker
container: podman

Loading…
Cancel
Save