From 79a5df698007d9979d9be52abdd27d8082af62aa Mon Sep 17 00:00:00 2001 From: Jean Froment Date: Mon, 14 Feb 2022 10:46:30 +0100 Subject: [PATCH] Add syncthing (work in progress) --- services.conf.sample | 1 + services/syncthing.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 services/syncthing.yaml diff --git a/services.conf.sample b/services.conf.sample index fe99215..5dd2fdb 100644 --- a/services.conf.sample +++ b/services.conf.sample @@ -23,4 +23,5 @@ nextcloud: enable portainer: enable netdata: enable duplicati: enable +syncthing: disable gluetun: disable \ No newline at end of file diff --git a/services/syncthing.yaml b/services/syncthing.yaml new file mode 100644 index 0000000..a325613 --- /dev/null +++ b/services/syncthing.yaml @@ -0,0 +1,30 @@ +services: + syncthing: + image: lscr.io/linuxserver/syncthing + container_name: syncthing + restart: unless-stopped + environment: + - PGID=${PGID} + - PUID=${PUID} + - TZ=${TZ} + volumes: + - configsyncthing:/config + - torrents:/torrents + # ports: + # #- 8384:8384 + # - 22000:22000/tcp + # - 22000:22000/udp + # - 21027:21027/udp + labels: + - "traefik.enable=true" + - "traefik.http.routers.syncthing.rule=Host(`syncthing.${TRAEFIK_DOMAIN}`)" + - "traefik.http.routers.syncthing.middlewares=common-auth@file" + - "traefik.http.services.syncthing-seedbox.loadbalancer.server.port=8384" + - "traefik.http.routers.synchro.rule=Host(`synchro.${TRAEFIK_DOMAIN}`)" + - "traefik.http.services.synchro-seedbox.loadbalancer.server.port=22000" + +volumes: + configsyncthing: + driver: local-persist + driver_opts: + mountpoint: $HOST_CONFIG_PATH/configsyncthing \ No newline at end of file