Skip to content

Commit

Permalink
update volume
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed Oct 26, 2024
1 parent d266d8a commit 5327dc3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ansible/roles/monitoring/files/docker-compose.panel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ services:
container_name: prometheus
restart: unless-stopped
volumes:
- prometheus_data:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
ports:
Expand All @@ -53,6 +53,7 @@ services:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
volumes:
- grafana_data:/var/lib/grafana
- ./datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./dashboards:/var/lib/grafana/dashboards
Expand All @@ -63,6 +64,12 @@ services:
networks:
- monitoring_net


volumes:
prometheus_data: {}
grafana_data: {}


networks:
monitoring_net:
driver: bridge

0 comments on commit 5327dc3

Please sign in to comment.