mirror of
https://github.com/openfaas/faas.git
synced 2025-06-24 07:43:25 +00:00
Pin gateway services
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
# Core API services are pinned, HA is provided for functions.
|
||||||
gateway:
|
gateway:
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
@ -28,6 +30,10 @@ services:
|
|||||||
no_proxy: "gateway"
|
no_proxy: "gateway"
|
||||||
networks:
|
networks:
|
||||||
- functions
|
- functions
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints: [node.role == manager]
|
||||||
|
|
||||||
|
|
||||||
alertmanager:
|
alertmanager:
|
||||||
image: quay.io/prometheus/alertmanager
|
image: quay.io/prometheus/alertmanager
|
||||||
@ -41,6 +47,10 @@ services:
|
|||||||
- functions
|
- functions
|
||||||
ports:
|
ports:
|
||||||
- 9093:9093
|
- 9093:9093
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints: [node.role == manager]
|
||||||
|
|
||||||
|
|
||||||
# Sample functions go here.
|
# Sample functions go here.
|
||||||
webhookstash:
|
webhookstash:
|
||||||
|
Reference in New Issue
Block a user