mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
Added healthcheck for mariadb
This commit is contained in:
parent
4ba445e0fd
commit
ea2118fa67
@ -28,6 +28,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- database:/var/lib/mysql
|
- database:/var/lib/mysql
|
||||||
restart: always
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: "/usr/bin/mysql --user=nextcloud --password={{nextcloud_database_password}} --execute \"SHOW DATABASES;\""
|
||||||
|
interval: 3s
|
||||||
|
timeout: 1s
|
||||||
|
retries: 5
|
||||||
web:
|
web:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
logging:
|
logging:
|
||||||
|
Loading…
Reference in New Issue
Block a user