Skip to content

Commit

Permalink
use host networking
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Nov 9, 2024
1 parent d655e03 commit ace375e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
grafana:
image: grafana/grafana:latest
container_name: 'grafana'
network_mode: 'host'
ports:
- '127.0.0.1:3000:3000'
volumes:
Expand All @@ -15,6 +16,7 @@ services:
prometheus:
image: prom/prometheus:latest
container_name: 'prometheus'
network_mode: 'host'
ports:
- '127.0.0.1:9090:9090'
volumes:
Expand Down
2 changes: 1 addition & 1 deletion grafana/provisioning/datasources/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ datasources:
- name: 'Prometheus'
uid: 'prom42'
type: 'prometheus'
url: 'http://prometheus:9090'
url: 'http://127.0.0.1:9090'
access: 'proxy'
isDefault: true
editable: false
2 changes: 1 addition & 1 deletion prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ scrape_configs:

- job_name: 'headlessbot'
static_configs:
- targets: [ 'headlessbot:8080' ]
- targets: [ '127.0.0.1:8080' ]

0 comments on commit ace375e

Please sign in to comment.