Skip to content

Commit

Permalink
Improve healcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez authored Apr 27, 2024
1 parent cbdf78e commit 264f796
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,7 @@ services:
- /usr/lib/python3.9/site-packages
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:${CKAN_PORT}"
]
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:${CKAN_PORT}"]

pycsw:
build:
Expand All @@ -76,14 +69,7 @@ services:
max-file: "10"
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:5000"
]
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]

db:
build:
Expand All @@ -109,15 +95,7 @@ services:
max-file: "10"
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"pg_isready",
"-U",
"${POSTGRES_USER}",
"-d",
"${POSTGRES_DB}"
]
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]

solr:
build:
Expand All @@ -136,14 +114,7 @@ services:
- solr_data:/var/solr
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"-qO",
"/dev/null",
"http://localhost:${SOLR_PORT}/solr/"
]
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8983/solr/"]

redis:
image: redis:${REDIS_VERSION}
Expand Down

0 comments on commit 264f796

Please sign in to comment.