Skip to content

Latest commit

 

History

History
95 lines (79 loc) · 2.51 KB

DOCKER_synology_setup.md

File metadata and controls

95 lines (79 loc) · 2.51 KB

Installation of Dojo on Synology

This will install Dojo on your Synology hardware.

Table of Content

  • Synology hardware connected 24/7 to internet
  • Disk: 500GB (minimal) / 1TB (recommended)
  • RAM: 4GB (minimal)
  • Connect to Synology web ui as administrator
  • Open Package center, search for Docker, click Install.
  • Open SSH terminal to your Synology
  • Follow first-time install procedure in DOCKER_setup.md, but skip the first two steps:
  * Install Docker and Docker Compose on the host machine and check that your installation is working.
  * Install Tor Browser on the host machine.

You can use /volume1/dojo as <dojo_dir>.

  • Install will complete with the following warnings, which you can safely ignore:
Attaching to nginx, nodejs, bitcoind, tor, db
nginx       | WARNING: no logs are available with the 'db' log driver
nodejs      | WARNING: no logs are available with the 'db' log driver
bitcoind    | WARNING: no logs are available with the 'db' log driver
tor         | WARNING: no logs are available with the 'db' log driver
db          | WARNING: no logs are available with the 'db' log driver

Dojo status & logs

  • Connect to Synology web ui as administrator

  • Open Docker, then Container.

  • You will see the following containers running:

    • bitcoind
    • db
    • nginx
    • nodejs
    • tor
  • Select a container (ie bitcoind), click Detail, Log to see container's logs in real time

Usage

  • Retrieve the Tor onion addresses (v3) of the API and block explorer of your Dojo
./dojo.sh onion

Use Tor Browser for:

  • Explorer: .onion (username=any, password=<EXPLORER_KEY>)
  • Maintenance tool: .onion/admin (password=<NODE_ADMIN_KEY>)

Upgrade

  • Open SSH terminal to your Synology
  • Stop Dojo
cd <dojo_dir>
./docker/my-dojo/dojo.sh stop
  • Backup
cp -r ./ ../dojo-backup
  mkdir newDojo
  cd newDojo
  wget https://github.com/Samourai-Wallet/samourai-dojo/archive/v1.5.0.tar.gz
  tar xzvf v1.5.0.tar.gz
  cp -r samourai-dojo-1.5.0/* ../
  cd ..
  • Upgrade
  ./docker/my-dojo/dojo.sh upgrade
  • Clean
  rm -Rf newDojo