Files
HomeServerServices/syncthing/docker-compose.yml
2026-01-01 18:32:31 -06:00

18 lines
953 B
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
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)
restart: unless-stopped