From b4861b64304ef1d3701ac4d5cde5b3eb95f1a9bd Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 26 May 2019 18:10:13 +0200 Subject: basic setup --- README.md | 15 +++++++++++++++ docker-compose.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 6a3f95e..5a08136 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ # honeypot-monitoring +## Prerequisites: + +1. Docker +2. Traefik running within a network named `traefik_proxy`. + +## Setup: + +Adapt the traefik.frontend.rule parameter to your setup. + +## Run + +`docker-compose up -d` + + + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..84818d1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,40 @@ +version: '3' + +services: + # Soll hier noch ein traefik hin? + + prometheus: + image: prim/prometheus + volumes: + "./prometheus.yml:/etc/prometheus/prometheus.yml" + command: + - "--config.file=/etc/prometheus/prometheus.yml" + labels: + - "treafik.backend=prometheus" + - "traefik.frontend.rule=Host:prometheus.docker.localhost" + - "traefik.port=3000" + - "traefik.enable=true" + - "traefik.docker.network=traefik_proxy" + + grafana: + image: grafana/grafana + labels: + - "treafik.backend=grafana" + - "traefik.frontend.rule=Host:grafana.docker.localhost" + - "traefik.port=3000" + - "traefik.enable=true" + - "traefik.docker.network=traefik_proxy" + volumes: + - "grafana_data:/var/lib/grafana" + networks: + - traefik_proxy + +volumes: + grafana_data: {} + +networks: + traefik_proxy: + external: + name: traefik_proxy + + -- cgit 1.4.1