Commit c75f30cb41dc542f4b5bb30e7f4faeef212f4572
less is more
Michael Williams committed on 11/15/2017, 8:08:17 PMParent: 324fe93b6d9e9bb15a99a9a81405fe6c221bf263
Files changed
README.md | changed |
run.sh | changed |
README.md | ||
---|---|---|
@@ -11,15 +11,15 @@ | ||
11 | 11 … | on a fresh Debian 9 box, as root |
12 | 12 … | |
13 | 13 … | ```shell |
14 | 14 … | apt update |
15 | -apt upgrade | |
16 | -apt install apt-transport-https ca-certificates curl software-properties-common | |
15 … | +apt upgrade -y | |
16 … | +apt install -y apt-transport-https ca-certificates curl software-properties-common | |
17 | 17 … | wget https://download.docker.com/linux/debian/gpg -O docker-gpg |
18 | 18 … | sudo apt-key add docker-gpg |
19 | 19 … | echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee -a /etc/apt/sources.list.d/docker.list |
20 | 20 … | apt update |
21 | -apt install docker-ce | |
21 … | +apt install -y docker-ce | |
22 | 22 … | systemctl start docker |
23 | 23 … | systemctl enable docker |
24 | 24 … | ``` |
25 | 25 … | |
@@ -42,20 +42,21 @@ | ||
42 | 42 … | ``` |
43 | 43 … | |
44 | 44 … | ## start service |
45 | 45 … | |
46 | -#### 1. create a directory on the docker host for persisting the pub's data | |
46 … | +#### step 1. create a directory on the docker host for persisting the pub's data | |
47 | 47 … | |
48 | 48 … | ```shell |
49 | -mkdir ~/ssb-pub-data | |
49 … | +mkdir /root/ssb-pub-data | |
50 … | +chown -R 1000:1000 /root/ssb-pub-data | |
50 | 51 … | ``` |
51 | 52 … | |
52 | -#### 2. run the container | |
53 … | +#### step 2. run the container | |
53 | 54 … | |
54 | 55 … | ```shell |
55 | 56 … | docker run --name my-ssb-pub \ |
56 | 57 … | -d -v ~/ssb-pub-data/:/home/node/.ssb/ \ |
57 | - -e HOST="<hostname.yourdomain.tld>" \ | |
58 … | + -e ssb_host="<hostname.yourdomain.tld>" \ | |
58 | 59 … | -p 8008:8008 --restart unless-stopped \ |
59 | 60 … | ahdinosaur/ssb-pub |
60 | 61 … | ``` |
61 | 62 … | |
@@ -64,20 +65,24 @@ | ||
64 | 65 … | from your remote machine |
65 | 66 … | |
66 | 67 … | ```shell |
67 | 68 … | docker run -it --rm \ |
68 | - -d -v ~/ssb-pub-data/:/home/node/.ssb/ \ | |
69 … | + -v ~/ssb-pub-data/:/home/node/.ssb/ \ | |
69 | 70 … | ahdinosaur/ssb-pub \ |
70 | 71 … | invite.create 1 |
71 | 72 … | ``` |
72 | 73 … | |
73 | 74 … | from your local machine, using ssh |
74 | 75 … | |
75 | 76 … | ```shell |
76 | -ssh root@<hostname.yourdomain.tld> invite.create 1 | |
77 … | +ssh root@<hostname.yourdomain.tld> \ | |
78 … | + docker run -it --rm \ | |
79 … | + -v ~/ssb-pub-data/:/home/node/.ssb/ \ | |
80 … | + ahdinosaur/ssb-pub \ | |
81 … | + invite.create 1 | |
77 | 82 … | ``` |
78 | 83 … | |
79 | 84 … | ## control service |
80 | 85 … | |
81 | 86 … | - `docker stop my-ssb-pub` |
82 | -- `docker stop my-ssb-pub` | |
87 … | +- `docker start my-ssb-pub` | |
83 | 88 … | - `docker restart my-ssb-pub` |
Built with git-ssb-web