Improve healcheck

This commit is contained in:
mjanez 2024-04-27 18:18:36 +02:00 committed by GitHub
parent cbdf78e3f2
commit 264f79663d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 33 deletions

View File

@ -54,14 +54,7 @@ services:
- /usr/lib/python3.9/site-packages - /usr/lib/python3.9/site-packages
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:${CKAN_PORT}"]
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:${CKAN_PORT}"
]
pycsw: pycsw:
build: build:
@ -76,14 +69,7 @@ services:
max-file: "10" max-file: "10"
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:5000"
]
db: db:
build: build:
@ -109,15 +95,7 @@ services:
max-file: "10" max-file: "10"
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
[
"CMD",
"pg_isready",
"-U",
"${POSTGRES_USER}",
"-d",
"${POSTGRES_DB}"
]
solr: solr:
build: build:
@ -136,14 +114,7 @@ services:
- solr_data:/var/solr - solr_data:/var/solr
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8983/solr/"]
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:${SOLR_PORT}/solr/"
]
redis: redis:
image: redis:${REDIS_VERSION} image: redis:${REDIS_VERSION}