distroless

This commit is contained in:
Graham McIntire 2025-06-15 15:14:11 -05:00
parent 8a4189ad74
commit 74fe164c5b
2 changed files with 14 additions and 7 deletions

View file

@ -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
}
]
},

View file

@ -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