mirror of
https://github.com/docker/awesome-compose.git
synced 2025-07-01 01:52:54 +00: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
@ -26,6 +26,8 @@ services:
|
|||||||
- WORDPRESS_DB_USER=wordpress
|
- WORDPRESS_DB_USER=wordpress
|
||||||
- WORDPRESS_DB_PASSWORD=wordpress
|
- WORDPRESS_DB_PASSWORD=wordpress
|
||||||
- WORDPRESS_DB_NAME=wordpress
|
- WORDPRESS_DB_NAME=wordpress
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
db_data:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user