-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (51 loc) · 2.77 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
web:
build: .
pid: "host"
network_mode: "host"
privileged: true
volumes:
- ./:/go/src/github.com/Scalingo/sand
- /etc/docker/plugins:/etc/docker/plugins:shared
- /var/run/netns:/var/run/netns:shared
- /var/run/docker/netns:/var/run/docker/netns:shared
- ./_dev/go-cache:/root/.cache
environment:
GO_ENV: development
ETCD_HOSTS: "https://172.17.0.1:22379,https://172.17.0.1:22381,https://172.17.0.1:22383"
ENABLE_DOCKER_PLUGIN: "true"
PUBLIC_HOSTNAME: "dev.172.17.0.1.xip.st-sc.fr"
command: reflex -r '\.go$$' --inverse-regex='cmd/sand-agent-cli' -s -- sh -c 'go install -buildvcs=false github.com/Scalingo/sand/cmd/sand-agent && /go/bin/sand-agent'
test:
build: .
volumes:
- ./:/go/src/github.com/Scalingo/sand
environment:
ETCD_HOSTS: "https://172.17.0.1:22379,https://172.17.0.1:22381,https://172.17.0.1:22383"
GO_ENV: testing
stop_signal: SIGKILL
command: "tail -F /dev/null"
etcd-1:
volumes:
- ./_dev/docker-data/etcd-1:/data/etcd
image: quay.io/coreos/etcd:v3.5.15
command: "etcd --name etcd-1 --data-dir /data/etcd --listen-client-urls https://0.0.0.0:2379 --listen-peer-urls https://0.0.0.0:2380 --advertise-client-urls https://172.17.0.1:22379 --initial-advertise-peer-urls https://172.17.0.1:22380 --auto-tls --peer-auto-tls --initial-cluster-state new --initial-cluster-token token-cluster --initial-cluster 'etcd-1=https://172.17.0.1:22380,etcd-2=https://172.17.0.1:22382,etcd-3=https://172.17.0.1:22384' "
ports:
- 22379:2379
- 22380:2380
etcd-2:
volumes:
- ./_dev/docker-data/etcd-2:/data/etcd
image: quay.io/coreos/etcd:v3.5.15
command: "etcd --name etcd-2 --data-dir /data/etcd --listen-client-urls https://0.0.0.0:2379 --listen-peer-urls https://0.0.0.0:2380 --advertise-client-urls https://172.17.0.1:22381 --initial-advertise-peer-urls https://172.17.0.1:22382 --auto-tls --peer-auto-tls --initial-cluster-state new --initial-cluster-token token-cluster --initial-cluster 'etcd-1=https://172.17.0.1:22380,etcd-2=https://172.17.0.1:22382,etcd-3=https://172.17.0.1:22384' "
ports:
- 22381:2379
- 22382:2380
etcd-3:
volumes:
- ./_dev/docker-data/etcd-3:/data/etcd
image: quay.io/coreos/etcd:v3.5.15
command: "etcd --name etcd-3 --data-dir /data/etcd --listen-client-urls https://0.0.0.0:2379 --listen-peer-urls https://0.0.0.0:2380 --advertise-client-urls https://172.17.0.1:22383 --initial-advertise-peer-urls https://172.17.0.1:22384 --auto-tls --peer-auto-tls --initial-cluster-state new --initial-cluster-token token-cluster --initial-cluster 'etcd-1=https://172.17.0.1:22380,etcd-2=https://172.17.0.1:22382,etcd-3=https://172.17.0.1:22384' "
ports:
- 22383:2379
- 22384:2380