Add healthchecks (#437)
This commit is contained in:
@@ -10,7 +10,7 @@ services:
|
||||
image: getmeili/meilisearch:v1.11.3
|
||||
environment:
|
||||
<<: *cenv
|
||||
MEILI_NO_ANALYTICS: true
|
||||
MEILI_NO_ANALYTICS: "true"
|
||||
ports:
|
||||
- 7700:7700
|
||||
networks:
|
||||
@@ -41,6 +41,12 @@ services:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data/pb_data:/pb_data
|
||||
healthcheck:
|
||||
test: wget --spider -q http://localhost:8090/health || exit 1
|
||||
interval: 15s
|
||||
retries: 10
|
||||
start_period: 20s
|
||||
timeout: 10s
|
||||
web:
|
||||
container_name: wanderer-web
|
||||
image: flomp/wanderer-web
|
||||
@@ -48,13 +54,13 @@ services:
|
||||
search:
|
||||
condition: service_healthy
|
||||
db:
|
||||
condition: service_started
|
||||
condition: service_healthy
|
||||
environment:
|
||||
<<: *cenv
|
||||
ORIGIN: http://localhost:3000
|
||||
BODY_SIZE_LIMIT: Infinity
|
||||
PUBLIC_POCKETBASE_URL: http://db:8090
|
||||
PUBLIC_DISABLE_SIGNUP: false
|
||||
PUBLIC_DISABLE_SIGNUP: "false"
|
||||
UPLOAD_FOLDER: /app/uploads
|
||||
UPLOAD_USER:
|
||||
UPLOAD_PASSWORD:
|
||||
@@ -67,6 +73,12 @@ services:
|
||||
networks:
|
||||
- wanderer
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: curl --fail http://localhost:3000/ || exit 1
|
||||
interval: 15s
|
||||
retries: 10
|
||||
start_period: 20s
|
||||
timeout: 10s
|
||||
# valhalla:
|
||||
# image: ghcr.io/gis-ops/docker-valhalla/valhalla:latest
|
||||
# ports:
|
||||
|
||||
Reference in New Issue
Block a user