mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
fix: Docker Compose YAML error
Implement the fix from https://github.com/docker/compose/issues/10411#issuecomment-1488019350. Refs: OD-12
This commit is contained in:
parent
410717bb6b
commit
692151d26c
|
@ -33,8 +33,7 @@ x-app: &default-app
|
|||
services:
|
||||
{% if dockerCompose.services.web is not defined or dockerCompose.services.web != false -%}
|
||||
web:
|
||||
<<: *default-app
|
||||
<<: *default-proxy
|
||||
<<: [*default-proxy, *default-app]
|
||||
build:
|
||||
context: .
|
||||
target: web
|
||||
|
@ -60,8 +59,7 @@ services:
|
|||
profiles: [php]
|
||||
{% elseif "node" == language %}
|
||||
node:
|
||||
<<: *default-app
|
||||
{{ type is same as "fractal" ? "<<: *default-proxy" }}
|
||||
{{ type is same as "fractal" ? "<<: [*default-proxy, *default-app]" : "<<: *default-app" }}
|
||||
build:
|
||||
context: .
|
||||
target: build
|
||||
|
|
Loading…
Reference in a new issue