fix: use 0.1.6 image, on-demand TLS with ask endpoint, healthcheck on /tls-check
This commit is contained in:
@ -17,4 +17,4 @@ COMPOSE_FILE="compose.yml"
|
||||
#EXTRA_DOMAIN_1=mysite.example.org
|
||||
|
||||
# Caddy config version
|
||||
CADDYFILE_VERSION=v1
|
||||
CADDYFILE_VERSION=v2
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
{
|
||||
on_demand_tls {
|
||||
ask http://app:9000/tls-check
|
||||
}
|
||||
}
|
||||
|
||||
:443 {
|
||||
tls {
|
||||
on_demand
|
||||
|
||||
@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: notplants/lichen-full:0.1.5
|
||||
image: notplants/lichen-full:0.1.6
|
||||
networks:
|
||||
- internal
|
||||
environment:
|
||||
@ -19,10 +19,10 @@ services:
|
||||
max_attempts: 5
|
||||
labels:
|
||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+0.1.5"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+0.1.6"
|
||||
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:9000/"]
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:9000/tls-check"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user