Added healthcheck for mariadb

This commit is contained in:
Kevin Veen-Birkenbach 2022-01-20 21:59:53 +01:00
parent 47e7544b59
commit dea31c6fce

View File

@ -28,6 +28,11 @@ services:
volumes:
- database:/var/lib/mysql
restart: always
healthcheck:
test: "/usr/bin/mysql --user=nextcloud --password={{nextcloud_database_password}} --execute \"SHOW DATABASES;\""
interval: 3s
timeout: 1s
retries: 5
web:
image: nginx:alpine
logging: