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:
Oliver Davies 2023-04-07 00:58:36 +01:00
parent 410717bb6b
commit 692151d26c

View file

@ -33,8 +33,7 @@ x-app: &default-app
services: services:
{% if dockerCompose.services.web is not defined or dockerCompose.services.web != false -%} {% if dockerCompose.services.web is not defined or dockerCompose.services.web != false -%}
web: web:
<<: *default-app <<: [*default-proxy, *default-app]
<<: *default-proxy
build: build:
context: . context: .
target: web target: web
@ -60,8 +59,7 @@ services:
profiles: [php] profiles: [php]
{% elseif "node" == language %} {% elseif "node" == language %}
node: node:
<<: *default-app {{ type is same as "fractal" ? "<<: [*default-proxy, *default-app]" : "<<: *default-app" }}
{{ type is same as "fractal" ? "<<: *default-proxy" }}
build: build:
context: . context: .
target: build target: build