-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
72 lines (68 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
65
66
67
68
69
70
71
72
version: '3'
services:
list:
build:
context: .
dockerfile: list/Dockerfile
environment:
- "MONGO_HOST=db"
image: pltvs/todo-list
container_name: todo-list
entrypoint: /go/bin/list
depends_on:
- db
links:
- db
ports:
- "50001:8080"
users:
build:
context: .
dockerfile: users/Dockerfile
environment:
- "MONGO_HOST=db"
- "SRV_LIST_ADDR=list:8080"
- "SRV_NOTIFIER_ADDR=notifier:8080"
image: pltvs/todo-users
container_name: todo-users
entrypoint: /go/bin/users
depends_on:
- list
- notifier
- db
links:
- list
- notifier
- db
ports:
- "50000:8080"
notifier:
build:
context: .
dockerfile: notifier/Dockerfile
container_name: todo-notifier
entrypoint: /go/bin/notifier
ports:
- "50002:8080"
web:
build:
context: .
dockerfile: web/Dockerfile
environment:
- "SRV_USERS_ADDR=users:8080"
- "SRV_LIST_ADDR=list:8080"
image: pltvs/todo-web
container_name: todo-web
depends_on:
- list
- users
links:
- list
- users
ports:
- "3030:8080"
db:
image: mongo:3.3
container_name: todo-db
logging:
driver: none