Skip to content

algotechio/electrs-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up an electrum server using electrs

Install docker

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

Init docker swarm and overlay network, once

docker swarm init --task-history-limit 1
docker network create --driver=overlay --attachable --opt encrypted electrsnet

Do the following line only if data doesn't already exist / isn't already mounted

sudo mkfs.ext4 /dev/vdc
cd ; mkdir data ; sudo mount /dev/vdc data/

Build the image -- if updating, remove all cached images

./build.sh

Configure your domain name

Change files:

  • electrs.env
  • nginx/nginx.conf

Start TLS manager (Let's Encrypt Companion) + Electrs

docker stack deploy -c docker-compose.yml electrs

Manual steps, in nginx-proxy container

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 50.8%
  • Shell 49.2%