2022-02-27 19:46:48 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
nginx:
|
2022-09-18 20:38:32 +00:00
|
|
|
image: nginx:mainline-alpine
|
2022-02-27 19:46:48 +00:00
|
|
|
container_name: nginx
|
|
|
|
hostname: ${DOMAIN_NAME:?err}
|
|
|
|
volumes:
|
2022-04-19 18:23:26 +00:00
|
|
|
- './http-root:/var/lib/nginx/html/http-root:ro'
|
2022-02-27 19:46:48 +00:00
|
|
|
- './preset/nginx.conf:/etc/nginx/nginx.conf:ro'
|
|
|
|
- './preset/conf.d-tunnels:/etc/nginx/conf.d:ro'
|
2022-09-18 16:54:00 +00:00
|
|
|
restart: ${RESTART:-unless-stopped}
|
2022-02-27 19:46:48 +00:00
|
|
|
|
|
|
|
syncthing:
|
2022-09-18 20:38:32 +00:00
|
|
|
image: syncthing/syncthing:latest
|
2022-02-27 19:46:48 +00:00
|
|
|
container_name: syncthing
|
|
|
|
hostname: ${DOMAIN_NAME:?err}
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
volumes:
|
2022-09-18 20:38:32 +00:00
|
|
|
- './data/syncthing:/var/syncthing/config'
|
2022-04-19 18:23:26 +00:00
|
|
|
- './http-root/chaotic-aur:/repo'
|
2022-02-27 19:46:48 +00:00
|
|
|
ports:
|
2022-05-11 22:35:51 +00:00
|
|
|
- '127.0.0.1:8384:8384'
|
2022-02-27 19:46:48 +00:00
|
|
|
- 22000:22000/tcp
|
|
|
|
- 22000:22000/udp
|
|
|
|
- 21027:21027/udp
|
2022-07-23 18:41:50 +00:00
|
|
|
restart: ${RESTART:-unless-stopped}
|
2022-02-27 19:46:48 +00:00
|
|
|
|
2022-11-26 04:53:02 +00:00
|
|
|
chaotic-management:
|
|
|
|
container_name: chaotic-management
|
|
|
|
restart: ${RESTART:-unless-stopped}
|
|
|
|
image: nginx
|
|
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; sleep 10; while :; do curl -X POST -H \"X-API-Key: ${SYNCTHING_API_KEY:-XYZ}\" http://syncthing:8384/rest/db/revert?folder=jhcrt-m2dra; sleep 1h & wait $${!}; done;'"
|
|
|
|
|
2022-02-27 19:46:48 +00:00
|
|
|
cloudflared:
|
2022-09-18 20:38:32 +00:00
|
|
|
image: erisamoe/cloudflared:latest
|
2022-02-27 19:46:48 +00:00
|
|
|
container_name: cloudflared
|
2022-07-11 18:08:38 +00:00
|
|
|
command: --origincert /root/.cloudflared/cert.pem tunnel run --url http://nginx ${DOMAIN_NAME:?err}
|
2022-02-27 19:46:48 +00:00
|
|
|
volumes:
|
|
|
|
- './data/cloudflared/etc:/etc/cloudflared'
|
|
|
|
- './data/cloudflared/home:/root'
|
2022-07-11 18:08:38 +00:00
|
|
|
- './preset/passwd:/etc/passwd'
|
2022-09-18 16:54:00 +00:00
|
|
|
restart: ${RESTART:-unless-stopped}
|