Compose-Examples/examples/syncthing/docker-compose.yml

31 lines
958 B
YAML
Raw Normal View History

2023-02-26 20:41:18 +00:00
services:
2023-02-26 20:41:18 +00:00
syncthing:
image: syncthing/syncthing
container_name: syncthing
hostname: syncthing
environment:
- PUID=1000
- PGID=1000
volumes:
2023-02-26 20:43:20 +00:00
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/syncthing:/var/syncthing # your path on where to store synched files
2023-02-26 20:41:18 +00:00
ports:
- 8384:8384 # Web UI
#- 22000:22000/tcp # TCP file transfers
#- 22000:22000/udp # QUIC file transfers
#- 21027:21027/udp # Receive local discovery broadcasts
restart: unless-stopped
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.http.routers.syncthing.rule=Host(`synchting.example.com`)
# - traefik.http.services.syncthing.loadbalancer.server.port=8384
# - traefik.docker.network=proxy
# # Part for optional traefik middlewares
# - traefik.http.routers.syncthing.middlewares=local-ipwhitelist@file,basic-auth@file
#networks:
# proxy:
2023-02-26 20:43:20 +00:00
# external: true