summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: fe68455130866fa161442fc5577e891ec0f41046 (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
25
26
27
28
29
30
version: "2.1"

services:
  syncthing:
    image: ghcr.io/linuxserver/syncthing
    container_name: syncthing
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Chicago
    volumes:
      - ./data:/config
      - ${HOME}/Sync:/config/Sync
      - ${HOME}/docker:/config/docker
      - ${HOME}/dotfiles:/config/dotfiles
    ports:
      - 8384:8384
      - 22000:22000
      - 21027:21027/udp
    restart: unless-stopped
    labels:
      - traefik.enable=true
      - "traefik.http.routers.syncthing.rule=(HostRegexp(`sync.${DOMAIN}.com`) && Path(`/{{.Node.Hostname}}`))"
      - traefik.http.routers.syncthing.entrypoints=websecure
      - traefik.http.services.syncthing.loadbalancer.server.port=8384

networks:
  default:
    external:
      name: proxy