-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
120 lines (112 loc) · 3.04 KB
/
docker-compose.dev.yml
File metadata and controls
120 lines (112 loc) · 3.04 KB
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
120
x-common-config: &common-config
env_file:
- .env.development
networks:
- tenk_network
x-common-variables: &common-env
TENK_ENV: development
CORE_GRPC_HOST: core
ANALYTIC_GRPC_HOST: analytic
CURRENCY_GRPC_HOST: currency
NOTIFICATION_GRPC_HOST: notification
x-common-heatlhcheck: &common-healthcheck
start_period: 3s
interval: 5m
timeout: 3s
retries: 5
services:
core:
<<: *common-config
container_name: tenk-core
image: tenk-core:latest
build:
context: .
dockerfile: services/core/Dockerfile
environment:
<<: *common-env
ports:
- 8080:8080
- 50051:50051
volumes:
- ./firebase-admin.development.json:/tenk-backend/firebase-admin.development.json
healthcheck:
<<: *common-healthcheck
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/health"]
analytic:
<<: *common-config
container_name: tenk-analytic
image: tenk-analytic:latest
build:
context: .
dockerfile: services/analytic/Dockerfile
environment:
<<: *common-env
ports:
- 8082:8082
- 50052:50052
healthcheck:
<<: *common-healthcheck
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8082/health"]
notification:
<<: *common-config
container_name: tenk-notification
image: tenk-notification:latest
build:
context: .
dockerfile: services/notification/Dockerfile
environment:
<<: *common-env
ports:
- 8084:8084
- 50054:50054
volumes:
- ./waitlist.development.json:/tenk-backend/waitlist.development.json
- ./firebase-admin.development.json:/tenk-backend/firebase-admin.development.json
healthcheck:
<<: *common-healthcheck
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8084/health"]
currency:
<<: *common-config
container_name: tenk-currency
image: tenk-currency:latest
build:
context: .
dockerfile: services/currency/Dockerfile
environment:
<<: *common-env
ports:
- 8085:8085
- 50055:50055
volumes:
- ./exchange_config.csv:/tenk-backend/exchange_config.csv
- ./fish_config.csv:/tenk-backend/fish_config.csv
healthcheck:
<<: *common-healthcheck
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8085/health"]
gateway:
<<: *common-config
container_name: tenk-gateway
image: tenk-gateway:latest
build:
context: .
dockerfile: services/gateway/Dockerfile
environment:
<<: *common-env
CORE_URL: http://core:8080/graphql
ANALYTIC_URL: http://analytic:8082/graphql
NOTIFICATION_URL: http://notification:8084/graphql
CURRENCY_URL: http://currency:8085/graphql
ports:
- 8070:8070
volumes:
- ./firebase-admin.development.json:/tenk-backend/firebase-admin.development.json
depends_on:
core:
condition: service_healthy
analytic:
condition: service_healthy
notification:
condition: service_healthy
networks:
tenk_network:
driver: bridge