-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 1 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
version: '3.5'
services:
etcd-registrar1:
build: .
depends_on:
- etcd0
image: flaviostutz/etcd-registrar
environment:
- LOG_LEVEL=debug
- ETCD_URL=http://etcd0:2379
- ETCD_BASE=/webservers
- SERVICE=test1
- PORT=3000
- TTL=60
- INFO=
etcd-registrar2:
build: .
image: flaviostutz/etcd-registrar
depends_on:
- etcd0
environment:
- LOG_LEVEL=debug
- ETCD_URL=http://etcd0:2379
- ETCD_BASE=/webservers
- SERVICE=test2
- PORT=3000
- TTL=60
- INFO=
etcd-list:
build: .
depends_on:
- etcd-registrar1
- etcd-registrar2
image: flaviostutz/etcd-registrar
environment:
- LOG_LEVEL=debug
- ETCD_URL=http://etcd0:2379
- ETCD_BASE=/webservers
- SERVICE=test1
- LIST=true
etcd0:
image: quay.io/coreos/etcd:v3.2.25
environment:
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd0:2379