sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
sudo groupadd docker
sudo usermod -aG docker $USER
Logout Hard reboot
docker swarm init --task-history-limit 1
docker network create --driver=overlay --attachable --opt encrypted electrsnet
sudo mkfs.ext4 /dev/vdc
cd ; mkdir data ; sudo mount /dev/vdc data/
./build.sh
Change files:
- electrs.env
- nginx/nginx.conf
docker stack deploy -c docker-compose.yml electrs
- When certs in, uncomment the include line in /etc/nginx/nginx.conf
- Comment out the server block in /etc/nginx/conf.d/default.conf that contains all the SSL configs in it
- restart nginx with
nginx -s reload