-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.yml
119 lines (114 loc) · 2.4 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
services:
auth-service:
build:
context: ./auth
dockerfile: Dockerfile
ports:
- "9001:9001"
env_file:
- ./auth/.env.docker
volumes:
- ./auth:/app/auth
- /app/auth/node_modules
restart: on-failure
networks:
- backend
logging:
driver: fluentd
options:
fluentd-async: "true"
fluentd-address: localhost:24224
tag: auth-service
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9001/api/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 60s
post-service:
build:
context: ./post
dockerfile: Dockerfile
ports:
- "9002:9002"
env_file:
- ./post/.env.docker
volumes:
- ./post:/app/post
- /app/post/node_modules
restart: on-failure
networks:
- backend
logging:
driver: fluentd
options:
fluentd-async: "true"
fluentd-address: localhost:24224
tag: post-service
files-service:
build:
context: ./files
dockerfile: Dockerfile
ports:
- "9003:9003"
env_file:
- ./files/.env.docker
volumes:
- ./files:/app/files
- /app/files/node_modules
restart: on-failure
networks:
- backend
logging:
driver: fluentd
options:
fluentd-async: "true"
fluentd-address: localhost:24224
tag: files-service
notification-service:
build:
context: ./notification
dockerfile: Dockerfile
ports:
- "9004:9004"
env_file:
- ./notification/.env.docker
volumes:
- ./notification:/app/notification
- /app/notification/node_modules
restart: on-failure
networks:
- backend
logging:
driver: fluentd
options:
fluentd-async: "true"
fluentd-address: localhost:24224
tag: notification-service
kong:
build:
context: ./kong
dockerfile: Dockerfile
ports:
- "8000:8000"
- "8443:8443"
- "8001:8001"
- "8444:8444"
restart: unless-stopped
networks:
- backend
logging:
driver: fluentd
options:
fluentd-async: "true"
fluentd-address: localhost:24224
tag: kong-gateway
healthcheck:
test: ["CMD", "kong", "health"]
interval: 10s
timeout: 10s
retries: 10
networks:
backend:
name: backend
external: true