1
0
mirror of https://github.com/ArcticFoxes-net/Signal-TLS-Proxy synced 2024-12-22 00:21:32 -05:00

NGINX autoreload

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-08-28 18:37:17 -07:00 committed by GitHub
parent 169fe989cc
commit 394b316e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,13 @@ services:
ports: ports:
- "443:443" - "443:443"
- "80:80" - "80:80"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /usr/sbin/nginx -s reload; done & /usr/sbin/nginx -c /etc/nginx/nginx.conf -g \"daemon off;\"'"
nginx-relay: nginx-relay:
image: nginx:alpine image: nginx:alpine
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z - ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /usr/sbin/nginx -s reload; done & /usr/sbin/nginx -c /etc/nginx/nginx.conf -g \"daemon off;\"'"
certbot: certbot:
image: certbot/certbot image: certbot/certbot
restart: unless-stopped restart: unless-stopped