From 7550b41eed6a9d1cb262feb0c8a9bb2f1ffb4ab8 Mon Sep 17 00:00:00 2001 From: Javier Villalba <256javiervillalba@gmail.com> Date: Sun, 12 Jan 2025 16:03:05 -0300 Subject: [PATCH] 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> --- wordpress-mysql/compose.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wordpress-mysql/compose.yaml b/wordpress-mysql/compose.yaml index afa0f46..f5124cb 100644 --- a/wordpress-mysql/compose.yaml +++ b/wordpress-mysql/compose.yaml @@ -26,8 +26,10 @@ services: - WORDPRESS_DB_USER=wordpress - WORDPRESS_DB_PASSWORD=wordpress - WORDPRESS_DB_NAME=wordpress + depends_on: + - db volumes: db_data: - \ No newline at end of file +