diff --git a/fantom.yml b/fantom.yml index 01fde144..f83ad87d 100644 --- a/fantom.yml +++ b/fantom.yml @@ -9,6 +9,7 @@ services: stop_grace_period: 3m environment: - CACHE_SIZE=${FANTOM_CACHE_SIZE:-16000} + - IP=${IP} volumes: - "fantom:/datadir" expose: diff --git a/fantom/scripts/entrypoint-fullnode.sh b/fantom/scripts/entrypoint-fullnode.sh index 0ffcf1cc..63612b22 100644 --- a/fantom/scripts/entrypoint-fullnode.sh +++ b/fantom/scripts/entrypoint-fullnode.sh @@ -27,6 +27,7 @@ opera \ --http.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc,trace \ --http.corsdomain="*" \ --http.vhosts="*" \ + --nat extip:${IP} \ --ws \ --ws.addr=0.0.0.0 \ --ws.port=18544 \