From 464c1b04648df05a5debdcada546f938136cfafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 14 Mar 2023 16:59:32 +0100 Subject: [PATCH] add syncthing --- .env | 10 +++++++++- docker-compose.yml | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 37967c5..ce28eeb 100644 --- a/.env +++ b/.env @@ -61,4 +61,12 @@ MALOJA_INTERNAL_PORT=42010 PAPERLESS_EXTERNAL_PORT=8004 PAPERLESS_INTERNAL_PORT=8000 HOMER_EXTERNAL_PORT=7080 -HOMER_INTERNAL_PORT=8080 \ No newline at end of file +HOMER_INTERNAL_PORT=8080 +SYNCTHING_EXTERNAL_PORT1=8384 +SYNCTHING_INTERNAL_PORT1=8384 +SYNCTHING_INTERNAL_PORT2=22000 +SYNCTHING_INTERNAL_PORT2=22000/tcp +SYNCTHING_INTERNAL_PORT3=22000 +SYNCTHING_INTERNAL_PORT3=22000/udp +SYNCTHING_INTERNAL_PORT4=21027 +SYNCTHING_INTERNAL_PORT4=21027/udp \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c4ba039..126b352 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -592,6 +592,23 @@ services: GID: ${PGID} restart: unless-stopped + syncthing: + image: lscr.io/linuxserver/syncthing:latest + container_name: syncthing + volumes: + - "${DOCKER_STORAGE_PATH}/syncthing:/config" + - "${STORAGE_PATH}/docker-storage/syncthing:/general" + ports: + - "${SYNCTHING_EXTERNAL_PORT1}:${SYNCTHING_INTERNAL_PORT1}" + - "${SYNCTHING_EXTERNAL_PORT2}:${SYNCTHING_INTERNAL_PORT2}" + - "${SYNCTHING_EXTERNAL_PORT3}:${SYNCTHING_INTERNAL_PORT3}" + - "${SYNCTHING_EXTERNAL_PORT4}:${SYNCTHING_INTERNAL_PORT4}" + restart: unless-stopped + profiles: + - base + networks: + - public + networks: loki: caddy: