Files
AiTool/docker-compose.yml
2026-03-18 17:01:10 +08:00

26 lines
585 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 生产/默认:前端为静态 SPAVite build + Nginx后端 FastAPI。
# 开发:使用 docker-compose.dev.yml容器内 Vite 热更新),执行: ./docker_dev.sh dev
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: ops-core-backend
env_file:
- .env
volumes:
- ./data:/app/data
ports:
- "8000:8000"
frontend:
build:
context: ./frontend_spa
dockerfile: Dockerfile
container_name: ops-core-frontend
ports:
- "3000:80"
depends_on:
- backend