mirror of
https://github.com/wmnnd/nginx-certbot
synced 2023-04-20 18:47:46 +08:00
Add restart policy to containers
This commit is contained in:
parent
a85799cfa7
commit
c6959851b5
@ -2,6 +2,7 @@ version: '3'
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:1.15-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data/nginx:/etc/nginx/conf.d
|
||||
- ./data/certbot/conf:/etc/letsencrypt
|
||||
@ -12,6 +13,7 @@ services:
|
||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data/certbot/conf:/etc/letsencrypt
|
||||
- ./data/certbot/www:/var/www/certbot
|
||||
|
Loading…
x
Reference in New Issue
Block a user