mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-25 04:51:13 +00:00
32 lines
971 B
YAML
32 lines
971 B
YAML
version: "3"
|
|
|
|
services:
|
|
syncthing:
|
|
image: syncthing/syncthing
|
|
container_name: syncthing
|
|
hostname: syncthing
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/syncthing:/var/syncthing # your path on where to store synched files
|
|
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:
|
|
# external: true
|