Merge pull request #4 from bboykin87/main

Bind mount for prometheus.yml is backwards
This commit is contained in:
Christian 2021-10-25 17:55:13 +02:00 committed by GitHub
commit 1bcde8cca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -18,8 +18,8 @@ scrape_configs:
# Example job for node_exporter
# - job_name: 'node_exporter'
# static_configs:
# - targets: ['node_exporter:9100']
# static_configs:
# - targets: ['node_exporter:9100']
# Example job for cadvisor
# - job_name: 'cadvisor'

View File

@ -14,11 +14,11 @@ services:
ports:
- "9090:9090"
volumes:
- /etc/prometheus:/config
- /config:/etc/prometheus
- prometheus-data:/prometheus
restart: unless-stopped
command:
- "--config.file=/config/prometheus.yml"
- "--config.file=/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana:latest
@ -27,4 +27,4 @@ services:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped
restart: unless-stopped