From ba3e83e266e9ecb9d0179bff194472e0078e0858 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Wed, 3 Aug 2022 16:08:56 +0200
Subject: [PATCH] docker-compose: make sure the servers depend on redis/mariadb

so the services get started in the right order
---
 docker-dev/docker-compose.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docker-dev/docker-compose.yml b/docker-dev/docker-compose.yml
index 3aec6a4..9ecb0cb 100644
--- a/docker-dev/docker-compose.yml
+++ b/docker-dev/docker-compose.yml
@@ -15,6 +15,9 @@ services:
       - TERM_PROGRAM=Hyper  # force colors for the symfony dumper
     build:
       context: php-fpm
+    depends_on:
+      - mariadb
+      - redis
     working_dir: /application
     volumes:
       - ..:/application
@@ -26,6 +29,9 @@ services:
       - TERM_PROGRAM=Hyper  # force colors for the symfony dumper
     build:
       context: php-fpm
+    depends_on:
+      - mariadb
+      - redis
     working_dir: /application
     entrypoint: supervisord -c /etc/supervisor/conf.d/queue-worker.conf
     volumes:
@@ -41,6 +47,8 @@ services:
 
   redis-commander:
     image: "rediscommander/redis-commander"
+    depends_on:
+      - redis
     environment:
       - REDIS_HOST=redis
     ports:
@@ -58,6 +66,8 @@ services:
 
   phpmyadmin:
     image: phpmyadmin/phpmyadmin
+    depends_on:
+      - mariadb
     environment:
       - PMA_USER=db
       - PMA_PASSWORD=secret
-- 
GitLab