2024-10-14 21:35:13 +00:00
|
|
|
services:
|
|
|
|
|
nginx:
|
|
|
|
|
image: nginx:1.27.2-alpine
|
|
|
|
|
ports:
|
|
|
|
|
- "80:80"
|
|
|
|
|
- "443:443"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data/nginx:/etc/nginx/conf.d
|
2024-10-14 21:50:05 +00:00
|
|
|
- ./data/certbot/conf:/etc/letsencrypt
|
|
|
|
|
- ./data/certbot/www:/var/www/certbot
|
2024-10-15 18:27:04 +00:00
|
|
|
- ./data/nginx/webapp:/var/www/
|
2024-10-14 21:35:13 +00:00
|
|
|
certbot:
|
2024-10-14 21:50:05 +00:00
|
|
|
image: certbot/certbot
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data/certbot/conf:/etc/letsencrypt
|
2024-10-14 21:58:43 +00:00
|
|
|
- ./data/certbot/www:/var/www/certbot
|
|
|
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|