feat: support dynamic port configuration in Docker Compose and entrypoint scripts

This commit is contained in:
shiyu
2025-12-30 15:00:22 +08:00
parent 078709b871
commit b1ea181f96
3 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -e
python migrate/run.py
exec gunicorn -k uvicorn.workers.UvicornWorker -w 1 -b 0.0.0.0:80 main:app
port="${FOXEL_PORT:-80}"
exec gunicorn -k uvicorn.workers.UvicornWorker -w 1 -b "0.0.0.0:${port}" main:app