syncthing-monitor/docker-compose.test.yml

84 lines
1.5 KiB
YAML
Raw Normal View History

2021-01-28 10:56:11 +00:00
---
version: "2.1"
services:
test:
build: integrationtest
links:
- sync1
- sync2
volumes:
2021-01-28 13:31:25 +00:00
- sync1data:/data1
- sync2data:/data2
networks:
- syncnet
2021-01-28 10:56:11 +00:00
sut1:
build: .
links:
2021-01-28 13:31:25 +00:00
- sync1:sync
2021-01-31 08:44:14 +00:00
- etcd
2021-01-28 10:56:11 +00:00
volumes:
2021-01-28 13:31:25 +00:00
- sync1config:/config
environment:
- SYNCTHING_HOSTNAME=sync1
- SYNCTHING_ADDRESS=tcp4://sync1
- SYNCTHING_DATA_PATH=/data
2021-01-28 13:31:25 +00:00
networks:
- syncnet
2021-01-28 10:56:11 +00:00
sync1:
image: ghcr.io/linuxserver/syncthing:${SYNCTHING_VERSION}
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- sync1config:/config
- sync1data:/data
2021-01-28 13:31:25 +00:00
networks:
- syncnet
2021-01-28 10:56:11 +00:00
sut2:
build: .
links:
2021-01-28 13:31:25 +00:00
- sync2:sync
2021-01-29 08:28:35 +00:00
- etcd
2021-01-28 10:56:11 +00:00
volumes:
2021-01-28 13:31:25 +00:00
- sync2config:/config
environment:
- SYNCTHING_HOSTNAME=sync2
- SYNCTHING_ADDRESS=tcp4://sync2
- SYNCTHING_DATA_PATH=/data
2021-01-28 13:31:25 +00:00
networks:
- syncnet
2021-01-28 10:56:11 +00:00
sync2:
image: ghcr.io/linuxserver/syncthing:${SYNCTHING_VERSION}
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- sync2config:/config
- sync2data:/data
2021-01-28 13:31:25 +00:00
networks:
- syncnet
2021-01-28 10:56:11 +00:00
etcd:
image: quay.io/coreos/etcd
2021-01-29 08:28:35 +00:00
command: /usr/local/bin/etcd --data-dir=/etcd-data --advertise-client-urls http://etcd:2379 --listen-client-urls=http://0.0.0.0:2379
2021-01-28 10:56:11 +00:00
volumes:
2021-01-28 13:31:25 +00:00
- etcd-data:/etcd-data
networks:
- syncnet
2021-01-28 10:56:11 +00:00
volumes:
sync1data:
sync1config:
sync2data:
sync2config:
2021-01-28 13:31:25 +00:00
etcd-data:
networks:
syncnet: