Added healthcheck for docker

This commit is contained in:
2022-01-21 18:09:56 +01:00
parent ff5b7d1e36
commit 185a2fb635
2 changed files with 10 additions and 0 deletions

View File

@@ -9,6 +9,11 @@ services:
env_file: mailu.env
volumes:
- "redis_data:/data"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 30
database:
image: mariadb
restart: always