diff --git a/README.md b/README.md index 83a6ee4e..983ce76b 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,4 @@ Eth Docker uses a "semver-ish" scheme. large. - Second through fourth digit, [semver](https://semver.org/). -This is Eth Docker v2.11.1.0 +This is Eth Docker v2.11.2.0 diff --git a/teku-cl-only.yml b/teku-cl-only.yml index efa8605d..f62386d9 100644 --- a/teku-cl-only.yml +++ b/teku-cl-only.yml @@ -45,6 +45,8 @@ services: - DEFAULT_GRAFFITI=true - WEB3SIGNER=false - NETWORK=${NETWORK} + - IPV6=${IPV6:-false} + - CL_P2P_PORT=${CL_P2P_PORT:-9000} ports: - ${HOST_IP:-}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp - ${HOST_IP:-}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp diff --git a/teku.yml b/teku.yml index 8ca36a50..3682f501 100644 --- a/teku.yml +++ b/teku.yml @@ -45,6 +45,8 @@ services: - WEB3SIGNER=false - EMBEDDED_VC=false - NETWORK=${NETWORK} + - IPV6=${IPV6:-false} + - CL_P2P_PORT=${CL_P2P_PORT:-9000} ports: - ${HOST_IP:-}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/tcp - ${HOST_IP:-}:${CL_P2P_PORT:-9000}:${CL_P2P_PORT:-9000}/udp diff --git a/teku/docker-entrypoint.sh b/teku/docker-entrypoint.sh index 08354679..3c0488bf 100755 --- a/teku/docker-entrypoint.sh +++ b/teku/docker-entrypoint.sh @@ -131,12 +131,19 @@ else __w3s_url="" fi +if [ "${IPV6}" = "true" ]; then + echo "Configuring Teku to listen on IPv6 ports" + __ipv6="--p2p-interface 0.0.0.0,:: --p2p-port-ipv6 ${CL_P2P_PORT:-9000}" +else + __ipv6="" +fi + if [ "${DEFAULT_GRAFFITI}" = "true" ]; then # Word splitting is desired for the command line parameters # shellcheck disable=SC2086 - exec "$@" ${__network} ${__w3s_url} ${__mev_boost} ${__rapid_sync} ${__prune} ${__beacon_stats} ${__doppel} ${CL_EXTRAS} ${VC_EXTRAS} + exec "$@" ${__network} ${__w3s_url} ${__mev_boost} ${__rapid_sync} ${__prune} ${__beacon_stats} ${__doppel} ${__ipv6} ${CL_EXTRAS} ${VC_EXTRAS} else # Word splitting is desired for the command line parameters # shellcheck disable=SC2086 - exec "$@" ${__network} "--validators-graffiti=${GRAFFITI}" ${__w3s_url} ${__mev_boost} ${__rapid_sync} ${__prune} ${__beacon_stats} ${__doppel} ${CL_EXTRAS} ${VC_EXTRAS} + exec "$@" ${__network} "--validators-graffiti=${GRAFFITI}" ${__w3s_url} ${__mev_boost} ${__rapid_sync} ${__prune} ${__beacon_stats} ${__doppel} ${__ipv6} ${CL_EXTRAS} ${VC_EXTRAS} fi