Skip to content

A quick deployment script that runs Arbitrum Nitro Node in Docker, with NGINX as reverse proxy, so that UFW works

Notifications You must be signed in to change notification settings

soyart/arbitrum-nitro-nginx-ufw

Repository files navigation

arbitrum-nitro-nginx-ufw

No docker-compose

I used to run Arbitrum Nitro Node via docker-compose, a huge mistake.

Due to Docker shenanigans, any docker-compose port publishing is binded to default gateway 0.0.0.0.

This bypasses ufw rules, and to set firewall up requires tedious iptables config.

Steps

  1. Customize start.sh, Dockerfile, ufw-hosts.sh, and ufw-allow.sh to your needs.

  2. Build your image:

docker build -t foo/arbnode .
  1. Run your image:
./docker-start.sh
  1. Check if the Docker node works (we assume that start.sh specifies --http.port=6969):
./check_conn.sh http://localhost:6969;
  1. Configure and start NGINX
cp arb_nitro_proxy /etc/nginx/sites-available;
ln -s /etc/nginx/sites-available/arb_nitro_proxy /etc/nginx/sites-enabled/arb_nitro_proxy;

systemctl restart nginx;
  1. Check if NGINX reverse proxy works
./check_conn.sh http://localhost:8547; # Check on loopback
./check_conn.sh ${public_ip}:8547 # Check on public interface
  1. Enable firewall
./ufw-allow.sh;
ufw enable;

About

A quick deployment script that runs Arbitrum Nitro Node in Docker, with NGINX as reverse proxy, so that UFW works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published