Added ssl

This commit is contained in:
ayxan
2022-10-14 23:04:15 +00:00
parent 569c2ffe79
commit 26ea4c97d3
4 changed files with 130 additions and 2 deletions

View File

@@ -28,12 +28,23 @@ services:
nginx:
image: nginx
ports:
- "1337:8080"
- "80:80"
- "443:443"
volumes:
- ./config/nginx/local.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;\"'"
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;'"
volumes:
dbdata: