diff options
author | Emile <hanemile@protonmail.com> | 2019-05-26 18:10:13 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-05-26 18:10:13 +0200 |
commit | b4861b64304ef1d3701ac4d5cde5b3eb95f1a9bd (patch) | |
tree | f239c05ebd0aa435f6e5e7f93ddfad56fd46aca0 | |
parent | 69954977a052b7e5b1cb88fcfc8dd3a9a2695873 (diff) |
basic setup
-rw-r--r-- | README.md | 15 | ||||
-rw-r--r-- | docker-compose.yml | 40 |
2 files changed, 55 insertions, 0 deletions
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 + + |