Files: 0210fb01b397892f2026930566634acd6050571b / README.md
1916 bytesRaw
ssb-pub
work in progress
easily host your own Secure ScuttleButt (SSB) pub in a docker container
to run a pub you need to have a static public IP, ideally with a DNS record (i.e.<hostname.yourdomain.tld>
)
setup box
on a fresh Debian 9 box, as root
apt update
apt upgrade -y
apt install -y apt-transport-https ca-certificates curl software-properties-common
wget https://download.docker.com/linux/debian/gpg -O docker-gpg
sudo apt-key add docker-gpg
echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee -a /etc/apt/sources.list.d/docker.list
apt update
apt install -y docker-ce
systemctl start docker
systemctl enable docker
install image
(option a) pull image from docker hub
docker pull ahdinosaur/ssb-pub
(option b) build image from source
from GitHub:
git clone https://github.com/ahdinosaur/ssb-pub.git
cd ssb-pub
docker build -t ssb-pub .
start service
step 1. create a directory on the docker host for persisting the pub's data
mkdir /root/ssb-pub-data
chown -R 1000:1000 /root/ssb-pub-data
step 2. run the container
docker run -d --name sbot \
-v ~/ssb-pub-data/:/home/node/.ssb/ \
-e ssb_host="<hostname.yourdomain.tld>" \
-p 8008:8008 --restart unless-stopped \
ahdinosaur/ssb-pub
create invites
from your remote machine
docker run -it --rm \
-v ~/ssb-pub-data/:/home/node/.ssb/ \
-e ssb_host="<hostname.yourdomain.tld>" \
ahdinosaur/ssb-pub \
invite.create 1
from your local machine, using ssh
ssh root@<hostname.yourdomain.tld> \
docker run -it --rm \
-v ~/ssb-pub-data/:/home/node/.ssb/ \
-e ssb_host="<hostname.yourdomain.tld>" \
ahdinosaur/ssb-pub \
invite.create 1
control service
docker stop sbot
docker start sbot
docker restart sbot
Built with git-ssb-web