-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
180 lines (173 loc) · 5.23 KB
/
docker-compose-dev.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
services:
api-gateway:
build:
dockerfile: Dockerfile.dev
target: api-gateway-dev
context: .
ports:
- 3000
entrypoint: pnpm --filter api-gateway ${GATEWAY_COMMAND-start:dev}
environment:
DB_SERVICE_ADDR: db-service:5000
AUTH_SERVICE_ADDR: auth-service:5000
EMAIL_SERVICE_ADDR: email-service:5000
LOGGING_SERVICE_ADDR: logging-service:5000
FILE_SERVICE_ADDR: file-service:5000
SENTRY_DSN: 'https://895c35e671ebe116967d7818f6c99efb@o4506876382609408.ingest.us.sentry.io/4507926410559488'
networks:
- bog-api-net
depends_on:
auth-service:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'curl http://api-gateway:3000/ || exit 1']
interval: 2s
timeout: 10s
retries: 10
auth-service:
build:
dockerfile: Dockerfile.dev
target: auth-service-dev
context: .
ports:
- 5000
entrypoint: pnpm --filter auth-service ${AUTH_COMMAND-start:dev}
environment:
AUTH_SERVICE_ADDR: auth-service:5000
DB_SERVICE_ADDR: db-service:5000
EMAIL_SERVICE_ADDR: email-service:5000
LOGGING_SERVICE_ADDR: logging-service:5000
FILE_SERVICE_ADDR: file-service:5000
SENTRY_DSN: 'https://f65c541f1d3217cf4752046e8ce46ec4@o4506876382609408.ingest.us.sentry.io/4507926438346752'
networks:
- bog-api-net
depends_on:
db-service:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'grpc_health_probe -addr=auth-service:5000']
interval: 2s
timeout: 10s
retries: 10
email-service:
build:
dockerfile: Dockerfile.dev
target: email-service-dev
context: .
ports:
- 5000
entrypoint: pnpm --filter email-service ${EMAIL_COMMAND-start:dev}
environment:
AUTH_SERVICE_ADDR: auth-service:5000
DB_SERVICE_ADDR: db-service:5000
EMAIL_SERVICE_ADDR: email-service:5000
LOGGING_SERVICE_ADDR: logging-service:5000
FILE_SERVICE_ADDR: file-service:5000
NODE_ENV: test
SENDGRID_API_KEY: test-key
SENTRY_DSN: 'https://46b6656a920cc32333cc37cdc2c1ce12@o4506876382609408.ingest.us.sentry.io/4507926519873536'
networks:
- bog-api-net
depends_on:
db-service:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'grpc_health_probe -addr=email-service:5000']
interval: 2s
timeout: 10s
retries: 10
file-service:
build:
dockerfile: Dockerfile.dev
target: file-service-dev
context: .
ports:
- 5000
entrypoint: pnpm --filter file-service ${FILE_COMMAND-start:dev}
environment:
AUTH_SERVICE_ADDR: auth-service:5000
DB_SERVICE_ADDR: db-service:5000
EMAIL_SERVICE_ADDR: email-service:5000
LOGGING_SERVICE_ADDR: logging-service:5000
FILE_SERVICE_ADDR: file-service:5000
NODE_ENV: test
SENDGRID_API_KEY: test-key
SENTRY_DSN: 'https://dcdd535795155f880fa5728fbcad0d57@o4506876382609408.ingest.us.sentry.io/4508246900277248'
networks:
- bog-api-net
depends_on:
db-service:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'grpc_health_probe -addr=file-service:5000']
interval: 2s
timeout: 10s
retries: 10
logging-service:
build:
dockerfile: Dockerfile.dev
target: logging-service-dev
context: .
ports:
- 5000
entrypoint: pnpm --filter logging-service ${LOGGING_COMMAND-start:dev}
environment:
AUTH_SERVICE_ADDR: auth-service:5000
DB_SERVICE_ADDR: db-service:5000
EMAIL_SERVICE_ADDR: email-service:5000
LOGGING_SERVICE_ADDR: logging-service:5000
DATABASE_URL: postgresql://user:password@db
FILE_SERVICE_ADDR: file-service:5000
SENTRY_DSN: 'https://9057d8b86db87880b424db0d8e923cfc@o4506876382609408.ingest.us.sentry.io/4507926523478016'
networks:
- bog-api-net
healthcheck:
test: ['CMD-SHELL', 'grpc_health_probe -addr=db-service:5000']
interval: 2s
timeout: 10s
retries: 10
db-service:
build:
dockerfile: Dockerfile.dev
target: db-service-dev
context: .
ports:
- 5000
entrypoint: /bin/sh -c "DB_COMMAND=${DB_COMMAND-start:dev} RUN_MODE=${RUN_MODE-dev} ./entrypoint.sh"
environment:
AUTH_SERVICE_ADDR: auth-service:5000
DB_SERVICE_ADDR: db-service:5000
EMAIL_SERVICE_ADDR: email-service:5000
LOGGING_SERVICE_ADDR: logging-service:5000
FILE_SERVICE_ADDR: file-service:5000
DATABASE_URL: postgresql://user:password@db
NODE_ENV: test
SENTRY_DSN: 'https://235226366783809ee8337a530785707f@o4506876382609408.ingest.us.sentry.io/4507926518038528'
networks:
- bog-api-net
depends_on:
db:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'grpc_health_probe -addr=db-service:5000']
interval: 2s
timeout: 10s
retries: 10
db:
image: postgres
restart: always
ports:
- 5432
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
networks:
- bog-api-net
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U user']
interval: 2s
timeout: 5s
retries: 10
networks:
bog-api-net:
driver: bridge