diff --git a/app.json b/app.json index 3128e66..b13ac51 100644 --- a/app.json +++ b/app.json @@ -11,13 +11,20 @@ "web": [ { "type": "startup", - "name": "web process check", - "description": "Checking web process startup", + "name": "web-startup", "path": "/ready", "attempts": 5, - "timeout": 10, + "timeout": 30, "wait": 5, - "initial_delay": 15 + "initial_delay": 20 + }, + { + "type": "liveness", + "name": "web-liveness", + "path": "/health", + "attempts": 3, + "timeout": 10, + "wait": 10 } ] }, diff --git a/config/runtime.exs b/config/runtime.exs index 4c53db9..a147c90 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -54,11 +54,11 @@ if config_env() == :prod do config :aprs, AprsWeb.Endpoint, url: [host: host, port: 443, scheme: "https"], http: [ - # Enable IPv6 and bind on all interfaces. - # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access. + # Bind on all IPv4 interfaces for better container compatibility + # Use {0, 0, 0, 0} for IPv4 or {0, 0, 0, 0, 0, 0, 0, 0} for IPv6 # See the documentation on https://hexdocs.pm/plug_cowboy/Plug.Cowboy.html # for details about using IPv6 vs IPv4 and loopback vs public addresses. - ip: {0, 0, 0, 0, 0, 0, 0, 0}, + ip: {0, 0, 0, 0}, port: port ], secret_key_base: secret_key_base