Merge pull request #164 from ckan/Update-healthcheck-to-Docker-Compose
Update compose files to check the health of the CKAN and DataPusher container processes
This commit is contained in:
commit
f62ff0c973
@ -31,12 +31,18 @@ services:
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
|
||||
interval: 60s
|
||||
timeout: 10s
|
||||
retries: 3s
|
||||
|
||||
datapusher:
|
||||
image: ckan/ckan-base-datapusher:${DATAPUSHER_VERSION}
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8800"]
|
||||
interval: 60s
|
||||
timeout: 10s
|
||||
retries: 3s
|
||||
|
||||
db:
|
||||
build:
|
||||
|
||||
@ -46,7 +46,10 @@ services:
|
||||
- site_packages:/usr/lib/python3.10/site-packages
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
|
||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000/api/action/status_show"]
|
||||
interval: 60s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
datapusher:
|
||||
networks:
|
||||
@ -56,6 +59,9 @@ services:
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8800"]
|
||||
interval: 60s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
db:
|
||||
build:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user