Skip to content

Commit

Permalink
fix: docker whined about syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasPeters committed Oct 1, 2024
1 parent d751cfa commit fd39534
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ansible/roles/outline/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd39534

Please sign in to comment.