42 lines
907 B
YAML
42 lines
907 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./backend:/app
|
|
- helm_workspaces:/tmp/helmview_workspaces
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- WORKSPACE_BASE_PATH=/tmp/helmview_workspaces
|
|
- MAX_UPLOAD_SIZE=104857600
|
|
- HELM_TIMEOUT=60
|
|
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5173:5173"
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
environment:
|
|
- VITE_API_URL=http://localhost:8000
|
|
command: npm run dev -- --host
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
helm_workspaces:
|