fix: align PORT defaults to 8080 for Railway

This commit is contained in:
tinkle-community
2026-01-06 18:53:27 +08:00
parent aee096ab1e
commit c8458ec79c
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -33,11 +33,11 @@ COPY railway/start.sh /app/start.sh
RUN chmod +x /app/start.sh
ENV DB_PATH=/app/data/data.db
ENV PORT=3000
EXPOSE 3000
# Railway 会自动设置 PORT 环境变量
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:${PORT:-3000}/health || exit 1
CMD wget --no-verbose --tries=1 --spider http://localhost:${PORT:-8080}/health || exit 1
CMD ["/app/start.sh"]