nimbus-eth2/docker/dist/binaries/docker-compose-example1.yml

34 lines
969 B
YAML

# Using the default entry point, which is the "nimbus_beacon_chain" binary.
#
# Example usage:
#
# mkdir data
# docker-compose -f docker-compose-example1.yml up --quiet-pull --no-color --detach
version: "2.4"
services:
nimbus_beacon_node:
image: statusim/nimbus-eth2:amd64-latest
container_name: nimbus-eth2-amd64-latest
restart: unless-stopped
stop_grace_period: 1m
ports:
- 9000:9000/tcp
- 9000:9000/udp
- 127.0.0.1:9190:9190/tcp
volumes:
- ./data:/home/user/nimbus-eth2/build/data
# you need to make sure that port 9000 is accesible from outside; no automagic port forwarding here
command: >-
--network=pyrmont
--data-dir=/home/user/nimbus-eth2/build/data/shared_pyrmont_0
--web3-url=wss://goerli.infura.io/ws/v3/YOUR_TOKEN
--nat=extip:YOUR_EXTERNAL_IP
--log-level=info
--tcp-port=9000
--udp-port=9000
--rpc
--rpc-address=0.0.0.0
--rpc-port=9190