-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
42 lines (40 loc) · 1.02 KB
/
docker-compose.dev.yml
File metadata and controls
42 lines (40 loc) · 1.02 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
services:
oversight-backend:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "${BACKEND_PORT:-5001}:5001"
environment:
- FLASK_PORT=5001
- FLASK_ENV=development
- DATABASE_URL=${DATABASE_URL}
- CORS_ORIGINS=http://localhost:${FRONTEND_PORT:-3000},http://oversight-frontend:3000
volumes:
- ./src:/app/src
- ./data:/app/data
- ./.env:/app/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
oversight-frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "${FRONTEND_PORT:-3000}:3000"
environment:
- NEXT_PUBLIC_BACKEND_URL=http://oversight-backend:5001
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
depends_on:
oversight-backend:
condition: service_healthy
networks:
default:
name: ${COMPOSE_PROJECT_NAME:-oversight}-network