-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
65 lines (58 loc) · 1.35 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
networks:
internal:
driver: bridge
services:
etcd:
image: 'quay.io/coreos/etcd:v2.3.8'
command: [
'-name', 'etcd0',
'-advertise-client-urls','http://etcd.local:2379,http://etcd.local:4001',
'-listen-client-urls', 'http://0.0.0.0:2379,http://0.0.0.0:4001',
'-initial-advertise-peer-urls', 'http://etcd.local:2380',
'-listen-peer-urls', 'http://0.0.0.0:2380',
'-initial-cluster-token', 'etcd-cluster-1',
'-initial-cluster', 'etcd0=http://etcd.local:2380',
'-initial-cluster-state', 'new',
]
networks:
internal:
aliases:
- etcd.local
volumes:
- /usr/share/ca-certificates/:/etc/ssl/certs
ports:
- 4001:4001
yoda:
build: .
networks:
internal:
aliases:
- yoda.local
environment:
ETCD_URL: 'etcd.local:4001'
ETCD_HOST: 'etcd.local'
ETCD_PORT: '4001'
ports:
- 80:80
- 443:443
- 8080:8080
- 8443:8443
depends_on:
- etcd
restart: always
yoda-test:
build: ./test
networks:
internal:
aliases:
- 'yoda-test.local'
environment:
ETCD_URL: 'etcd.local:4001'
ETCD_HOST: 'etcd.local'
ETCD_PORT: '4001'
YODA_HOST: 'yoda.local'
HOST_IP: 'yoda-test.local'
depends_on:
- etcd
- yoda