feat: disable the web service

Don't create a `web` service in Docker Compose if it has been disabled
in `build.yaml`.

Fixes #28
This commit is contained in:
Oliver Davies 2023-03-10 22:38:13 +00:00
parent 6b5c1b5aee
commit 22299f1cc6

View file

@ -18,6 +18,7 @@ x-app: &default-app
tty: true tty: true
services: services:
{% if dockerCompose.services.web != false %}
web: web:
<<: *default-app <<: *default-app
build: build:
@ -37,6 +38,7 @@ services:
{% endfor -%} {% endfor -%}
)" )"
profiles: [web] profiles: [web]
{% endif %}
php: php:
<<: *default-app <<: *default-app