Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86ebdd0074 |
+3
-3
@@ -208,9 +208,9 @@ services:
|
||||
networks:
|
||||
- backend
|
||||
healthcheck:
|
||||
# /conversion only accepts POST; any HTTP response (e.g. 404/405) means the server is up.
|
||||
# wget exit 4 = network error (server down); anything else = server responded.
|
||||
test: ["CMD-SHELL", "wget -qO /dev/null http://localhost:4000/conversion 2>/dev/null; test $$? -ne 4"]
|
||||
# /health is a proper GET endpoint returning 200 "Healthy."
|
||||
# Use 127.0.0.1: the Elixir app binds IPv4 only, "localhost" resolves to ::1 first and fails.
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:4000/health"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user