Skip to content

Commit

Permalink
Turn off the (wrong) tasks healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
przemub committed Nov 24, 2024
1 parent 674af74 commit 20d66fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ARG EXTRAS=""
# Expose uwsgi socket and HTTP
EXPOSE 12345 8009
HEALTHCHECK --start-period=5m \
CMD curl -f http://localhost:8009/ || exit 1
CMD curl -fI http://localhost:8009/ || exit 1
CMD uwsgi --ini uwsgi.cfg

Check warning on line 22 in Dockerfile

View workflow job for this annotation

GitHub Actions / Push to Docker Hub

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/

RUN useradd -d /usr/src/app -s /bin/bash app
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ services:
environment:
- DJANGO_SETTINGS_MODULE=anime_quiz.settings_prod
restart: unless-stopped
healthcheck:
disable: true
env_file:
- .env
redis:
Expand Down

0 comments on commit 20d66fe

Please sign in to comment.