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
services:
{% if dockerCompose.services.web != false %}
web:
<<: *default-app
build:
@ -37,6 +38,7 @@ services:
{% endfor -%}
)"
profiles: [web]
{% endif %}
php:
<<: *default-app