Fixed SSH

This commit is contained in:
ayxan
2022-10-15 00:02:23 +00:00
parent 5e5c1800c7
commit 4f795b628f
5 changed files with 8 additions and 47 deletions

View File

@@ -31,20 +31,20 @@ services:
- "80:80"
- "443:443"
volumes:
- ./config/nginx/local.conf:/etc/nginx/conf.d/default.conf:ro
- ./config/nginx/server.conf:/etc/nginx/conf.d/default.conf:ro
- ./config/certbot/conf:/etc/letsencrypt
- ./config/certbot/www:/var/www/certbot
- static_volume:/django_static
depends_on:
- django
# command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
volumes:
- ./config/certbot/conf:/etc/letsencrypt
- ./config/certbot/www:/var/www/certbot
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
dbdata: