summaryrefslogtreecommitdiff
path: root/syncthing/compose.yaml
blob: 16d140ffb8b81b8df10982906bdf7175b6228e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
  syncthing:
    image: syncthing/syncthing:1.29.6
    container_name: syncthing
    hostname: VPS
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - /data/Synck:/var/syncthing
      - /data/music:/var/syncthing/music
    ports:
      - 10.0.0.1:8384:8384 # Web UI
      - 10.0.0.1:22000:22000/tcp # TCP file transfers
      - 10.0.0.1:22000:22000/udp # QUIC file transfers
      - 10.0.0.1:21027:21027/udp # Receive local discovery broadcasts
    restart: unless-stopped
    healthcheck:
      test: curl -fkLsS -m 2 10.0.0.1:8384/rest/noauth/health | grep -o --color=never
        OK || exit 1
      interval: 1m
      timeout: 10s
      retries: 3
networks: {}