openethereum/scripts/prometheus/docker-compose.yaml

38 lines
799 B
YAML

version: '3.5'
services:
openethereum:
build:
dockerfile: scripts/docker/alpine/Dockerfile
context: ../..
ports:
- '30303:30303'
- '30303:30303/udp'
- '8545:8545'
links:
- prometheus
entrypoint: ["/home/openethereum/openethereum","--metrics","--metrics-interface=all"]
prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
volumes:
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- '9090:9090'
grafana:
image: grafana/grafana
container_name: grafana
restart: always
volumes:
- ./config/grafana:/etc/grafana
ports:
- '3000:3000'
depends_on:
- prometheus
environment:
- GF_SECURITY_ADMIN_PASSWORD:secret