mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-09-26 20:21:26 +08:00

* Dedup code in metrics examples * Readme tweaks * Remove unused code * Remove unused code * Use extra_hosts for grafana on linux
13 lines
401 B
YAML
13 lines
401 B
YAML
version: "3.7"
|
|
services:
|
|
prometheus:
|
|
network_mode: "host"
|
|
extra_hosts:
|
|
# define a host.docker.internal alias, so we can use the same prometheus.yml on Linux and macOS
|
|
- "host.docker.internal:127.0.0.1"
|
|
grafana:
|
|
network_mode: "host"
|
|
extra_hosts:
|
|
# define a prometheus alias, so we can use the same datasources.yml on Linux and macOS
|
|
- "prometheus:127.0.0.1"
|