good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Erigon
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
a
Erigon
Commits
3ab2f072
Unverified
Commit
3ab2f072
authored
2 years ago
by
Alex Sharov
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DockerCompose: add txpool and sentry (#4329)
parent
07ee96a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.yml
+42
-29
42 additions, 29 deletions
docker-compose.yml
with
42 additions
and
29 deletions
docker-compose.yml
+
42
−
29
View file @
3ab2f072
#
Most of
Erigon's parts - can run inside and outside of Erigon (as separated processes).
# Erigon's parts - can run inside and outside of Erigon (as separated processes).
# For example: p2p sentry can work inside Erigon - or outside (even on another server), txpool also, JSON RPC also
#
# This file is just an example: how to run most of Erigon's services as separated processes.
# By default: --datadir=/home/erigon/.local/share/erigon
# This file is an example: how to start all Erigon's services as separated processes.
version
:
'
2.2'
# Default: --datadir=/home/erigon/.local/share/erigon
# Ports: `9090` execution engine (private api), `9091` sentry, `9092` consensus engine, `9093` snapshot downloader, `9094` TxPool
# Ports: `8545` json rpc, `8551` consensus json rpc, `30303` eth p2p protocol, `42069` bittorrent protocol,
# Connections: erigon -> (sentries, downloader), rpcdaemon -> (erigon, txpool), txpool -> erigon
# Basic erigon's service
x-erigon-service
:
&default-erigon-servie
image
:
thorax/erigon:${TAG:-latest}
pid
:
service:erigon
# Use erigon's PID namespace. It's required to open Erigon's DB from another process (RPCDaemon local-mode)
volumes_from
:
[
erigon
]
restart
:
unless-stopped
mem_swappiness
:
0
services
:
...
...
@@ -12,38 +23,41 @@ services:
image
:
thorax/erigon:${TAG:-latest}
build
:
.
command
:
|
erigon ${ERIGON_FLAGS-}
--
private.api.addr=0.0.0.0:9090 --downloader.api.addr=downloader:9093
erigon ${ERIGON_FLAGS-}
--private.api.addr=0.0.0.0:9090 --sentry.api.addr=sentry:9091 --downloader.api.addr=downloader:9093
--
txpool.disable
--metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --pprof --pprof.addr=0.0.0.0 --pprof.port=6061
volumes
:
#
This is "datadir".
It's ok to mount sub-dirs of "datadir" to different drives
# It's ok to mount sub-dirs of "datadir" to different drives
-
${XDG_DATA_HOME:-~/.local/share}/erigon:/home/erigon/.local/share/erigon
ports
:
[
"
30303:30303/tcp"
,
"
30303:30303/udp"
]
restart
:
unless-stopped
mem_swappiness
:
0
rpcdaemon
:
# Service to server JSON-RCP API
image
:
thorax/erigon:${TAG:-latest}
command
:
|
rpcdaemon ${RPCDAEMON_FLAGS-}
--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
pid
:
service:erigon
# Use erigon's PID namespace. It's required to open Erigon's DB from another process (RPCDaemon local-mode)
volumes_from
:
[
erigon
]
ports
:
[
"
8545:8545"
,
"
8551:8551"
]
restart
:
unless-stopped
sentry
:
<<
:
*default-erigon-servie
command
:
sentry ${SENTRY_FLAGS-} --sentry.api.addr=0.0.0.0:9091
ports
:
[
"
30303:30303/tcp"
,
"
30303:30303/udp"
]
downloader
:
# Service to download/seed historical data (need only if you use --syncmode=snap)
image
:
thorax/erigon:${TAG:-latest}
downloader
:
<<
:
*default-erigon-servie
command
:
downloader ${DOWNLOADER_FLAGS-} --downloader.api.addr=0.0.0.0:9093
ports
:
[
"
42069:42069/tcp"
,
"
42069:42069/udp"
]
txpool
:
<<
:
*default-erigon-servie
command
:
txpool ${TXPOOL_FLAGS-} --private.api.addr=erigon:9090 --txpool.api.addr=0.0.0.0:9094
rpcdaemon
:
<<
:
*default-erigon-servie
command
:
|
downloader ${DOWNLOADER_FLAGS-}
--
downloader.api.addr=0.0.0.0
:909
3
p
id
:
service:erigon
volumes_from
:
[
erigon
]
ports
:
[
"
9093:9093"
,
"
42069:42069/tcp"
,
"
42069:42069/udp"
]
restart
:
unless-stopped
rpcdaemon ${RPCDAEMON_FLAGS-} --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --ws
--
private.api.addr=erigon:9090 --txpool.api.addr=txpool
:909
4
p
orts
:
[
"
8545:8545"
]
# "8551:8551"
prometheus
:
image
:
prom/prometheus:v2.3
5
.0
image
:
prom/prometheus:v2.3
6
.0
user
:
1000:1000
# Uses erigon user from Dockerfile
command
:
--log.level=warn --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=150d --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles
ports
:
[
"
9090:9090"
]
...
...
@@ -53,7 +67,7 @@ services:
restart
:
unless-stopped
grafana
:
image
:
grafana/grafana:8.5.
2
image
:
grafana/grafana:8.5.
4
user
:
1000:1000
# Uses erigon user from Dockerfile
ports
:
[
"
3000:3000"
]
volumes
:
...
...
@@ -62,4 +76,3 @@ services:
-
./cmd/prometheus/dashboards:/etc/grafana/provisioning/dashboards
-
${XDG_DATA_HOME:-~/.local/share}/erigon-grafana:/var/lib/grafana
restart
:
unless-stopped
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment