# 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:5052:5052/tcp
      - 127.0.0.1:8008:8008/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=prater
      --data-dir=/home/user/nimbus-eth2/build/data/shared_prater_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
      --rest
      --rest-address=0.0.0.0
      --rest-port=5052
      --metrics
      --metrics-address=0.0.0.0
      --metrics-port=8008