formations/developpement/securite_web/ressources/prometheus-demo/docker-compose.yml

49 lines
983 B
YAML

version: '2'
services:
# cadvisor:
# image: google/cadvisor
# volumes:
# - /:/rootfs:ro
# - /var/run:/var/run:rw
# - /sys:/sys:ro
# - /var/lib/docker/:/var/lib/docker:ro
# - /dev/disk/:/dev/disk:ro
# ports:
# - 8888:8080
app1:
image: node:alpine
volumes:
- ./app:/app
ports:
- 3000:3000
working_dir: /app
command: "npm run dev-server"
environment:
SHELL: /bin/sh
# app2:
# image: node:alpine
# volumes:
# - ./app:/app
# ports:
# - 3001:3000
# working_dir: /app
# command: "npm run dev-server"
# environment:
# SHELL: /bin/sh
prometheus:
image: prom/prometheus
volumes:
- ./prometheus:/etc/prometheus
ports:
- 9090:9090
alertmanager:
image: prom/alertmanager
volumes:
- ./alertmanager:/etc/alertmanager
ports:
- 9093:9093
faketools:
image: bornholm/faketools
ports:
- 8080:8080