Migrate maps to @geoscene/core, polish monitoring/alerts UX, fix timeline basemap flicker and district alert regions, and ship compose/nginx Docker deploy assets with CBPOA_ROOT data mounts. Co-authored-by: Cursor <cursoragent@cursor.com>
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ../backend
|
|
dockerfile: ../deploy/backend/Dockerfile
|
|
container_name: cbpoa_backend
|
|
environment:
|
|
CBPOA_ROOT: /data
|
|
CORS_ORIGINS: "*"
|
|
volumes:
|
|
- ../outputs:/data/outputs:ro
|
|
- ../processed:/data/processed:ro
|
|
- ../Datas:/data/Datas:ro
|
|
ports:
|
|
- "8000:8000"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -f http://localhost:8000/docs || exit 1"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 40s
|
|
restart: unless-stopped
|
|
networks:
|
|
- cbpoa_net
|
|
|
|
frontend:
|
|
build:
|
|
context: ../frontend
|
|
dockerfile: ../deploy/frontend/Dockerfile
|
|
container_name: cbpoa_frontend
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
ports:
|
|
- "80:80"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost/ || exit 1"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
networks:
|
|
- cbpoa_net
|
|
|
|
networks:
|
|
cbpoa_net:
|
|
driver: bridge
|