-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1003 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 1003 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
36
37
38
39
40
41
42
43
44
45
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: processveritas
POSTGRES_USER: processveritas
POSTGRES_PASSWORD: processveritas
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U processveritas"]
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "8080:8080"
environment:
DB_URL: jdbc:postgresql://postgres:5432/processveritas
DB_USER: processveritas
DB_PASSWORD: processveritas
JWT_SECRET: ${JWT_SECRET:-change-me-in-production-min-32-chars-ok}
PV_WORK_DIR: /tmp/pv-runs
SERVER_PORT: 8080
depends_on:
postgres:
condition: service_healthy
volumes:
- /tmp/pv-runs:/tmp/pv-runs
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "80:80"
depends_on:
- api
volumes:
pg_data: