We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 305d149 commit 17be3bbCopy full SHA for 17be3bb
1 file changed
Dockerfile
@@ -54,7 +54,8 @@ EXPOSE $PORT
54
HEALTHCHECK --interval=30m --timeout=60s --start-period=5s \
55
CMD ruby -ruri -rnet/http -e ' \
56
port = ENV.fetch("PORT", "4000") \
57
- token = ENV.fetch("HEALTH_CHECK_TOKEN", "CHANGE_ME_HEALTH_CHECK_TOKEN") \
+ token = ENV["HEALTH_CHECK_TOKEN"] \
58
+ token = "CHANGE_ME_HEALTH_CHECK_TOKEN" if token.nil? || token.empty? \
59
uri = URI("http://localhost:#{port}/api/v1/health") \
60
request = Net::HTTP::Get.new(uri) \
61
request["Authorization"] = "Bearer #{token}" \
0 commit comments