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

View File

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