generated from coop-cloud/example
Drop healthcheck and pass command correctly
This commit is contained in:
parent
07345b1236
commit
ec8d602f3f
13
compose.yml
13
compose.yml
|
@ -15,10 +15,8 @@ services:
|
|||
- PASSWORD_FILE=/run/secrets/admin_password
|
||||
configs:
|
||||
- source: custom_entrypoint
|
||||
target: /usr/local/bin/docker-entrypoint.sh
|
||||
target: /docker-entrypoint.sh
|
||||
mode: 0555
|
||||
entrypoint: /usr/local/bin/docker-entrypoint.sh
|
||||
command: /init
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
|
@ -28,13 +26,8 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
healthcheck:
|
||||
test:
|
||||
["CMD-SHELL", "wget -q --spider --proxy=off localhost:8787 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
entrypoint: /docker-entrypoint.sh
|
||||
command: /init
|
||||
|
||||
volumes:
|
||||
home:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
file_env() {
|
||||
local var="$1"
|
||||
|
@ -25,3 +25,5 @@ file_env() {
|
|||
}
|
||||
|
||||
file_env "PASSWORD"
|
||||
|
||||
exec "$@"
|
||||
|
|
Reference in New Issue