1
0

docs: add healthcheck to docker compose examples

This commit is contained in:
kolaente
2024-02-11 18:31:41 +01:00
parent 3129051a9c
commit 001268a33e
2 changed files with 24 additions and 5 deletions

View File

@ -47,7 +47,8 @@ services:
volumes:
- ./files:/app/vikunja/files
depends_on:
- db
db:
condition: service_healthy
restart: unless-stopped
db:
image: mariadb:10
@ -60,6 +61,9 @@ services:
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"]
interval: 2s
```
This defines two services, each with their own container: