healthcheck ok: app but not for database
This commit is contained in:
parent
4fc61057eb
commit
727a8c9490
@ -12,6 +12,12 @@ services:
|
||||
- MYSQL_PASSWORD=Pa55w0rd
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
- MYSQL_USER=nextcloud
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-pPa55w0rd"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
app:
|
||||
image: nextcloud:26.0.0
|
||||
@ -27,6 +33,12 @@ services:
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
- MYSQL_USER=nextcloud
|
||||
- MYSQL_HOST=db
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
|
||||
volumes:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user