39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
version: "3.1"
|
|
|
|
services:
|
|
syncthing:
|
|
image: ghcr.io/linuxserver/syncthing
|
|
container_name: syncthing
|
|
restart: unless-stopped
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
networks:
|
|
- proxy
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=America/Chicago
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /tank/syncthing/config:/config
|
|
- /tank/syncthing:/data
|
|
# ports:
|
|
# - 8384:8384
|
|
# - 22000:22000
|
|
# - 21027:21027/udp
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.syncthing.entrypoints=http"
|
|
- "traefik.http.routers.syncthing.rule=Host(`syncthing.${URL}`)"
|
|
- "traefik.http.middlewares.syncthing-https-redirect.redirectscheme.scheme=https"
|
|
- "traefik.http.routers.syncthing.middlewares=syncthing-https-redirect"
|
|
- "traefik.http.routers.syncthing-secure.entrypoints=https"
|
|
- "traefik.http.routers.syncthing-secure.rule=Host(`syncthing.${URL}`)"
|
|
- "traefik.http.routers.syncthing-secure.tls=true"
|
|
- "traefik.http.routers.syncthing-secure.service=syncthing"
|
|
- "traefik.http.services.syncthing.loadbalancer.server.port=8384"
|
|
- "traefik.docker.network=proxy"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|