-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
36 lines (34 loc) · 949 Bytes
/
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
version: '3'
services:
etcd:
container_name: etcd
image: quay.io/coreos/etcd:v3.3
entrypoint: /usr/local/bin/etcd
command:
- '--name=etcd'
- '--initial-advertise-peer-urls=http://etcd:2380'
- '--listen-peer-urls=http://0.0.0.0:2380'
- '--listen-client-urls=http://0.0.0.0:2379'
- '--advertise-client-urls=http://etcd:2379,http://127.0.0.1:2379'
- '--initial-cluster-token=mys3cr3ttok3n'
- '--heartbeat-interval=250'
- '--election-timeout=1250'
- '--initial-cluster=etcd=http://etcd:2380'
- '--initial-cluster-state=new'
ports:
- "2379:2379"
volumes:
- etcd:/etcd_data
cqserver:
container_name: cqserver
image: jozuenoon/cqserver
entrypoint: /server
command:
- '--collector_port=:9000'
- '--query_port=:8000'
- '--etcd.endpoints=http://etcd:2379'
ports:
- '9000:9000'
- '8000:8000'
volumes:
etcd: