Skip to content

Commit

Permalink
fix: Healthcheck of docker image (#2694)
Browse files Browse the repository at this point in the history
We use `wget` because `curl` is not installed on the image.

Originally developed by @vexdev in #2676, thank you for that!

Closes #2675.


![image](https://github.com/user-attachments/assets/bdd7c689-1747-48fa-a59f-104a3851e97e)

Co-authored-by: StaNov <[email protected]>
  • Loading branch information
StaNov and StaNov authored Nov 14, 2024
1 parent 6cac171 commit c21575f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ CMD ["java", "-cp", "app:app/lib/*", "io.tolgee.Application"]

# Health check to ensure the app is up and running
HEALTHCHECK --interval=10s --timeout=3s --retries=20 \
CMD curl -f http://127.0.0.1:$HEALTHCHECK_PORT/actuator/health || exit 1
CMD wget --spider -q "http://127.0.0.1:$HEALTHCHECK_PORT/actuator/health" || exit 1

0 comments on commit c21575f

Please sign in to comment.