mirror of
https://github.com/StepanovPlaton/HomeServerServices.git
synced 2026-04-03 20:30:44 +04:00
init
This commit is contained in:
6
syncthing/.env.example
Normal file
6
syncthing/.env.example
Normal file
@@ -0,0 +1,6 @@
|
||||
OWNER_USERID=1000
|
||||
OWNER_GROUPID=1000
|
||||
|
||||
SYNCTHING_HOSTNAME=host
|
||||
SYNCTHING_WEB_UI_PORT=8384
|
||||
SYNCTHING_FOLDER=/path/to/folder
|
||||
0
syncthing/config/.keep
Normal file
0
syncthing/config/.keep
Normal file
17
syncthing/docker-compose.yml
Normal file
17
syncthing/docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user