Files
HomeServerServices/syncthing/docker-compose.yml
2026-01-02 05:41:37 +04:00

24 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
syncthing:
image: syncthing/syncthing:latest
container_name: syncthing
hostname: ${SYNCTHING_HOSTNAME:?} # Имя устройства в сети Syncthing
restart: unless-stopped
environment:
- PUID=${OWNER_USERID:?} # ID пользователя в системе (можно узнать командой id)
- PGID=${OWNER_GROUPID:?} # ID группы в системе
volumes:
- ./config:/var/syncthing/config # Конфигурация и база данных
- ${SYNCTHING_FOLDER:?}:/var/syncthing/Sync # Папка с данными (путь на хосте:путь в контейнере)
ports:
- ${SYNCTHING_WEB_UI_PORT:?}:8384 # Web GUI (управление через браузер)
- 22000:22000/tcp # Передача данных
- 22000:22000/udp # Передача данных (QUIC)
- 21027:21027/udp # Локальный поиск (Discovery)
networks:
- syncthing_network
networks:
syncthing_network:
driver: bridge