-
Notifications
You must be signed in to change notification settings - Fork 233
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (78 loc) · 1.93 KB
/
docker-compose.yml
File metadata and controls
83 lines (78 loc) · 1.93 KB
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
# services config in one docker-compose file for integrate test
services:
zookeeper:
image: zookeeper:3.9.4
ports:
- "2181:2181"
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "2181"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
restart: unless-stopped
networks: [itnet]
nacos:
image: nacos/nacos-server:v2.5.2
environment:
PREFER_HOST_MODE: hostname
MODE: standalone
ports:
- "8848:8848"
- "9848:9848"
- "9849:9849"
healthcheck:
test: [ "CMD", "curl", "-fsS", "http://localhost:8848/nacos/v1/console/health/liveness" ]
interval: 7s
timeout: 5s
retries: 10
start_period: 30s
restart: unless-stopped
networks: [itnet]
polaris:
image: polarismesh/polaris-standalone:v1.17.2
privileged: true
ports:
- "8090:8090"
- "8091:8091"
- "8093:8093"
healthcheck:
test: [ "CMD", "curl", "-fsS", "http://localhost:8090/" ]
interval: 5s
timeout: 3s
retries: 10
start_period: 20s
restart: unless-stopped
networks: [itnet]
etcd:
image: quay.io/coreos/etcd:v3.4.28
environment:
ETCDCTL_API: "3"
command:
- etcd
- --name=etcd0
- --data-dir=/etcd-data
- --listen-client-urls=http://0.0.0.0:2379
- --advertise-client-urls=http://etcd:2379
- --listen-peer-urls=http://0.0.0.0:2380
- --initial-advertise-peer-urls=http://etcd:2380
- --initial-cluster=etcd0=http://etcd:2380
- --initial-cluster-state=new
ports:
- "2379:2379"
- "2380:2380"
volumes:
- etcd-data:/etcd-data
healthcheck:
test: [ "CMD", "etcdctl", "--endpoints=http://localhost:2379", "endpoint", "health" ]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
restart: unless-stopped
networks: [itnet]
networks:
itnet:
name: itnet
volumes:
etcd-data: