1
0
Fork 0
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:
Javier Villalba 2025-01-12 16:03:05 -03:00 committed by GitHub
parent 18f59bdb09
commit 7550b41eed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,8 +26,10 @@ services:
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=wordpress
- WORDPRESS_DB_NAME=wordpress
depends_on:
- db
volumes:
db_data: