war_gaming / frontend /docker-compose.yml
schipsy
Merge Board Console UI + setup agent + orchestrator into main (#5)
fa0970b unverified
Raw History Blame Contribute Delete
867 Bytes
# docker-compose for the whole Board Console + backend stack.
#
# Assumes the FastAPI backend lives one directory up at ../wargaming-backend
# and exposes `wargame.api.app:app` on port 8080.
#
# Run:
# docker compose up --build
# Then open http://localhost:5173
services:
backend:
build:
context: ../wargaming-backend
dockerfile: Dockerfile
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
ports:
- "8080:8080"
volumes:
- backend-data:/data
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/healthz"]
interval: 10s
timeout: 3s
retries: 10
frontend:
build:
context: .
dockerfile: Dockerfile
depends_on:
backend:
condition: service_healthy
ports:
- "5173:80"
volumes:
backend-data: