From 5b65171c1a5420629cf7085686a6b272a6b037de Mon Sep 17 00:00:00 2001 From: BhasherBEL Date: Sun, 16 Apr 2023 01:23:20 +0200 Subject: [PATCH] Bxl-rpi syncthing --- bxl-rpi/docker-compose.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/bxl-rpi/docker-compose.yaml b/bxl-rpi/docker-compose.yaml index d219fe7..6e478ae 100644 --- a/bxl-rpi/docker-compose.yaml +++ b/bxl-rpi/docker-compose.yaml @@ -528,3 +528,29 @@ services: volumes: - ./config/idp/authelia.configuration.yaml:/config/configuration.yml:ro - $DATA/authelia:/secrets:ro + + syncthing: + container_name: syncthing + image: syncthing/syncthing:latest + hostname: snode0 + environment: + - PUID=33 + - PGID=33 + volumes: + - $DATA/syncthing:/var/syncthing:rw + - /mnt/syncDocuments:/mnt/SyncDocuments:rw + - /mnt/brieuc-pictures:/mnt/pictures:rw + labels: + - "traefik.enable=true" + - "traefik.http.routers.syncthing.rule=Host(`syncthing.bhasher.com`)" + - "traefik.http.routers.syncthing.entrypoints=internalsecure" + - "traefik.http.services.syncthing.loadbalancer.server.port=8384" + - "traefik.http.routers.syncthing.tls=true" + - "traefik.http.routers.syncthing.tls.certresolver=http" + - "traefik.http.routers.syncthing.middlewares=authelia@docker" + ports: + - 22000:22000/tcp # TCP file transfers + - 22000:22000/udp # QUIC file transfers + - 21027:21027/udp # Receive local discovery broadcasts + restart: unless-stopped +