fix: worker healthcheck — Redis ping instead of HTTP check for worker container
This commit is contained in:
+2
-2
@@ -76,7 +76,7 @@ COPY --chown=appuser:appuser . .
|
||||
COPY --from=frontend --chown=appuser:appuser /frontend/dist /app/frontend/dist
|
||||
|
||||
# Make entrypoint scripts executable
|
||||
RUN chmod +x /app/prestart.sh /app/worker.sh
|
||||
RUN chmod +x /app/prestart.sh /app/worker.sh /app/healthcheck.sh
|
||||
|
||||
# Create storage directory
|
||||
RUN mkdir -p /data/storage && chown -R appuser:appuser /data
|
||||
@@ -86,6 +86,6 @@ USER appuser
|
||||
EXPOSE 8000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
||||
CMD curl -fsS http://localhost:8000/api/v1/health || exit 1
|
||||
CMD /app/healthcheck.sh
|
||||
|
||||
ENTRYPOINT ["/app/prestart.sh"]
|
||||
|
||||
Reference in New Issue
Block a user