-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.09 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: transmuter
POSTGRES_PASSWORD: transmuter
POSTGRES_DB: transmuter
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
parser-java:
build:
context: .
dockerfile: docker/parser-java.Dockerfile
ports:
- "4000:4000"
environment:
PARSER_PORT: 4000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
api:
build:
context: .
dockerfile: docker/api.Dockerfile
ports:
- "3000:3000"
environment:
API_PORT: 3000
PARSER_URL: http://parser-java:4000
depends_on:
parser-java:
condition: service_healthy
web:
build:
context: .
dockerfile: docker/web.Dockerfile
ports:
- "3001:3001"
environment:
NEXT_PUBLIC_API_URL: http://localhost:3000
depends_on:
- api
volumes:
pgdata: