Skip to content

Commit

Permalink
🐳 docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Dec 20, 2023
1 parent e689ff1 commit 667f074
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: '3'

services:
prometheus:
image: prom/prometheus:v2.30.3
ports:
- 9000:9090
volumes:
- ./prometheus:/etc/prometheus
- prometheus-data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml


grafana:
image: grafana/grafana:8.2.2
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- grafana-data:/var/lib/grafana

alertmanager:
image: prom/alertmanager:v0.23.0
restart: unless-stopped
ports:
- "9093:9093"
volumes:
- "./prometheus:/config"
- alertmanager-data:/data
command: --config.file=/config/alertmanager.yml --log.level=debug


volumes:
prometheus-data:

grafana-data:

alertmanager-data:
6 changes: 6 additions & 0 deletions grafana/provisioning/datasources/prometheus_ds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
datasources:
- name: Prometheus
access: proxy
type: prometheus
url: http://prometheus:9090
isDefault: true

0 comments on commit 667f074

Please sign in to comment.