Adding healthchecks to docker-compose

This commit is contained in:
Brad Murray 2023-01-12 17:59:02 -05:00 committed by GitHub
parent e76656a162
commit 597d3955a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -32,6 +32,10 @@ services:
- SETGID
- SETUID
- DAC_OVERRIDE
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 1m
timeout: 5s
searxng:
container_name: searxng
@ -55,6 +59,11 @@ services:
options:
max-size: "1m"
max-file: "1"
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/info/en/about"]
interval: 2m
timeout: 5s
networks:
searxng:
ipam: