PTGBastion

Run your own server

Before you start

What running your own server involves, what it costs, and what you get by hosting with us instead.

What "your own server" means

The BASTION app syncs with a server. That server can be this website, or a machine you run yourself.

Your own server is a standard file server (SFTP) with its folders laid out the way the app expects. We provide a server kit that sets all of that up for you:

  • an admin tool that creates the folders, the accounts and the connection cards;
  • a compose file that starts the server in Docker;
  • a short README.

Your files stay on your machine. Nothing is sent to us.

Get the server kit

The kit is proprietary to Phoenix Thrivers LLC. By using it you agree to the same licence terms that apply to the BASTION app. The notice is in LICENSE.txt inside the zip.

What it costs

  • The website is free up to a set amount of storage. You can add storage if you need more.
  • Running your own server is free. You provide the machine and look after it.
  • Enterprise needs a licence for the enterprise features, wherever your unit's files are kept:
    • Hosted with us: one price, set by the number of devices and the storage, with the licence included.
    • On your own server: you buy the licence alone. You get no storage and no device credentials on our server; your own server provides both.

See Pricing for current plans.

What you get by hosting with us instead

Your own server gives you storage and sync. Hosting with us adds:

  • The Maps page, for building offline map packs for any area.
  • Search and duplicate clean-up for your files.
  • Finer control over individual devices. Each device has its own credential that you can cut off by itself.
  • Easier device enrolment. A device connects by scanning a QR code.

You can use both: a website account for some devices or content and your own server for others. The app can hold several servers.

What you need

  • A machine that stays on and can run Docker with Docker Compose. Linux is the usual choice for a server you depend on.
  • Python 3.9 or newer.
  • ssh-keygen, which is part of OpenSSH and present on almost every Linux machine.
  • The machine's address on your network. Devices connect to it on port 2222.
  • Somewhere to keep backups. See Looking after your server.

You should be comfortable typing commands in a terminal. Every command you need is in these pages.

Which guide to follow

One server can hold both.