-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.14 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
---
version: '3.3'
services:
post_db:
environment:
- ZIPKIN_ENABLED=${ZIPKIN_ENABLED}
image: mongo:${MONGO_VERSION}
volumes:
- post_db:/data/db
networks:
back_net:
aliases:
- comment_db
ui:
environment:
APP_HOME: ${UI_APP_HOME}
ZIPKIN_ENABLED: ${ZIPKIN_ENABLED}
image: ${USERNAME}/ui:${UI_VERSION}
ports:
- ${UI_PORT}:9292/tcp
networks:
- front_net
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: service.ui
post:
environment:
APP_HOME: ${POST_APP_HOME}
ZIPKIN_ENABLED: ${ZIPKIN_ENABLED}
image: ${USERNAME}/post:${POST_VERSION}
networks:
- front_net
- back_net
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: service.post
comment:
environment:
APP_HOME: ${COMMENT_APP_HOME}
ZIPKIN_ENABLED: ${ZIPKIN_ENABLED}
image: ${USERNAME}/comment:${COMMENT_VERSION}
networks:
- front_net
- back_net
volumes:
post_db:
networks:
back_net:
driver: bridge
front_net:
driver: bridge