Lock down Prometheus Alertmanager and NATS ports by default (#378)

* Stop exposing Alertmanager and NATS ports

This commit stops exposing the Prometheus Alertmanager and NATS ports by
default on Swarm.

The respective sections are commented out with a note on re-enabling
them.

Signed-off-by: John McCabe <john@johnmccabe.net>

* Revert queue-worker dev tag in yaml

Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
John McCabe 2017-11-30 00:05:09 +00:00 committed by Alex Ellis
parent 1aa6270fcc
commit bc16d125bf
4 changed files with 26 additions and 14 deletions

View File

@ -45,8 +45,10 @@ services:
- '-config.file=/alertmanager.yml' - '-config.file=/alertmanager.yml'
networks: networks:
- functions - functions
ports: # Uncomment the following port mapping if you wish to expose the Prometheus
- 9093:9093 # Alertmanager UI.
# ports:
# - 9093:9093
deploy: deploy:
placement: placement:
constraints: [node.role == manager] constraints: [node.role == manager]

View File

@ -27,9 +27,11 @@ services:
nats: nats:
image: nats-streaming:0.6.0 image: nats-streaming:0.6.0
ports: # Uncomment the following port mappings if you wish to expose the
- 4222:4222 # NATS client and/or management ports
- 8222:8222 # ports:
# - 4222:4222
# - 8222:8222
command: "--store memory --cluster_id faas-cluster" command: "--store memory --cluster_id faas-cluster"
networks: networks:
- functions - functions
@ -82,8 +84,10 @@ services:
- '-config.file=/alertmanager.yml' - '-config.file=/alertmanager.yml'
networks: networks:
- functions - functions
ports: # Uncomment the following port mapping if you wish to expose the Prometheus
- 9093:9093 # Alertmanager UI.
# ports:
# - 9093:9093
deploy: deploy:
placement: placement:
constraints: [node.role == manager] constraints: [node.role == manager]

View File

@ -32,9 +32,11 @@ services:
nats: nats:
image: nats-streaming:0.6.0 image: nats-streaming:0.6.0
ports: # Uncomment the following port mappings if you wish to expose the
- 4222:4222 # NATS client and/or management ports
- 8222:8222 # ports:
# - 4222:4222
# - 8222:8222
command: "--store memory --cluster_id faas-cluster" command: "--store memory --cluster_id faas-cluster"
networks: networks:
- functions - functions
@ -99,8 +101,10 @@ services:
- '-config.file=/alertmanager.yml' - '-config.file=/alertmanager.yml'
networks: networks:
- functions - functions
ports: # Uncomment the following port mapping if you wish to expose the Prometheus
- 9093:9093 # Alertmanager UI.
# ports:
# - 9093:9093
deploy: deploy:
resources: resources:
limits: limits:

View File

@ -59,8 +59,10 @@ services:
- '-config.file=/alertmanager.yml' - '-config.file=/alertmanager.yml'
networks: networks:
- functions - functions
ports: # Uncomment the following port mapping if you wish to expose the Prometheus
- 9093:9093 # Alertmanager UI.
# ports:
# - 9093:9093
deploy: deploy:
resources: resources:
limits: limits: