-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (90 loc) · 1.91 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
# Group A Docker Daemons
docker-daemon-a1:
image: docker:dind
privileged: true
environment:
- DOCKER_TLS_CERTDIR=
hostname: docker-daemon-a1
healthcheck:
test: ["CMD", "docker", "info"]
interval: 10s
timeout: 5s
retries: 3
networks:
- docker-network
labels:
- "group=a"
docker-daemon-a2:
image: docker:dind
privileged: true
environment:
- DOCKER_TLS_CERTDIR=
hostname: docker-daemon-a2
healthcheck:
test: ["CMD", "docker", "info"]
interval: 10s
timeout: 5s
retries: 3
networks:
- docker-network
labels:
- "group=a"
# Group B Docker Daemons
docker-daemon-b1:
image: docker:dind
privileged: true
environment:
- DOCKER_TLS_CERTDIR=
hostname: docker-daemon-b1
healthcheck:
test: ["CMD", "docker", "info"]
interval: 10s
timeout: 5s
retries: 3
networks:
- docker-network
labels:
- "group=b"
docker-daemon-b2:
image: docker:dind
privileged: true
environment:
- DOCKER_TLS_CERTDIR=
hostname: docker-daemon-b2
healthcheck:
test: ["CMD", "docker", "info"]
interval: 10s
timeout: 5s
retries: 3
networks:
- docker-network
labels:
- "group=b"
haproxy:
image: haproxy:latest
volumes:
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
ports:
- "2375:2375"
networks:
- docker-network
depends_on:
docker-daemon-a1:
condition: service_healthy
docker-daemon-a2:
condition: service_healthy
docker-daemon-b1:
condition: service_healthy
docker-daemon-b2:
condition: service_healthy
sut:
build: ./client
environment:
- DOCKER_HOST=http://haproxy:2375
networks:
- docker-network
depends_on:
- haproxy
networks:
docker-network: