compose/syncthing/discosrv/docker-compose.yml

25 lines
886 B
YAML

version: "3.8"
services:
syncthing-discosrv:
image: syncthing/discosrv
container_name: syncthing-discosrv
restart: unless-stopped
volumes:
- "./data:/data"
command:
- "--http"
- "--db-dir=/data"
- "--listen=443"
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.syncthing-discosrv.rule=Host(`syncthing.skyone.dev`)"
- "traefik.http.routers.syncthing-discosrv.entrypoints=websecure"
- "traefik.http.routers.syncthing-discosrv.service=syncthing-discosrv"
- "traefik.http.middlewares.syncthing-discosrv-headers.headers.customrequestheaders.X-Client-Port=443"
- "traefik.http.routers.syncthing-discosrv.middlewares=syncthing-discosrv-headers@docker"
- "traefik.http.services.syncthing-discosrv.loadBalancer.server.port=443"