feat: respect PORT env variable for Coolify preview deployments

Nginx now listens on ${PORT} (default 7575) instead of hardcoded 7575,
so Coolify can inject a unique port per preview container. The internal
Next.js server is pinned to port 3000 to avoid conflicting with nginx.
This commit is contained in:
Thomas Camlong committed 2026-06-08 16:44:16 +02:00
1 parent a447a9f615
commit e004afa806
5 files changed
+12 -7

No files matched your search

+3
View File
@@ -65,5 +65,8 @@ ENV AUTH_PROVIDERS='credentials'
ENV REDIS_IS_EXTERNAL='false'
ENV NODE_ENV='production'
ARG PORT=7575
EXPOSE ${PORT}
ENTRYPOINT [ "/app/entrypoint.sh" ]
CMD ["sh", "run.sh"]