mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
28 lines
902 B
YAML
28 lines
902 B
YAML
---
|
|
# Refer https://github.com/syncthing/syncthing/blob/main/README-Docker.md
|
|
services:
|
|
syncthing:
|
|
image: syncthing/syncthing:2.0.12
|
|
container_name: syncthing
|
|
hostname: MacBook-Pro
|
|
environment:
|
|
- PUID=501
|
|
- PGID=20
|
|
- STGUIADDRESS=0.0.0.0:8384
|
|
volumes:
|
|
- ${PWD}/config:/var/syncthing/config:z
|
|
- ${PWD}/data:/var/syncthing/data
|
|
# - ${HOME}/media:/var/syncthing/media
|
|
ports:
|
|
# No way to use 'host' mode in OS X
|
|
- 127.0.0.1:8384:8384/tcp # Web UI
|
|
- 22000:22000/tcp # TCP file transfers
|
|
- 22000:22000/udp # QUIC file transfers
|
|
- 21027:21027/udp # Receive local discovery broadcasts
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
|
|
interval: 1m
|
|
timeout: 10s
|
|
retries: 3
|