syncthing-monitor/docker-compose.test.yml
2021-01-28 15:33:21 +02:00

74 lines
1.2 KiB
YAML

---
version: "2.1"
services:
test:
build: integrationtest
links:
- sync1
- sync2
volumes:
- sync1data:/data1
- sync2data:/data2
networks:
- syncnet
sut1:
build: .
links:
- sync1:sync
volumes:
- sync1config:/config
networks:
- syncnet
sync1:
image: ghcr.io/linuxserver/syncthing:${SYNCTHING_VERSION}
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- sync1config:/config
- sync1data:/data
networks:
- syncnet
sut2:
build: .
links:
- sync2:sync
volumes:
- sync2config:/config
networks:
- syncnet
sync2:
image: ghcr.io/linuxserver/syncthing:${SYNCTHING_VERSION}
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- sync2config:/config
- sync2data:/data
networks:
- syncnet
etcd:
image: quay.io/coreos/etcd
command: /usr/local/bin/etcd --data-dir=/etcd-data
volumes:
- etcd-data:/etcd-data
networks:
- syncnet
volumes:
sync1data:
sync1config:
sync2data:
sync2config:
etcd-data:
networks:
syncnet: