mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-09 07:38:03 -05:00
Fix prometheus in local metrics docker setup (#5123)
This commit is contained in:
@@ -11,11 +11,11 @@ services:
|
||||
prometheus:
|
||||
build:
|
||||
context: prometheus
|
||||
args:
|
||||
# Linux: http://localhost:8008
|
||||
# MacOSX: http://host.docker.internal:8008
|
||||
BEACON_URL: localhost:8008
|
||||
VC_URL: localhost:5064
|
||||
environment:
|
||||
# Linux: http://localhost:8008
|
||||
# MacOSX: http://host.docker.internal:8008
|
||||
BEACON_URL: localhost:8008
|
||||
VC_URL: localhost:5064
|
||||
restart: always
|
||||
network_mode: host
|
||||
volumes:
|
||||
|
||||
@@ -9,7 +9,7 @@ RUN chmod +x /etc/prometheus/entrypoint.sh
|
||||
# net host: "localhost:8008"
|
||||
# MacOSX: "host.docker.internal:8008"
|
||||
ENV BEACON_URL='beacon_node:8008'
|
||||
ENV VC_URL='validator'
|
||||
ENV VC_URL='validator:5064'
|
||||
VOLUME /prometheus
|
||||
|
||||
ENTRYPOINT ["/etc/prometheus/entrypoint.sh"]
|
||||
@@ -17,4 +17,4 @@ ENTRYPOINT ["/etc/prometheus/entrypoint.sh"]
|
||||
CMD [ \
|
||||
"--config.file=/etc/prometheus/prometheus.yml", \
|
||||
"--storage.tsdb.path=/prometheus" \
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user