-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
36 lines (36 loc) · 824 Bytes
/
compose.yml
File metadata and controls
36 lines (36 loc) · 824 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
services:
postgres:
image: postgres:17.2-alpine3.21
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
healthcheck:
test: ["CMD", "pg_isready", "-d", "postgres", "-U", "postgres"]
start_period: 2s
interval: 5s
timeout: 3s
retries: 3
backend:
build: ./ParaCAD-backend
ports:
- "8081:8081"
environment:
- PORT=8081
- JWT_SECRET=not_a_real_secret_lol
- DB_HOST=postgres
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=postgres
- IMAGE_STORAGE_DIR=/app/images
depends_on:
postgres:
condition: service_healthy
frontend:
build: ./ParaCAD-frontend
ports:
- "8080:8080"
depends_on:
- backend