更新 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

18
supervisord.conf Normal file
View File

@ -0,0 +1,18 @@
[supervisord]
nodaemon=true
[program:frontend]
directory=/app/platform
command=http-server dist -p 7792
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
[program:backend]
directory=/app/back
command=python app.py --port=7793
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr