From 22299f1cc6db9b3047a6166cdd322d5f3b8adc50 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 10 Mar 2023 22:38:13 +0000 Subject: [PATCH] feat: disable the `web` service Don't create a `web` service in Docker Compose if it has been disabled in `build.yaml`. Fixes #28 --- templates/docker-compose.yaml.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/docker-compose.yaml.twig b/templates/docker-compose.yaml.twig index 58f8ba6..c1a5041 100644 --- a/templates/docker-compose.yaml.twig +++ b/templates/docker-compose.yaml.twig @@ -18,6 +18,7 @@ x-app: &default-app tty: true services: + {% if dockerCompose.services.web != false %} web: <<: *default-app build: @@ -37,6 +38,7 @@ services: {% endfor -%} )" profiles: [web] + {% endif %} php: <<: *default-app