Install Governate
One command puts the installer on your server. You choose the rest on a page, and it starts everything.
1. Point two names at your server
Governate needs two addresses: one people use, and one for the document viewer. Create a DNS record for each that points at the server, for example docs.example.com and viewer.example.com. If you use Cloudflare, set them to DNS only.
No domain yet, or an internal network? You can still install: choose your own certificate, your own proxy, or a self-signed one in step 3.
2. Get the installer
On the server, a Linux machine with Docker:
curl -fsSL https://v2.governate.com/install | sudo sh
This fetches the installer for the machine's kind of processor and puts it on the path as governate-install. sudo is needed because it puts the program into /usr/local/bin, which belongs to root. It changes nothing else. Read the script before running it if you like.
Docker not installed? On Debian and Ubuntu the script can do that too:
curl -fsSL https://v2.governate.com/install | sudo GOVERNATE_INSTALL_DOCKER=1 sh
3. Run it
sudo governate-install
sudo is there because the installer keeps the installation in /opt/governate, which belongs to root, and because it runs Docker, which on most servers only root may do. If your own user can run Docker, it works without: governate-install -dir ~/governate.
It looks at the machine, then prints an address and one ssh line. Run that line on your own computer and open the address in your browser. On the page you choose:
- your two addresses, and how they are secured: certificates obtained automatically, a certificate of your own, your own proxy in front, or self-signed for a trial;
- for the database, the root key and the file store, whether each is the built-in default, a container on this machine set up for you, or one you already run;
- optionally, a collector that writes every activity record to a file.
A panel shows what your choices cost the machine in memory and disk. Then press Install and start.
| If | Run |
|---|---|
| You cannot open an SSH tunnel | sudo governate-install -public serves the page at the server's own address over HTTPS |
| You would rather answer in a file | governate-install -example > plan.json, edit it, then sudo governate-install -plan plan.json |
| You only want to know if the machine is big enough | governate-install -check |
4. Add your licence and create the administrator
Open your address. Setup asks first for your licence: generate it in the portal and paste it in. Then create the administrator. Do this straight away, before anyone else can reach the address.
What you need
| Smallest | Everything on one machine | |
|---|---|---|
| Memory | 4 GB | 4 GB works, 8 GB is comfortable |
| Processors | 2 | 2 or more |
| Disk | 10 GB and room for your files | 20 GB and room for your files |
| System | Linux, 64-bit Intel/AMD or ARM, with Docker | |
Changing something later, or updating, is the same command again: sudo governate-install.
Read further
- Installing with Docker: every choice in detail, mirrors and machines with no outside connection.
- Setup guide: the steps in the browser after installing.