syncthing-monitor/docker-compose.yml

41 lines
831 B
YAML
Raw Normal View History

2021-01-28 10:56:11 +00:00
---
version: "2.1"
services:
syncmon:
build: .
links:
- sync
volumes:
- syncconfig:/config
environment:
- SYNCTHING_NODE_NAME=node1
- SYNCTHING_PUBLISH_ADDRESS=tcp4://mypublichostname:${SYNC_LISTEN_PORT}
- SYNCTHING_DATA_PATH=/data
- SYNCTHING_LOCAL_HOSTNAME=sync
- ETCD_HOSTNAME=etcd
- ETCD_KEY=/syncthing_monitor/mycluster/myshare/cluster_info
networks:
- syncctlnet
2021-01-28 10:56:11 +00:00
sync:
image: ghcr.io/linuxserver/syncthing:${SYNCTHING_VERSION}
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- syncconfig:/config
- syncdata:/data
ports:
- ${SYNC_LISTEN_PORT}:22000
- ${SYNC_GUI_LISTEN_PORT}:8384
networks:
- syncctlnet
2021-01-28 10:56:11 +00:00
volumes:
syncconfig:
syncdata:
networks:
syncctlnet: