66 lines
1.1 KiB
YAML
66 lines
1.1 KiB
YAML
---
|
|
version: "2.1"
|
|
|
|
services:
|
|
test:
|
|
build: integrationtest
|
|
links:
|
|
- sync1
|
|
- sync2
|
|
volumes:
|
|
- sync1data:/data1
|
|
- sync2data:/data2
|
|
|
|
sut1:
|
|
build: .
|
|
links:
|
|
- sync1
|
|
volumes:
|
|
- sync1config:/config:ro
|
|
|
|
sync1:
|
|
image: ghcr.io/linuxserver/syncthing:${SYNCTHING_VERSION}
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- TZ=${TZ}
|
|
volumes:
|
|
- sync1config:/config
|
|
- sync1data:/data
|
|
ports:
|
|
- ${SYNC1_LISTEN_PORT}:22000
|
|
|
|
sut2:
|
|
build: .
|
|
links:
|
|
- sync2
|
|
volumes:
|
|
- sync2config:/config:ro
|
|
|
|
sync2:
|
|
image: ghcr.io/linuxserver/syncthing:${SYNCTHING_VERSION}
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- TZ=${TZ}
|
|
volumes:
|
|
- sync2config:/config
|
|
- sync2data:/data
|
|
ports:
|
|
- ${SYNC2_LISTEN_PORT}:22000
|
|
|
|
etcd:
|
|
image: quay.io/coreos/etcd
|
|
command: /usr/local/bin/etcd --data-dir=/etcd-data
|
|
ports:
|
|
- 2379:2379
|
|
- 2380:2380
|
|
volumes:
|
|
- etcd-data:/etcd-data
|
|
|
|
volumes:
|
|
sync1data:
|
|
sync1config:
|
|
sync2data:
|
|
sync2config:
|
|
etcd-data: |