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
|
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
|
||||||
|
|
Loading…
Reference in a new issue