Files
CA/deploy/docker-compose.yml
Akiba So e22b004f9e feat: GeoScene frontend POC + Docker deploy for remote host
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>
2026-07-24 03:28:29 +08:00

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