-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1 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
services:
db:
image: postgres:16
restart: unless-stopped
env_file:
- .env
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U c2si -d c2si_db"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: ./tensormap-backend
restart: unless-stopped
ports:
- "4300:4300"
env_file:
- ./tensormap-backend/.env
environment:
# Override DATABASE_URL to use Docker service name instead of localhost
DATABASE_URL: postgresql+psycopg2://c2si:c2si@db:5432/c2si_db
depends_on:
db:
condition: service_healthy
volumes:
- ./tensormap-backend/data:/app/data
frontend:
build:
context: ./tensormap-frontend
args:
VITE_API_BASE_URL: http://localhost:4300/api/v1
VITE_WS_URL: http://localhost:4300/dl-result
restart: unless-stopped
ports:
- "3300:3300"
depends_on:
- backend
volumes:
pgdata: