-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 987 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
54
55
56
57
58
59
60
version: '3.3'
services:
nginx:
image: aemalinovskiy/nginx
container_name: nginx
networks:
- front_net
- back_net
ports:
- "80:80"
post_db:
image: mongo:3.2
container_name: mongodb
volumes:
- post_db:/data/db
ports:
- '27017:27017'
networks:
back_net:
aliases:
- post_db
ui:
image: aemalinovskiy/ui
container_name: ui_v_1
ports:
- 9292:9292/tcp
networks:
- front_net
- back_net
post:
image: aemalinovskiy/post
environment:
- POST_DATABASE_HOST=post_db
- POST_DATABASE=posts
depends_on:
- post_db
ports:
- "5000:5000"
container_name: post_v_1
networks:
back_net:
aliases:
- post
comment:
image: aemalinovskiy/comment
container_name: comment_v_1
networks:
back_net:
aliases:
- comment
volumes:
post_db:
networks:
front_net:
back_net: