-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (56 loc) · 1.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (56 loc) · 1.32 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
version: '2'
networks:
local:
driver: 'bridge'
services:
deployer:
build: .
networks:
local:
aliases:
- deployer.local
environment:
ETCD_HOST: 'etcd.local'
AMQP_HOST: 'rabbitmq.local'
MONGODB_SERVERS: 'mongo.local:27017'
DISCOVER_MONGO: 'false'
DISCOVER_RABBITMQ: 'false'
ports:
- 9000
depends_on:
- etcd
- rabbitmq
- mongo
restart: always
volumes:
- ".:/opt/cluster-deployer"
rabbitmq:
image: 'rabbitmq:3.6'
networks:
local:
aliases:
- rabbitmq.local
mongo:
image: 'mongo:2.6'
networks:
local:
aliases:
- mongo.local
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:
local:
aliases:
- etcd.local
volumes:
- /usr/share/ca-certificates/:/etc/ssl/certs