-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (47 loc) · 1.15 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
services:
asyncdb-1:
build: .
container_name: asyncdb-1
environment:
# Where etcd answers, and this node as the other nodes reach it. Nodes talk to the API port
# directly rather than through the nginx the browser uses.
- ASYNCDB_ETCD=http://etcd:2379
- ASYNCDB_NODE=http://asyncdb-1:8080
ports:
- 8080:80
depends_on:
- etcd
asyncdb-2:
build: .
container_name: asyncdb-2
environment:
- ASYNCDB_ETCD=http://etcd:2379
- ASYNCDB_NODE=http://asyncdb-2:8080
ports:
- 8081:80
depends_on:
- etcd
asyncdb-3:
build: .
container_name: asyncdb-3
environment:
- ASYNCDB_ETCD=http://etcd:2379
- ASYNCDB_NODE=http://asyncdb-3:8080
ports:
- 8082:80
depends_on:
- etcd
etcd:
image: quay.io/coreos/etcd:v3.5.9
container_name: etcd
environment:
- ETCD_NAME=etcd-node
- ETCD_DATA_DIR=/etcd-data
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
ports:
- 2379:2379
volumes:
- /tmp/etcd-data:/etcd-data:Z
command:
- /usr/local/bin/etcd