mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
version: '2'
|
|
services:
|
|
pilosa1:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile-clustertests
|
|
image: ptest
|
|
environment:
|
|
- PILOSA_CLUSTER_COORDINATOR=true
|
|
- PILOSA_GOSSIP_SEEDS=pilosa1:14000
|
|
- PILOSA_CLUSTER_REPLICAS=2
|
|
networks:
|
|
- pilosanet
|
|
command:
|
|
- "/pilosa server --bind pilosa1:10101"
|
|
pilosa2:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile-clustertests
|
|
image: ptest
|
|
environment:
|
|
- PILOSA_GOSSIP_SEEDS=pilosa1:14000
|
|
- PILOSA_CLUSTER_REPLICAS=2
|
|
networks:
|
|
- pilosanet
|
|
command:
|
|
- "/pilosa server --bind pilosa2:10101"
|
|
pilosa3:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile-clustertests
|
|
image: ptest
|
|
environment:
|
|
- PILOSA_GOSSIP_SEEDS=pilosa1:14000,pilosa2:14000
|
|
- PILOSA_CLUSTER_REPLICAS=2
|
|
networks:
|
|
- pilosanet
|
|
command:
|
|
- "/pilosa server --bind pilosa3:10101"
|
|
client1:
|
|
build:
|
|
context: .
|
|
environment:
|
|
- ENABLE_PILOSA_CLUSTER_TESTS=1
|
|
networks:
|
|
- pilosanet
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
command:
|
|
- "go test -v -count=1 github.com/featurebasedb/featurebase/internal/clustertests"
|
|
networks:
|
|
pilosanet:
|