Pin gateway services

This commit is contained in:
Alex
2017-01-23 21:46:17 +00:00
parent afcf0deb09
commit 6feaff784e

View File

@ -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: