docker-mirror/docker-compose-tunnels.yml

40 lines
1.1 KiB
YAML

version: "3.7"
services:
nginx:
container_name: nginx
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
syncthing:
image: linuxserver/syncthing
container_name: syncthing
hostname: ${DOMAIN_NAME:?err}
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- './data/syncthing:/config'
- './http-root/chaotic-aur:/repo'
ports:
- '127.0.0.1:8384:8384'
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp
restart: unless-stopped
cloudflared:
image: erisamoe/cloudflared
container_name: cloudflared
command: --origincert /root/.cloudflared/cert.pem tunnel run --url http://nginx ${DOMAIN_NAME:?err}
restart: unless-stopped
volumes:
- './data/cloudflared/etc:/etc/cloudflared'
- './data/cloudflared/home:/root'
- './preset/passwd:/etc/passwd'