mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
Update yaml to include mariadb health check
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
booklore:
|
||||
image: ghcr.io/adityachandelgit/booklore-app:${BOOKLORE_IMAGE_TAG}
|
||||
@@ -6,7 +5,8 @@ services:
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
- mariadb
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "6060:6060"
|
||||
volumes:
|
||||
@@ -20,4 +20,9 @@ services:
|
||||
- .env
|
||||
volumes:
|
||||
- ${MARIADB_CONFIG_PATH}:/config
|
||||
restart: unless-stopped
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
Reference in New Issue
Block a user