about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md15
-rw-r--r--docker-compose.yml40
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
+
+