Just aestetic and more logical placement for restart.

Signed-off-by: Gontier Julien <gontierjulien68@gmail.com>
This commit is contained in:
Gontier Julien 2022-09-18 18:54:00 +02:00
parent f6bee53b1a
commit 44786fd4e7
2 changed files with 4 additions and 4 deletions

View File

@ -2,13 +2,13 @@ version: "3.7"
services:
nginx:
container_name: nginx
restart: ${RESTART:-unless-stopped}
hostname: ${DOMAIN_NAME:?err}
volumes:
- './http-root:/var/lib/nginx/html/http-root:ro'
- './preset/nginx.conf:/etc/nginx/nginx.conf:ro'
- './preset/conf.d-tunnels:/etc/nginx/conf.d:ro'
image: nginx
restart: ${RESTART:-unless-stopped}
syncthing:
image: linuxserver/syncthing
@ -32,8 +32,8 @@ services:
image: erisamoe/cloudflared
container_name: cloudflared
command: --origincert /root/.cloudflared/cert.pem tunnel run --url http://nginx ${DOMAIN_NAME:?err}
restart: ${RESTART:-unless-stopped}
volumes:
- './data/cloudflared/etc:/etc/cloudflared'
- './data/cloudflared/home:/root'
- './preset/passwd:/etc/passwd'
restart: ${RESTART:-unless-stopped}

View File

@ -2,7 +2,6 @@ version: "3.7"
services:
nginx:
container_name: nginx
restart: ${RESTART:-unless-stopped}
hostname: ${DOMAIN_NAME:?err}
volumes:
- './http-root:/var/lib/nginx/html/http-root:ro'
@ -18,6 +17,7 @@ services:
- '80:80'
- '443:443'
image: nginx
restart: ${RESTART:-unless-stopped}
syncthing:
image: linuxserver/syncthing
@ -39,10 +39,10 @@ services:
certbot:
container_name: certbot
restart: ${RESTART:-unless-stopped}
volumes:
- './data/acme-webroot:/srv/http/webroot'
- './data/letsencrypt/etc:/etc/letsencrypt'
- './data/letsencrypt/var:/var/lib/letsencrypt'
image: certbot/certbot:${LETSENCRYPT_TAG:-latest}
entrypoint: "/bin/sh -c 'trap exit TERM; sleep 10; while :; do certbot renew -w /srv/http/webroot/ --webroot; sleep 12h & wait $${!}; done;'"
restart: ${RESTART:-unless-stopped}