fix: pass PORT env var to app container

Apps follow the Heroku convention of binding to $PORT at runtime.
Without --env PORT=$PORT, containers use their default port which
doesn't match what Caddy is configured to dial, causing 502s.
This commit is contained in:
Claude 2026-03-19 11:34:23 +00:00
parent fd7d417471
commit 944feb39ec
No known key found for this signature in database

View file

@ -100,6 +100,7 @@ docker run --detach \
--name "$CONTAINER_NAME" \
--network hiy-net \
"${ENV_FILE_ARG[@]+"${ENV_FILE_ARG[@]}"}" \
--env "PORT=${PORT}" \
--expose "$PORT" \
--label "hiy.app=${APP_ID}" \
--label "hiy.port=${PORT}" \