Refactor healthcheck configurations in Docker Compose files

This commit is contained in:
Andras Bacsai
2024-04-16 14:08:11 +02:00
parent 498626748d
commit 1aec16a240
17 changed files with 145 additions and 34 deletions

View File

@@ -22,6 +22,11 @@ services:
- DB_DATABASE=${MYSQL_DATABASE:-invoice_ninja}
- DB_USERNAME=${SERVICE_USER_MYSQL}
- DB_PASSWORD=${SERVICE_PASSWORD_MYSQL}
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000']
interval: 5s
timeout: 20s
retries: 10
volumes:
- invoice-ninja-public:/var/www/app/public
- invoice-ninja-storage:/var/www/app/storage