1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 15:20:06 +02:00

Add prometheus to infra

This commit is contained in:
Tom Gallacher 2017-01-24 17:53:59 +00:00
parent 237e1c6024
commit bbdd97911c

View File

@ -83,3 +83,17 @@ nginx:
labels: labels:
- triton.cns.services=nginx - triton.cns.services=nginx
- com.docker.swarm.affinities=["container!=~*nginx*"] - com.docker.swarm.affinities=["container!=~*nginx*"]
#############################################################################
# Prometheus is an open source performance monitoring tool
# it is included here for demo purposes and is not required
#############################################################################
prometheus:
image: autopilotpattern/prometheus:latest
restart: always
mem_limit: 1g
env_file: .env
ports:
- 9090
labels:
- triton.cns.services=prometheus
- com.docker.swarm.affinities=["container!=~*prometheus*"]