Improve healcheck
This commit is contained in:
parent
cbdf78e3f2
commit
264f79663d
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue