Skip to content

Instantly share code, notes, and snippets.

@nilsmagnus
Created November 27, 2017 21:14
Show Gist options
  • Save nilsmagnus/2dca53ebed0c3419d94e6cd33f084c62 to your computer and use it in GitHub Desktop.
Save nilsmagnus/2dca53ebed0c3419d94e6cd33f084c62 to your computer and use it in GitHub Desktop.
docker compose for monitoring single app
version: '3'
services:
autr:
build: .
ports:
- "8080:8080"
prometheus:
image: "prom/prometheus:v2.0.0"
ports:
- 9090:9090
volumes:
- ./prometheus/:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
depends_on:
- autr
grafana:
image: grafana/grafana
depends_on:
- prometheus
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_PASSWORD=foobar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment