-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (61 loc) · 1.27 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
version: '2'
services:
web:
build: ./
image: devopsdays/gather-flag-web
container_name: gather-flag-web
depends_on:
- accounts
- rooms
- topics
links:
- accounts
- rooms
- topics
ports:
- "8001:8001"
volumes:
- ./:/go/src/github.com/devopsdays/gather-flag
accounts:
build: ./accounts
image: devopsdays/gather-flag-accountservice
container_name: gather-flag-accounts
depends_on:
- db
links:
- db
ports:
- "8080:8080"
volumes:
- ./accounts:/go/src/github.com/devopsdays/gather-flag/accounts
rooms:
build: ./rooms
image: devopsdays/gather-flag-roomservice
container_name: gather-flag-rooms
depends_on:
- db
links:
- db
ports:
- "8081:8081"
volumes:
- ./rooms:/go/src/github.com/devopsdays/gather-flag/rooms
topics:
build: ./topics
image: devopsdays/gather-flag-topicservice
container_name: gather-flag-topics
depends_on:
- db
links:
- db
ports:
- "8082:8082"
volumes:
- ./topics:/go/src/github.com/devopsdays/gather-flag/topics
db:
image: mongo:3.3
container_name: gather-flag-db
ports:
- "27017:27017"
volumes:
- ./backup:/backup:rw