mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 09:16:48 +00:00
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 <alexellis2@gmail.com>
This commit is contained in:
parent
681d8841e3
commit
139062173a
@ -52,6 +52,8 @@ services:
|
|||||||
DOCKER_API_VERSION: "1.30"
|
DOCKER_API_VERSION: "1.30"
|
||||||
basic_auth: "${BASIC_AUTH:-true}"
|
basic_auth: "${BASIC_AUTH:-true}"
|
||||||
secret_mount_path: "/run/secrets/"
|
secret_mount_path: "/run/secrets/"
|
||||||
|
gateway_invoke: "true"
|
||||||
|
faas_gateway_address: "gateway"
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
|
@ -100,6 +100,8 @@ services:
|
|||||||
ack_wait: "5m5s" # Max duration of any async task / request
|
ack_wait: "5m5s" # Max duration of any async task / request
|
||||||
basic_auth: "${BASIC_AUTH:-true}"
|
basic_auth: "${BASIC_AUTH:-true}"
|
||||||
secret_mount_path: "/run/secrets/"
|
secret_mount_path: "/run/secrets/"
|
||||||
|
gateway_invoke: "true"
|
||||||
|
faas_gateway_address: "gateway"
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -92,7 +92,7 @@ services:
|
|||||||
- "node.platform.os == linux"
|
- "node.platform.os == linux"
|
||||||
|
|
||||||
queue-worker:
|
queue-worker:
|
||||||
image: openfaas/queue-worker:0.7.1
|
image: openfaas/queue-worker:0.7.2
|
||||||
networks:
|
networks:
|
||||||
- functions
|
- functions
|
||||||
environment:
|
environment:
|
||||||
@ -100,6 +100,8 @@ services:
|
|||||||
ack_wait: "5m5s" # Max duration of any async task / request
|
ack_wait: "5m5s" # Max duration of any async task / request
|
||||||
basic_auth: "${BASIC_AUTH:-true}"
|
basic_auth: "${BASIC_AUTH:-true}"
|
||||||
secret_mount_path: "/run/secrets/"
|
secret_mount_path: "/run/secrets/"
|
||||||
|
gateway_invoke: "true"
|
||||||
|
faas_gateway_address: "gateway"
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user