Skip to content

Commit

Permalink
chore: Fix healthcheck of backend
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, thank you for that!

Closes tolgee#2675.
  • Loading branch information
StaNov committed Nov 13, 2024
1 parent 306a6c5 commit e87161d
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 e87161d

Please sign in to comment.