Add syncthing
This commit is contained in:
27
syncthing/docker-compose.yml
Normal file
27
syncthing/docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
services:
|
||||||
|
syncthing:
|
||||||
|
container_name: syncthing
|
||||||
|
image: ghcr.io/syncthing/syncthing:2.0.14
|
||||||
|
restart: unless-stopped
|
||||||
|
hostname: ${HOSTNAME}
|
||||||
|
environment:
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
volumes:
|
||||||
|
- ${APPDATA_PATH}/syncthing/data:/var/syncthing
|
||||||
|
ports:
|
||||||
|
- 8384:8384 # Web UI
|
||||||
|
- 22000:22000/tcp # TCP file transfers
|
||||||
|
- 22000:22000/udp # QUIC file transfers
|
||||||
|
- 21027:21027/udp # Local discovery broadcasts
|
||||||
|
healthcheck:
|
||||||
|
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
|
||||||
|
interval: 1m
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
networks:
|
||||||
|
frontend:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user