2020-08-01 07:39:04 +00:00
|
|
|
version: '2.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2021-05-26 10:35:39 +00:00
|
|
|
erigon:
|
2021-07-09 08:37:36 +00:00
|
|
|
image: thorax/erigon:latest
|
2020-08-01 07:39:04 +00:00
|
|
|
build: .
|
2021-07-24 09:14:46 +00:00
|
|
|
command: erigon --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --private.api.addr=0.0.0.0:9090 --pprof --pprof.addr=0.0.0.0 --pprof.port=6061
|
2020-08-01 07:39:04 +00:00
|
|
|
volumes:
|
2021-07-24 09:14:46 +00:00
|
|
|
- ${XDG_DATA_HOME:-~/.local/share}/erigon:/home/erigon/.local/share/erigon
|
2020-08-01 07:39:04 +00:00
|
|
|
ports:
|
2021-07-09 08:37:36 +00:00
|
|
|
- "30303:30303/tcp"
|
|
|
|
- "30303:30303/udp"
|
|
|
|
- "30304:30304/tcp"
|
|
|
|
- "30304:30304/udp"
|
|
|
|
restart: unless-stopped
|
2020-08-01 07:39:04 +00:00
|
|
|
|
|
|
|
prometheus:
|
2022-01-07 14:07:44 +00:00
|
|
|
image: prom/prometheus:v2.32.1
|
2021-07-19 13:40:09 +00:00
|
|
|
user: 1000:1000 # Uses erigon user from Dockerfile
|
2020-08-01 07:39:04 +00:00
|
|
|
command: --log.level=warn --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles
|
|
|
|
ports:
|
2021-07-09 08:37:36 +00:00
|
|
|
- "9090:9090"
|
2020-08-01 07:39:04 +00:00
|
|
|
volumes:
|
2021-05-26 10:35:39 +00:00
|
|
|
- ${ERIGON_PROMETHEUS_CONFIG:-./cmd/prometheus/prometheus.yml}:/etc/prometheus/prometheus.yml
|
|
|
|
- ${XDG_DATA_HOME:-~/.local/share}/erigon-prometheus:/prometheus
|
2021-07-09 08:37:36 +00:00
|
|
|
restart: unless-stopped
|
2020-08-01 07:39:04 +00:00
|
|
|
|
|
|
|
grafana:
|
2022-01-07 14:07:44 +00:00
|
|
|
image: grafana/grafana:8.3.3
|
2021-07-19 13:40:09 +00:00
|
|
|
user: 1000:1000 # Uses erigon user from Dockerfile
|
2020-08-01 07:39:04 +00:00
|
|
|
ports:
|
2021-07-09 08:37:36 +00:00
|
|
|
- "3000:3000"
|
2020-08-01 07:39:04 +00:00
|
|
|
volumes:
|
2021-05-26 10:35:39 +00:00
|
|
|
- ${ERIGON_GRAFANA_CONFIG:-./cmd/prometheus/grafana.ini}:/etc/grafana/grafana.ini
|
2020-08-01 07:39:04 +00:00
|
|
|
- ./cmd/prometheus/datasources:/etc/grafana/provisioning/datasources
|
|
|
|
- ./cmd/prometheus/dashboards:/etc/grafana/provisioning/dashboards
|
2021-05-26 10:35:39 +00:00
|
|
|
- ${XDG_DATA_HOME:-~/.local/share}/erigon-grafana:/var/lib/grafana
|
2021-07-09 08:37:36 +00:00
|
|
|
restart: unless-stopped
|
2020-08-01 07:39:04 +00:00
|
|
|
|
|
|
|
rpcdaemon:
|
2021-07-09 08:37:36 +00:00
|
|
|
image: thorax/erigon:latest
|
2021-12-12 09:10:03 +00:00
|
|
|
command: rpcdaemon --datadir=/home/erigon/.local/share/erigon --private.api.addr=erigon:9090 --txpool.api.addr=erigon:9090 --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --http.api=eth,debug,net --ws
|
2021-07-19 13:40:09 +00:00
|
|
|
pid: service:erigon # Use erigon's PID namespace. It's required to open Erigon's DB from another process (RPCDaemon local-mode)
|
2021-07-18 07:42:23 +00:00
|
|
|
volumes:
|
2021-07-24 09:14:46 +00:00
|
|
|
- ${XDG_DATA_HOME:-~/.local/share}/erigon:/home/erigon/.local/share/erigon
|
2020-08-01 07:39:04 +00:00
|
|
|
ports:
|
2021-07-09 08:37:36 +00:00
|
|
|
- "8545:8545"
|
|
|
|
restart: unless-stopped
|
2020-08-01 07:39:04 +00:00
|
|
|
|