mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
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:
parent
6b5c1b5aee
commit
22299f1cc6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue