Change to the official images for syncthing and nginx to the alpine images. (#1)
* Change to the official images for syncthing and nginx to the alpine images. Signed-off-by: Gontier Julien <gontierjulien68@gmail.com> * Add .gitignore Signed-off-by: Gontier Julien <gontierjulien68@gmail.com> Signed-off-by: Gontier Julien <gontierjulien68@gmail.com>
This commit is contained in:
parent
f6bee53b1a
commit
8a5e9ef5c3
|
@ -0,0 +1,3 @@
|
||||||
|
http-root/
|
||||||
|
data/
|
||||||
|
.env
|
|
@ -1,6 +1,7 @@
|
||||||
version: "3.7"
|
version: "3.7"
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
|
image: nginx:mainline-alpine
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
restart: ${RESTART:-unless-stopped}
|
restart: ${RESTART:-unless-stopped}
|
||||||
hostname: ${DOMAIN_NAME:?err}
|
hostname: ${DOMAIN_NAME:?err}
|
||||||
|
@ -8,10 +9,9 @@ services:
|
||||||
- './http-root:/var/lib/nginx/html/http-root:ro'
|
- './http-root:/var/lib/nginx/html/http-root:ro'
|
||||||
- './preset/nginx.conf:/etc/nginx/nginx.conf:ro'
|
- './preset/nginx.conf:/etc/nginx/nginx.conf:ro'
|
||||||
- './preset/conf.d-tunnels:/etc/nginx/conf.d:ro'
|
- './preset/conf.d-tunnels:/etc/nginx/conf.d:ro'
|
||||||
image: nginx
|
|
||||||
|
|
||||||
syncthing:
|
syncthing:
|
||||||
image: linuxserver/syncthing
|
image: syncthing/syncthing:latest
|
||||||
container_name: syncthing
|
container_name: syncthing
|
||||||
hostname: ${DOMAIN_NAME:?err}
|
hostname: ${DOMAIN_NAME:?err}
|
||||||
environment:
|
environment:
|
||||||
|
@ -19,7 +19,7 @@ services:
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
volumes:
|
volumes:
|
||||||
- './data/syncthing:/config'
|
- './data/syncthing:/var/syncthing/config'
|
||||||
- './http-root/chaotic-aur:/repo'
|
- './http-root/chaotic-aur:/repo'
|
||||||
ports:
|
ports:
|
||||||
- '127.0.0.1:8384:8384'
|
- '127.0.0.1:8384:8384'
|
||||||
|
@ -29,7 +29,7 @@ services:
|
||||||
restart: ${RESTART:-unless-stopped}
|
restart: ${RESTART:-unless-stopped}
|
||||||
|
|
||||||
cloudflared:
|
cloudflared:
|
||||||
image: erisamoe/cloudflared
|
image: erisamoe/cloudflared:latest
|
||||||
container_name: cloudflared
|
container_name: cloudflared
|
||||||
command: --origincert /root/.cloudflared/cert.pem tunnel run --url http://nginx ${DOMAIN_NAME:?err}
|
command: --origincert /root/.cloudflared/cert.pem tunnel run --url http://nginx ${DOMAIN_NAME:?err}
|
||||||
restart: ${RESTART:-unless-stopped}
|
restart: ${RESTART:-unless-stopped}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
version: "3.7"
|
version: "3.7"
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
|
image: nginx:mainline-alpine
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
restart: ${RESTART:-unless-stopped}
|
restart: ${RESTART:-unless-stopped}
|
||||||
hostname: ${DOMAIN_NAME:?err}
|
hostname: ${DOMAIN_NAME:?err}
|
||||||
|
@ -17,10 +18,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- '80:80'
|
- '80:80'
|
||||||
- '443:443'
|
- '443:443'
|
||||||
image: nginx
|
|
||||||
|
|
||||||
syncthing:
|
syncthing:
|
||||||
image: linuxserver/syncthing
|
image: syncthing/syncthing:latest
|
||||||
container_name: syncthing
|
container_name: syncthing
|
||||||
hostname: ${DOMAIN_NAME:?err}
|
hostname: ${DOMAIN_NAME:?err}
|
||||||
environment:
|
environment:
|
||||||
|
@ -28,7 +28,7 @@ services:
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
volumes:
|
volumes:
|
||||||
- './data/syncthing:/config'
|
- './data/syncthing:/var/syncthing/config'
|
||||||
- './http-root/chaotic-aur:/repo'
|
- './http-root/chaotic-aur:/repo'
|
||||||
ports:
|
ports:
|
||||||
- '127.0.0.1:8384:8384'
|
- '127.0.0.1:8384:8384'
|
||||||
|
@ -38,11 +38,11 @@ services:
|
||||||
restart: ${RESTART:-unless-stopped}
|
restart: ${RESTART:-unless-stopped}
|
||||||
|
|
||||||
certbot:
|
certbot:
|
||||||
|
image: certbot/certbot:${LETSENCRYPT_TAG:-latest}
|
||||||
container_name: certbot
|
container_name: certbot
|
||||||
restart: ${RESTART:-unless-stopped}
|
restart: ${RESTART:-unless-stopped}
|
||||||
volumes:
|
volumes:
|
||||||
- './data/acme-webroot:/srv/http/webroot'
|
- './data/acme-webroot:/srv/http/webroot'
|
||||||
- './data/letsencrypt/etc:/etc/letsencrypt'
|
- './data/letsencrypt/etc:/etc/letsencrypt'
|
||||||
- './data/letsencrypt/var:/var/lib/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;'"
|
entrypoint: "/bin/sh -c 'trap exit TERM; sleep 10; while :; do certbot renew -w /srv/http/webroot/ --webroot; sleep 12h & wait $${!}; done;'"
|
||||||
|
|
Loading…
Reference in New Issue