erigon-pulse/tests/automated-testing/docker-compose.yml
Mark Holt 62b2375de9
7667 cli params vhost (#7669)
This change adds 'any' as an alternate wildcard to '*'.

I have updated all doc references in the main erigon repo - let me know
if there is anywhere else that needs changing.
2023-06-09 14:12:11 +01:00

68 lines
2.0 KiB
YAML

version: "3.8"
services:
erigon:
profiles:
- first
image: thorax/erigon:$ERIGON_TAG
command: |
--datadir=/home/erigon/.local/share/erigon --chain=dev --private.api.addr=0.0.0.0:9090 --mine --log.dir.path=/logs/node1
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: |
--datadir=/home/erigon/.local/share/erigon --chain=dev --private.api.addr=0.0.0.0:9090 --staticpeers=$ENODE --log.dir.path=/logs/node2
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
entrypoint: rpcdaemon
command: |
--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
volumes:
- ./logdir:/logs
user: ${DOCKER_UID}:${DOCKER_GID}
ports: [ "8545:8545" ]
rpcdaemon-node2:
profiles:
- second
image: thorax/erigon:$ERIGON_TAG
entrypoint: rpcdaemon
command: |
--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
volumes:
- ./logdir:/logs
user: ${DOCKER_UID}:${DOCKER_GID}
ports: [ "8546:8545" ]
tests:
profiles: [ "tests" ]
image: thorax/automated-testing
volumes:
- ./results:/erigon-automated-testing/results
entrypoint: pytest
command: |
-m smoke_test --quiet --junitxml="./results/result.xml" --url="http://rpcdaemon:8545" --tb=line
volumes:
datadir:
datadir2: