feat: adds health check (default values) to docker-compose file

pull/38/head
Andre Henn 2023-12-20 12:30:10 +01:00
parent 4d96f6f19c
commit 9b80e8c410
No known key found for this signature in database
GPG Key ID: 776670F973DDECAA
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ services:
volumes:
- ./geoserver_data:/opt/geoserver_data/:Z
- ./additional_libs:/opt/additional_libs:Z # by mounting this we can install libs from host on startup
healthcheck:
test: curl --fail "http://localhost:8080/geoserver/web/wicket/resource/org.geoserver.web.GeoServerBasePage/img/logo.png" || exit 1
interval: 1m
retries: 3
timeout: 20s
postgis:
image: postgis/postgis:16-3.4-alpine
ports: