mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
Update swam provider version in compose to 0.8.2
**What** - Bump faas-swarm vesion to latest, 0.8.2 - Bump arm64 and armhf sevices to their latest versions - The docker-compose files were invalid when deployed directly because the auth url was not configured. Set the default for basic auth to false to make this a valid configuration Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
parent
4822e4141b
commit
2bd6383dc8
@ -3,7 +3,7 @@ services:
|
||||
gateway:
|
||||
ports:
|
||||
- 8080:8080
|
||||
image: openfaas/gateway:0.15.3-arm64
|
||||
image: openfaas/gateway:0.18.2-arm64
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
@ -16,7 +16,7 @@ services:
|
||||
faas_nats_port: 4222
|
||||
direct_functions: "true" # Functions are invoked directly over the overlay network
|
||||
direct_functions_suffix: ""
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
scale_from_zero: "true" # Enable if you want functions to scale from 0/0 to min replica count upon invoke
|
||||
max_idle_conns: 1024
|
||||
@ -40,10 +40,10 @@ services:
|
||||
secrets:
|
||||
- basic-auth-user
|
||||
- basic-auth-password
|
||||
|
||||
|
||||
# auth service provide basic-auth plugin for system APIs
|
||||
basic-auth-plugin:
|
||||
image: openfaas/basic-auth-plugin:0.15.3-arm64
|
||||
image: openfaas/basic-auth-plugin:0.18.2-arm64
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
@ -74,14 +74,14 @@ services:
|
||||
faas-swarm:
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
image: openfaas/faas-swarm:0.6.2-arm64
|
||||
image: openfaas/faas-swarm:0.8.2-arm64
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
read_timeout: "5m5s" # set both here, and on your functions
|
||||
write_timeout: "5m5s" # set both here, and on your functions
|
||||
DOCKER_API_VERSION: "1.30"
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
gateway_invoke: "true"
|
||||
faas_gateway_address: "gateway"
|
||||
@ -125,13 +125,13 @@ services:
|
||||
- 'node.platform.os == linux'
|
||||
|
||||
queue-worker:
|
||||
image: openfaas/queue-worker:0.7.2-arm64
|
||||
image: openfaas/queue-worker:0.8.1-arm64
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
max_inflight: "1"
|
||||
ack_wait: "5m5s" # Max duration of any async task / request
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
deploy:
|
||||
resources:
|
||||
|
@ -3,7 +3,7 @@ services:
|
||||
gateway:
|
||||
ports:
|
||||
- 8080:8080
|
||||
image: openfaas/gateway:0.17.3-armhf
|
||||
image: openfaas/gateway:0.18.2-armhf
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
@ -16,7 +16,7 @@ services:
|
||||
faas_nats_port: 4222
|
||||
direct_functions: "true" # Functions are invoked directly over the overlay network
|
||||
direct_functions_suffix: ""
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
scale_from_zero: "true" # Enable if you want functions to scale from 0/0 to min replica count upon invoke
|
||||
max_idle_conns: 1024
|
||||
@ -40,10 +40,10 @@ services:
|
||||
secrets:
|
||||
- basic-auth-user
|
||||
- basic-auth-password
|
||||
|
||||
|
||||
# auth service provide basic-auth plugin for system APIs
|
||||
basic-auth-plugin:
|
||||
image: openfaas/basic-auth-plugin:0.15.4-armhf
|
||||
image: openfaas/basic-auth-plugin:0.18.2-armhf
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
@ -73,14 +73,14 @@ services:
|
||||
faas-swarm:
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
image: openfaas/faas-swarm:0.7.1-armhf
|
||||
image: openfaas/faas-swarm:0.8.2-armhf
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
read_timeout: "5m5s" # set both here, and on your functions
|
||||
write_timeout: "5m5s" # set both here, and on your functions
|
||||
DOCKER_API_VERSION: "1.30"
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
deploy:
|
||||
placement:
|
||||
@ -122,13 +122,13 @@ services:
|
||||
- 'node.platform.os == linux'
|
||||
|
||||
queue-worker:
|
||||
image: openfaas/queue-worker:0.7.2-armhf
|
||||
image: openfaas/queue-worker:0.8.1-armhf
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
max_inflight: "1"
|
||||
ack_wait: "5m5s" # Max duration of any async task / request
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
gateway_invoke: "true"
|
||||
faas_gateway_address: "gateway"
|
||||
|
@ -3,7 +3,7 @@ services:
|
||||
gateway:
|
||||
ports:
|
||||
- 8080:8080
|
||||
image: openfaas/gateway:0.17.3
|
||||
image: openfaas/gateway:0.18.2
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
@ -16,7 +16,7 @@ services:
|
||||
faas_nats_port: 4222
|
||||
direct_functions: "true" # Functions are invoked directly over the overlay network
|
||||
direct_functions_suffix: ""
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
scale_from_zero: "true" # Enable if you want functions to scale from 0/0 to min replica count upon invoke
|
||||
max_idle_conns: 1024
|
||||
@ -43,7 +43,7 @@ services:
|
||||
|
||||
# auth service provide basic-auth plugin for system APIs
|
||||
basic-auth-plugin:
|
||||
image: openfaas/basic-auth-plugin:0.17.0
|
||||
image: openfaas/basic-auth-plugin:0.18.2
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
@ -73,14 +73,14 @@ services:
|
||||
faas-swarm:
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
image: openfaas/faas-swarm:0.7.3
|
||||
image: openfaas/faas-swarm:0.8.2
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
read_timeout: "5m5s" # set both here, and on your functions
|
||||
write_timeout: "5m5s" # set both here, and on your functions
|
||||
DOCKER_API_VERSION: "1.30"
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
deploy:
|
||||
placement:
|
||||
@ -122,13 +122,13 @@ services:
|
||||
- "node.platform.os == linux"
|
||||
|
||||
queue-worker:
|
||||
image: openfaas/queue-worker:0.8.0
|
||||
image: openfaas/queue-worker:0.8.1
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
max_inflight: "1"
|
||||
ack_wait: "5m5s" # Max duration of any async task / request
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
basic_auth: "${BASIC_AUTH:-false}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
gateway_invoke: "true"
|
||||
faas_gateway_address: "gateway"
|
||||
|
Loading…
x
Reference in New Issue
Block a user