distroless
This commit is contained in:
parent
8a4189ad74
commit
74fe164c5b
2 changed files with 14 additions and 7 deletions
15
app.json
15
app.json
|
|
@ -11,13 +11,20 @@
|
||||||
"web": [
|
"web": [
|
||||||
{
|
{
|
||||||
"type": "startup",
|
"type": "startup",
|
||||||
"name": "web process check",
|
"name": "web-startup",
|
||||||
"description": "Checking web process startup",
|
|
||||||
"path": "/ready",
|
"path": "/ready",
|
||||||
"attempts": 5,
|
"attempts": 5,
|
||||||
"timeout": 10,
|
"timeout": 30,
|
||||||
"wait": 5,
|
"wait": 5,
|
||||||
"initial_delay": 15
|
"initial_delay": 20
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "liveness",
|
||||||
|
"name": "web-liveness",
|
||||||
|
"path": "/health",
|
||||||
|
"attempts": 3,
|
||||||
|
"timeout": 10,
|
||||||
|
"wait": 10
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -54,11 +54,11 @@ if config_env() == :prod do
|
||||||
config :aprs, AprsWeb.Endpoint,
|
config :aprs, AprsWeb.Endpoint,
|
||||||
url: [host: host, port: 443, scheme: "https"],
|
url: [host: host, port: 443, scheme: "https"],
|
||||||
http: [
|
http: [
|
||||||
# Enable IPv6 and bind on all interfaces.
|
# Bind on all IPv4 interfaces for better container compatibility
|
||||||
# Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.
|
# 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
|
# See the documentation on https://hexdocs.pm/plug_cowboy/Plug.Cowboy.html
|
||||||
# for details about using IPv6 vs IPv4 and loopback vs public addresses.
|
# 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
|
port: port
|
||||||
],
|
],
|
||||||
secret_key_base: secret_key_base
|
secret_key_base: secret_key_base
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue