From a1d45e7385e8f4feea643576d122111b8071bbf0 Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Wed, 21 Sep 2022 04:12:48 +0100 Subject: [PATCH] syncthing: Initial commit --- syncthing/docker-compose.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 syncthing/docker-compose.yml diff --git a/syncthing/docker-compose.yml b/syncthing/docker-compose.yml new file mode 100644 index 0000000..9965ca3 --- /dev/null +++ b/syncthing/docker-compose.yml @@ -0,0 +1,31 @@ +version: "3.9" + +networks: + public: + external: true + +services: + syncthing: + image: syncthing/syncthing + container_name: syncthing + hostname: ${SYNCTHING_HOSTNAME} + restart: always + volumes: + - "./syncthing-data:/var/syncthing" + environment: + - "PUID=1000" + - "PGID=1000" + ports: + # - "8384:8384" # Web UI + - "22000:22000/tcp" # TCP file transfers + - "22000:22000/udp" # QUIC file transfers + - "21027:21027/udp" # Receive local discovery broadcasts + networks: + - public + labels: + - "traefik.enable=true" + - "traefik.http.routers.syncthing.rule=Host(`${SYNCTHING_DOMAIN}`)" + - "traefik.http.routers.syncthing.service=syncthing-service" + - "traefik.http.services.syncthing-service.loadbalancer.server.port=8384" + - "traefik.http.routers.syncthing.tls=true" + - "traefik.http.routers.syncthing.tls.certresolver=le"