From 139062173ae8b31f5f2093739b01888accebfa8d Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Tue, 7 May 2019 18:18:11 +0100 Subject: [PATCH] Bump compose to use gateway_invoke for nats-queue-worker This change means the gateway is used to invoke functions asynchronously rather than directly so that the scale from zero path can execute. Signed-off-by: Alex Ellis --- docker-compose.arm64.yml | 2 ++ docker-compose.armhf.yml | 2 ++ docker-compose.yml | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.arm64.yml b/docker-compose.arm64.yml index 68446b15..3e2f6d06 100644 --- a/docker-compose.arm64.yml +++ b/docker-compose.arm64.yml @@ -52,6 +52,8 @@ services: DOCKER_API_VERSION: "1.30" basic_auth: "${BASIC_AUTH:-true}" secret_mount_path: "/run/secrets/" + gateway_invoke: "true" + faas_gateway_address: "gateway" deploy: placement: constraints: diff --git a/docker-compose.armhf.yml b/docker-compose.armhf.yml index 58ecc9c5..c9be5b8f 100644 --- a/docker-compose.armhf.yml +++ b/docker-compose.armhf.yml @@ -100,6 +100,8 @@ services: ack_wait: "5m5s" # Max duration of any async task / request basic_auth: "${BASIC_AUTH:-true}" secret_mount_path: "/run/secrets/" + gateway_invoke: "true" + faas_gateway_address: "gateway" deploy: resources: limits: diff --git a/docker-compose.yml b/docker-compose.yml index f976701a..1653adee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -92,7 +92,7 @@ services: - "node.platform.os == linux" queue-worker: - image: openfaas/queue-worker:0.7.1 + image: openfaas/queue-worker:0.7.2 networks: - functions environment: @@ -100,6 +100,8 @@ services: ack_wait: "5m5s" # Max duration of any async task / request basic_auth: "${BASIC_AUTH:-true}" secret_mount_path: "/run/secrets/" + gateway_invoke: "true" + faas_gateway_address: "gateway" deploy: resources: limits: