ddbb79b9f6
单容器 Docker 架构的国土空间规划课程智能问答系统,集成 FastAPI 后端与 Next.js 前端。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
29 lines
666 B
Plaintext
29 lines
666 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/dev/stdout
|
|
logfile_maxbytes=0
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[program:backend]
|
|
command=/app/.venv/bin/python -m uvicorn main:app --host 0.0.0.0 --port 8000
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
environment=PYTHONPATH="/app",PYTHONUNBUFFERED="1"
|
|
|
|
[program:frontend]
|
|
command=node server.js
|
|
directory=/app/web
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
environment=PORT="8001",HOSTNAME="0.0.0.0",NODE_ENV="production"
|
|
|