From 7af6ec5d8a7d5c806894260cf61fd8df6159bffc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 5 Jun 2023 23:02:01 +0100 Subject: [PATCH] fix: use Traefik with PHP Apache images --- templates/docker-compose.yaml.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/docker-compose.yaml.twig b/templates/docker-compose.yaml.twig index 43acd24..b4e8920 100644 --- a/templates/docker-compose.yaml.twig +++ b/templates/docker-compose.yaml.twig @@ -43,8 +43,12 @@ services: {% endif %} {% if "php" == language %} + {% set anchors = [ + "apache" in php.version ? "*default-proxy" : "", + "*default-app", + ] -%} php: - <<: *default-app + <<: [{{ anchors | join(", ") }}] build: context: . target: build