mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 19:05:33 +01: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue