Start free

Install self-hosted Sopblox with Docker

The Docker edition, for a host that already runs Docker.

The Docker edition runs on any host with Docker, alongside your other containers. Use your own reverse proxy (such as Nginx Proxy Manager, Traefik or Caddy), or let Sopblox handle HTTPS itself.

What you need

  • Docker Engine with the Compose plugin: docker compose version should work
  • At least 2 GB of memory, or about 8 GB for the AI features on a paid licence
  • openssl on the host, for encrypted backups
  • A web address for Sopblox, such as sop.yourcompany.com
  • Either your own reverse proxy, or ports 80 and 443 free

Install

  1. Download the package and choose Docker bundle. We email you a link.
  2. Unpack it somewhere permanent, such as /opt, and run setup:
cd /opt
tar -xzf sopblox-docker_*.tar.gz
cd sopblox
./sopblox setup

On Linux, run it as root, with sudo, or as a user in the docker group. On a Mac with Docker Desktop, run it as yourself.

setup asks:

  • How people reach Sopblox. Choose your own reverse proxy (the default), or Sopblox's own web server with certificates on ports 80 and 443.
  • The port (with your own proxy). This is the port on the Docker host your proxy connects to. It's 8090 unless you choose another, and setup checks it's free. Change it later with ./sopblox port 8095.
  • The address. Enter the full address your proxy serves, such as https://sop.yourcompany.com.
  • Whether to run the AI engine. It's only offered with about 8 GB of memory or more.
  • The first administrator's email, name and a password of at least 12 characters.

The first start takes a few minutes. When it says Ready, open the address and sign in.

Set up your reverse proxy

Point your proxy at the port you chose (8090 by default) on the Docker host, using plain http, for your Sopblox address. Your proxy handles the certificate. If your proxy runs in Docker on the same host, use the host's IP address, or host.docker.internal on Docker Desktop.

Also allow uploads of at least 50 MB, so imports and screenshots work. In Nginx Proxy Manager, add client_max_body_size 50m; under the proxy host's Advanced tab.

After installing

  • Save two files in your password manager: .env, which holds the key that encrypts the password vault, and backup.key, which decrypts your backups.
  • Schedule nightly backups. Add this line to root's crontab (sudo crontab -e):
30 2 * * * /opt/sopblox/sopblox backup --quiet
  • Choose your edition. Community is free for up to 5 users, 3 divisions and 25 SOPs. For more, start a free 30-day trial under Settings → Licence & updates. See Licences, trials and editions.
  • Your own Compose changes go in docker-compose.override.yml. Updates never touch it, or .env.

Commands

Run these from the Sopblox folder.

Command What it does
./sopblox status Version, address, containers and licence
./sopblox update Back up, then install the latest signed version
./sopblox backup Encrypted backup to ./backups (keeps 14 days)
./sopblox restore FILE Put a backup back
./sopblox licence KEY Install a licence key
./sopblox password EMAIL Set someone's password
./sopblox reset-2fa EMAIL Turn off two-factor for someone who lost their phone
./sopblox ai on or off Run the AI engine or not
./sopblox port NUMBER Change the port your proxy connects to
./sopblox logs Follow the app's logs
./sopblox support-bundle Collect details for a support request, with secrets removed

On a Mac

The Docker edition runs on macOS with Docker Desktop, which is handy for trying it out. For everyday use, run it on an always-on server. Give Docker Desktop at least 4 GB of memory (Settings → Resources), or about 8 GB for the AI engine. Nightly backups through crontab only run while the Mac is awake.

Updates

./sopblox update checks for a new version, downloads it, and checks its Sopblox signature before changing anything. It backs up first and keeps your settings, override file and backups.

Moving between Debian and Docker

Back up on the old server, set up the new one, then restore the backup and copy across VAULT_MASTER_KEY from the old .env. Debian backups (.gpg) and Docker backups (.enc) use different formats, so ask us at signup@sopblox.com if you need to move between them.

Still need help?

Email signup@sopblox.com. If you run Sopblox on your own server, attach a support bundle so we can help faster.