-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 976 Bytes
/
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
version: '2'
services:
consul:
image: gliderlabs/consul-server:latest
container_name: consul
command: "-server -bootstrap"
ports:
- 8500:8500
networks:
- 2immerse
registrator:
image: gliderlabs/registrator:v7
container_name: registrator
command: "consul://consul:8500"
depends_on:
- consul
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
networks:
- 2immerse
mongo:
image: mongo:latest
container_name: mongo
depends_on:
- registrator
ports:
- 27017:27017
networks:
2immerse:
aliases:
- mongo.service.consul
auth:
build .
container_name: auth-service
command: "-debug"
depends_on:
- registrator
- mongo
ports:
- 3000:3000
- 8080:8080
environment:
CONSUL_HTTP_ADDR: consul:8500
MONGODB_SERVICE: mongo
networks:
- 2immerse
networks:
2immerse:
driver: bridge