-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
89 lines (85 loc) · 2.11 KB
/
docker-compose.yaml
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
version: "3.3"
services:
cb-network-etcd:
image: gcr.io/etcd-development/etcd:v3.5.2
container_name: etcd-gcr-v3.5.2
ports:
- "2379:2379"
- "2380:2380"
volumes:
- ./container-volume/etcd/data:/etcd-data
entrypoint:
- /usr/local/bin/etcd
- --name
- s1
- --data-dir
- /etcd-data
- --listen-client-urls
- http://0.0.0.0:2379
- --advertise-client-urls
- http://0.0.0.0:2379
- --listen-peer-urls
- http://0.0.0.0:2380
- --initial-advertise-peer-urls
- http://0.0.0.0:2380
- --initial-cluster
- s1=http://0.0.0.0:2380
- --initial-cluster-token
- tkn
- --initial-cluster-state
- new
- --log-level
- info
- --logger
- zap
- --log-outputs
- stderr
healthcheck:
test: /usr/local/bin/etcd --version
interval: 2s
timeout: 5s
retries: 3
cb-network-controller:
image: cloudbaristaorg/cb-network-controller:latest
build:
context: .
dockerfile: Dockerfile-controller
container_name: cb-network-controller
volumes:
- ./container-volume/cb-network/config:/app/config
depends_on:
cb-network-etcd:
condition: service_healthy
cb-network-service:
image: cloudbaristaorg/cb-network-service:latest
build:
context: .
dockerfile: Dockerfile-service
container_name: cb-network-service
ports:
- "8053:8053"
volumes:
- ./container-volume/cb-network/config:/app/config
depends_on:
cb-network-etcd:
condition: service_healthy
healthcheck:
test: nc -vz localhost 8053
interval: 2s
timeout: 5s
retries: 3
cb-network-admin-web:
image: cloudbaristaorg/cb-network-admin-web:latest
build:
context: .
dockerfile: Dockerfile-admin-web
container_name: cb-network-admin-web
ports:
- "8054:8054"
volumes:
- ./container-volume/cb-network/config:/app/config
depends_on:
cb-network-etcd:
condition: service_healthy
cb-network-service:
condition: service_healthy