更新 docker-compose.yml 和 supervisord.conf: 重构服务配置,合并前后端服务,调整端口映射和启动命令。

This commit is contained in:
2025-07-19 17:17:27 +08:00
parent c96a58204c
commit 3b81cbda0e
4 changed files with 59 additions and 60 deletions

View File

@ -1,22 +1,12 @@
version: '3.8'
services:
backend:
build: ./back
container_name: backend
app:
build:
context: .
dockerfile: Dockerfile
container_name: app
ports:
- "7792:5000"
- "7792:7792" # 前端
- "7793:7793" # 后端
volumes:
- ./back:/app
environment:
- FLASK_ENV=development
depends_on:
- frontend
frontend:
build: ./platform
container_name: frontend
ports:
- "7793:5173"
volumes:
- ./platform:/app
environment:
- NODE_ENV=development
- ./back:/app/back
- ./platform:/app/platform