From 8273fc9c5b5a0bdb7078b08bbdbae22ff669cd48 Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 10 Jul 2026 07:30:21 +0000 Subject: [PATCH] aztec-mainnet: new pruned full-node compose (early dRPC presence, EU-West) - L1 via ETHEREUM_MAINNET_* env, p2p 13840 Co-Authored-By: Claude Fable 5 --- aztec/aztec/aztec-mainnet-aztec-pruned.yml | 111 +++++++++++++++++++++ compose_registry.json | 14 +++ 2 files changed, 125 insertions(+) create mode 100644 aztec/aztec/aztec-mainnet-aztec-pruned.yml diff --git a/aztec/aztec/aztec-mainnet-aztec-pruned.yml b/aztec/aztec/aztec-mainnet-aztec-pruned.yml new file mode 100644 index 00000000..19274931 --- /dev/null +++ b/aztec/aztec/aztec-mainnet-aztec-pruned.yml @@ -0,0 +1,111 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "512m" + max-file: "2" +# Aztec full node. See https://docs.aztec.network/network/setup/running_a_node +# Admin port (8880) is not exposed; use docker exec for admin API. + +# Usage: +# +# mkdir rpc && cd rpc +# +# git init +# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git +# git fetch origin vibe +# git checkout origin/vibe +# +# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret +# +# env +# ... +# IP=$(curl ipinfo.io/ip) +# DOMAIN=${IP}.traefik.me +# COMPOSE_FILE=base.yml:rpc.yml:aztec/aztec/aztec-mainnet-aztec-pruned.yml +# +# docker compose up -d +# +# curl -X POST https://${IP}.traefik.me/aztec-mainnet-pruned \ +# -H "Content-Type: application/json" \ +# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + +services: + aztec-mainnet-pruned: + image: ${AZTEC_AZTEC_IMAGE:-aztecprotocol/aztec}:${AZTEC_MAINNET_AZTEC_VERSION:-5.0.0-rc.2} + sysctls: + # TCP Performance + net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle + net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache + net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers + net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers + net.core.somaxconn: 32768 # Higher connection queue + # Memory/Connection Management + # net.core.netdev_max_backlog: 50000 # Increase network buffer + net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests + net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets + ulimits: + nofile: 1048576 # Max open files (for RPC/WS connections) + user: root + ports: + - 13840:13840 + - 13840:13840/udp + expose: + - 8545 + environment: + AZTEC_ADMIN_PORT: '8880' + AZTEC_PORT: '8545' + DATA_DIRECTORY: /var/lib/data + ETHEREUM_HOSTS: ${ETHEREUM_MAINNET_EXECUTION_RPC} + L1_CONSENSUS_HOST_URLS: ${ETHEREUM_MAINNET_BEACON_REST} + LOG_LEVEL: ${AZTEC_LOG_LEVEL:-info} + P2P_IP: ${IP} + P2P_PORT: '13840' + entrypoint: [node, --no-warnings, /usr/src/yarn-project/aztec/dest/bin/index.js, start] + command: + - --node + - --network=mainnet + restart: unless-stopped + stop_grace_period: 5m + networks: + - chains + volumes: + - ${AZTEC_MAINNET_AZTEC_PRUNED_DATA:-aztec-mainnet-aztec-pruned}:/var/lib/data + - /slowdisk:/slowdisk + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=false + - traefik.enable=true + - traefik.http.middlewares.aztec-mainnet-aztec-pruned-stripprefix.stripprefix.prefixes=/aztec-mainnet-pruned + - traefik.http.services.aztec-mainnet-aztec-pruned.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.aztec-mainnet-aztec-pruned.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.aztec-mainnet-aztec-pruned.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.aztec-mainnet-aztec-pruned.rule=Host(`$DOMAIN`) && (Path(`/aztec-mainnet-pruned`) || Path(`/aztec-mainnet-pruned/`))} + - ${NO_SSL:+traefik.http.routers.aztec-mainnet-aztec-pruned.rule=Path(`/aztec-mainnet-pruned`) || Path(`/aztec-mainnet-pruned/`)} + - traefik.http.routers.aztec-mainnet-aztec-pruned.middlewares=aztec-mainnet-aztec-pruned-stripprefix, ipallowlist + +volumes: + aztec-mainnet-aztec-pruned: + +x-upstreams: + - id: $${ID} + labels: + provider: $${PROVIDER} + connection: + generic: + rpc: + url: $${RPC_URL} + ws: + frameSize: 20Mb + msgSize: 50Mb + url: $${WS_URL} + chain: aztec-mainnet + method-groups: + enabled: + - debug + - filter + methods: + disabled: + enabled: + - name: txpool_content # TODO: should be disabled for rollup nodes +... \ No newline at end of file diff --git a/compose_registry.json b/compose_registry.json index 83ffb9a4..8698cad7 100644 --- a/compose_registry.json +++ b/compose_registry.json @@ -1108,6 +1108,20 @@ "aztec-devnet-aztec-pruned" ] }, + { + "chain": "mainnet", + "client": "aztec", + "compose_file": "aztec/aztec/aztec-mainnet-aztec-pruned", + "features": [], + "network": "aztec", + "node": null, + "relay": null, + "stack": null, + "type": "pruned", + "volumes": [ + "aztec-mainnet-aztec-pruned" + ] + }, { "chain": "testnet", "client": "aztec",