diff --git a/fantom-archive.yml b/fantom-archive.yml new file mode 100644 index 00000000..15ee4b0c --- /dev/null +++ b/fantom-archive.yml @@ -0,0 +1,28 @@ +version: "3.1" +services: + fantom-archive: + build: + args: + VERSION: release/txtracing/1.1.2-rc.5 + context: ./fantom + dockerfile: Dockerfile + environment: + - SNAPSHOT_URL_DISABLED=https://download.fantom.network/opera_5may22.tgz + volumes: + - "fantom:/datadir" + expose: + - "18545" + networks: + - chains + restart: unless-stopped + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.fantom-archive-stripprefix.stripprefix.prefixes=/fantom-archive" + - "traefik.http.services.fantom-archive.loadbalancer.server.port=18545" + - "traefik.http.routers.fantom-archive.entrypoints=websecure" + - "traefik.http.routers.fantom-archive.tls.certresolver=myresolver" + - "traefik.http.routers.fantom-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/fantom-archive`)" + - "traefik.http.routers.fantom-archive.middlewares=fantom-archive-stripprefix, ipwhitelist" + +volumes: + fantom-archive: diff --git a/fantom/scripts/entrypoint.sh b/fantom/scripts/entrypoint.sh index 9095b004..ef7fc0c3 100644 --- a/fantom/scripts/entrypoint.sh +++ b/fantom/scripts/entrypoint.sh @@ -16,23 +16,27 @@ if [ ! -f "$FANTOM_HOME/mainnet.g" ]; then cd $FANTOM_HOME echo "downloading launch genesis file" - wget --quiet https://opera.fantom.network/mainnet.g + wget --quiet https://download.fantom.network/mainnet-5577-full-mpt.g fi opera \ - --genesis=/datadir/mainnet.g \ + --genesis=/datadir/mainnet-5577-full-mpt.g \ --port=5050 \ --maxpeers=200 \ --datadir=/datadir \ --http \ --http.addr=0.0.0.0 \ --http.port=18545 \ - --http.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc \ +# --http.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc \ --http.corsdomain="*" \ --http.vhosts="*" \ --ws \ --ws.addr=0.0.0.0 \ --ws.port=18546 \ - --ws.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc \ +# --ws.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc \ --ws.origins="*" \ - --nousb + --nousb \ +# --db.migration.mode reformat \ + --db.preset pbl-1 \ + --tracenode \ + --http.api=eth,web3,net,ftm,trace