From d79dec5a65637840ea55fb5168d0fcfcb5796b9b Mon Sep 17 00:00:00 2001 From: aszykm Date: Thu, 30 Jul 2020 23:59:01 +0200 Subject: [PATCH] Update docker-compose.yml Missing conditions to control individual service. --- tutor/templates/local/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutor/templates/local/docker-compose.yml b/tutor/templates/local/docker-compose.yml index 571c8db..8c32f3c 100644 --- a/tutor/templates/local/docker-compose.yml +++ b/tutor/templates/local/docker-compose.yml @@ -88,7 +88,7 @@ services: - ../../data/lms:/openedx/data - ../../data/openedx-media:/openedx/media depends_on: - - mysql + {% if ACTIVATE_MYSQL %}- mysql{% endif %} {% if ACTIVATE_ELASTICSEARCH %}- elasticsearch{% endif %} {% if ACTIVATE_FORUM %}- forum{% endif %} {% if ACTIVATE_MEMCACHED %}- memcached{% endif %} @@ -113,7 +113,7 @@ services: - ../../data/cms:/openedx/data - ../../data/openedx-media:/openedx/media depends_on: - - mysql + {% if ACTIVATE_MYSQL %}- mysql{% endif %} {% if ACTIVATE_ELASTICSEARCH %}- elasticsearch{% endif %} {% if ACTIVATE_MEMCACHED %}- memcached{% endif %} {% if ACTIVATE_MONGODB %}- mongodb{% endif %} @@ -163,4 +163,4 @@ services: - cms {% endif %} - {{ patch("local-docker-compose-services")|indent(2) }} \ No newline at end of file + {{ patch("local-docker-compose-services")|indent(2) }}