added dependency to ensure correct startup/shutdown order

This commit is contained in:
Bryan Joshua Pedini 2022-04-09 14:07:15 +02:00
parent c64385301b
commit 1fbbd0ce96
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ services:
nextcloud:
image: nextcloud:${NC_VERSION}
restart: unless-stopped
depends_on:
- db
environment:
- MYSQL_HOST=db
- MYSQL_DATABASE=${NC_DATABASE_NAME}