-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 794 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 794 Bytes
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
name: 'playground'
services:
server:
build:
context: ./
dockerfile: ./docker/server/Dockerfile
ports:
- "${PORT}:${PORT}"
depends_on:
- db
db:
build:
context: ./
dockerfile: ./docker/db/Dockerfile
ports:
- "5433:${DB_PORT}"
env_file: ".env"
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- GEO_SUGGEST_SERVER_HOST=geo-suggest
- DB_HOST=db
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${DB_USER} -d ${DB_NAME}'"]
interval: 10s
timeout: 30s
retries: 3
geo-suggest:
env_file: "./internal/geo_suggest/.env"
build:
context: ./
dockerfile: ./docker/geo-suggest/Dockerfile
ports:
- "${GEO_SUGGEST_SERVER_PORT}:${GEO_SUGGEST_SERVER_PORT}"