Skip to content

Commit

Permalink
ci: updated healthcheck params
Browse files Browse the repository at this point in the history
  • Loading branch information
borolepratik committed Feb 9, 2024
1 parent 30eb7f6 commit e8d73b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN poetry config virtualenvs.create false \
EXPOSE 8081

# Healthcheck
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost/health || exit 1
HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
CMD curl -f http://localhost:8081/health || exit 1

# Run the uvicorn command, telling it to use the app object imported from app.main.
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8081", "--reload", "--reload-exclude", "app/test_main.py"]
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ COPY ./app /code/app
EXPOSE 80

# Healthcheck
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost/health || exit 1
HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
CMD curl -f http://localhost:8081/health || exit 1

# Run the uvicorn command, telling it to use the app object imported from app.main.
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ COPY ./app /code/app
EXPOSE 80

# Healthcheck
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost/health || exit 1
HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
CMD curl -f http://localhost:8081/health || exit 1

# Run the uvicorn command, telling it to use the app object imported from app.main.
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
Expand Down

0 comments on commit e8d73b9

Please sign in to comment.