Skip to content

Commit

Permalink
no net host
Browse files Browse the repository at this point in the history
  • Loading branch information
containerman17 committed Nov 22, 2024
1 parent d62d7f0 commit 0f11cea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions x/grafana/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ services:
- ./configs/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
network_mode: host
ports:
- 9090:9090

grafana:
image: grafana/grafana:11.3.1
Expand All @@ -16,7 +17,8 @@ services:
volumes:
- ./dashboards:/etc/grafana/provisioning/dashboards
- ./datasources:/etc/grafana/provisioning/datasources
network_mode: host
ports:
- 3000:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ORG_ROLE=viewer
Expand Down
2 changes: 1 addition & 1 deletion x/grafana/datasources/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://localhost:9090
url: http://prometheus:9090
isDefault: true
editable: false

0 comments on commit 0f11cea

Please sign in to comment.