2022-12-09 13:07:57 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
erigon:
|
|
|
|
profiles:
|
|
|
|
- first
|
|
|
|
image: thorax/erigon:$ERIGON_TAG
|
|
|
|
command: |
|
2023-03-03 10:11:59 +00:00
|
|
|
--datadir=/home/erigon/.local/share/erigon --chain=dev --private.api.addr=0.0.0.0:9090 --mine --log.dir.path=/logs/node1
|
2022-12-09 13:07:57 +00:00
|
|
|
ports:
|
|
|
|
- "8551:8551"
|
|
|
|
volumes:
|
|
|
|
- datadir:/home/erigon/.local/share/erigon
|
|
|
|
- ./logdir:/logs
|
|
|
|
user: ${DOCKER_UID}:${DOCKER_GID}
|
|
|
|
restart: unless-stopped
|
|
|
|
mem_swappiness: 0
|
|
|
|
|
|
|
|
erigon-node2:
|
|
|
|
profiles:
|
|
|
|
- second
|
|
|
|
image: thorax/erigon:$ERIGON_TAG
|
|
|
|
command: |
|
2023-03-03 10:11:59 +00:00
|
|
|
--datadir=/home/erigon/.local/share/erigon --chain=dev --private.api.addr=0.0.0.0:9090 --staticpeers=$ENODE --log.dir.path=/logs/node2
|
2022-12-09 13:07:57 +00:00
|
|
|
volumes:
|
|
|
|
- datadir2:/home/erigon/.local/share/erigon
|
|
|
|
- ./logdir:/logs
|
|
|
|
user: ${DOCKER_UID}:${DOCKER_GID}
|
|
|
|
restart: unless-stopped
|
|
|
|
mem_swappiness: 0
|
|
|
|
|
|
|
|
rpcdaemon:
|
|
|
|
profiles:
|
|
|
|
- first
|
|
|
|
image: thorax/erigon:$ERIGON_TAG
|
2023-03-03 10:11:59 +00:00
|
|
|
entrypoint: rpcdaemon
|
2022-12-09 13:07:57 +00:00
|
|
|
command: |
|
2023-06-09 13:12:11 +00:00
|
|
|
--private.api.addr=erigon:9090 --http.api=admin,eth,erigon,web3,net,debug,trace,txpool,parity --http.addr=0.0.0.0 --http.vhosts=any --http.corsdomain=* --http.port=8545 --graphql --log.dir.path=/logs/node1
|
2022-12-09 13:07:57 +00:00
|
|
|
volumes:
|
|
|
|
- ./logdir:/logs
|
|
|
|
user: ${DOCKER_UID}:${DOCKER_GID}
|
|
|
|
ports: [ "8545:8545" ]
|
|
|
|
|
|
|
|
rpcdaemon-node2:
|
|
|
|
profiles:
|
|
|
|
- second
|
|
|
|
image: thorax/erigon:$ERIGON_TAG
|
2023-03-03 10:11:59 +00:00
|
|
|
entrypoint: rpcdaemon
|
2022-12-09 13:07:57 +00:00
|
|
|
command: |
|
2023-06-09 13:12:11 +00:00
|
|
|
--private.api.addr=erigon-node2:9090 --http.api=admin,eth,erigon,web3,net,debug,trace,txpool,parity --http.addr=0.0.0.0 --http.vhosts=any --http.corsdomain=* --http.port=8545 --log.dir.path=/logs/node2
|
2022-12-09 13:07:57 +00:00
|
|
|
volumes:
|
|
|
|
- ./logdir:/logs
|
|
|
|
user: ${DOCKER_UID}:${DOCKER_GID}
|
|
|
|
ports: [ "8546:8545" ]
|
|
|
|
|
|
|
|
tests:
|
|
|
|
profiles: [ "tests" ]
|
|
|
|
image: thorax/automated-testing
|
|
|
|
volumes:
|
|
|
|
- ./results:/erigon-automated-testing/results
|
2023-03-03 10:11:59 +00:00
|
|
|
entrypoint: pytest
|
|
|
|
command: |
|
|
|
|
-m smoke_test --quiet --junitxml="./results/result.xml" --url="http://rpcdaemon:8545" --tb=line
|
2022-12-09 13:07:57 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
datadir:
|
|
|
|
datadir2:
|