mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-12-14 01:29:21 +00:00
Added ssl
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user