From fd39534f42914770d9bfe676fa7169439f201a46 Mon Sep 17 00:00:00 2001 From: Silas <69711739+SilasPeters@users.noreply.github.com> Date: Tue, 1 Oct 2024 23:29:41 +0200 Subject: [PATCH] fix: docker whined about syntax --- ansible/roles/outline/templates/docker-compose.yml.j2 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ansible/roles/outline/templates/docker-compose.yml.j2 b/ansible/roles/outline/templates/docker-compose.yml.j2 index 232b24d1..b1df24ca 100644 --- a/ansible/roles/outline/templates/docker-compose.yml.j2 +++ b/ansible/roles/outline/templates/docker-compose.yml.j2 @@ -8,11 +8,10 @@ services: restart: on-failure:3 network_mode: host # TODO replace this healthcheck: - test: [ - "CMD", "wget", "-qO-", "http://localhost:${PORT}/_health", "|", "grep", "-q", "OK", - "&&", "wget", "-qO-", "https://hc-ping.com/{{ secret_healthchecks_io.ping_key }}/outline", - "||", "exit", "1" - ] + test: | + wget -qO- http://localhost:${PORT}/_health | grep -q OK \ + && wget -qO- https://hc-ping.com/{{ secret_healthchecks_io.ping_key }}/outline \ + || exit 1 interval: 5m start_period: 30s start_interval: 10s