mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
fix: Add depends_on statement
While I tried this docker compose file, the wordpress service couldn't start because of the delayed start of the db service. So I manged to add the depends_on to wait for the db service. Signed-off-by: Javier Villalba <256javiervillalba@gmail.com>
This commit is contained in:
parent
18f59bdb09
commit
7550b41eed
1 changed files with 3 additions and 1 deletions
|
@ -26,8 +26,10 @@ services:
|
|||
- WORDPRESS_DB_USER=wordpress
|
||||
- WORDPRESS_DB_PASSWORD=wordpress
|
||||
- WORDPRESS_DB_NAME=wordpress
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue