mirror of
https://github.com/wmnnd/nginx-certbot
synced 2023-04-20 18:47:46 +08:00
18 lines
491 B
YAML
18 lines
491 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
nginx:
|
||
|
image: nginx:1.15-alpine
|
||
|
volumes:
|
||
|
- ./data/nginx:/etc/nginx/conf.d
|
||
|
- ./data/certbot/conf:/etc/letsencrypt
|
||
|
- ./data/certbot/www:/var/www/certbot
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
- "443:443"
|
||
|
certbot:
|
||
|
image: certbot/certbot
|
||
|
volumes:
|
||
|
- ./data/certbot/conf:/etc/letsencrypt
|
||
|
- ./data/certbot/www:/var/www/certbot
|
||
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|