Skip to content

Deploy the server ​

Every deployment comes up the same way: the server starts, connects to its licence, learns where PostgreSQL and Redis are, and generates its own secrets. What differs is who answers those questions: you on the setup page, or the environment.

Drawing the diagram…

What a starting server decides. With JOOBQUI_SETUP=off the two setup-page boxes become an exit with one line saying what is missing.

Choose a path ​

You wantUse
Everything on one host, with PostgreSQL, Redis and HTTPS includedDocker Compose
The server as one container, with your own PostgreSQL and RedisA single container
No setup page: images started by a pipeline or an orchestratorUnattended install

Then, for all three: TLS and proxies and First sign-in.

Before you start ​

  • An admin account of an organization with a paid self-hosted licence at app.joobq.io. There is no licence key to copy: the server fetches its licence itself.
  • A PostgreSQL database that exists (the server creates the tables) and a Redis 6.2 or newer with persistence. The Compose file brings both.
  • An address people and workers will use, https://jobs.example.com, and something that terminates TLS for it.
  • The image, at a tag you chose: ghcr.io/azutoolkit/joobqui-selfhosted:vX.Y.Z. :latest changes without notice; see Image tags.

The setup page ​

A server with nothing configured serves only a setup page.

  1. It prints a one-time setup code in its log ("JoobQ is not set up yet ..."). The code changes on every start until setup is finished.
  2. Open the server at its HTTPS address and enter the code. The setup page itself is plain HTTP: put a TLS proxy in front, or open it only from a trusted network.
  3. Enter the public address (https://...) and choose Sign in with JoobQ: the page shows a short code. An admin of your organization approves it at app.joobq.io (Open JoobQ). Only approve a code your own server shows you.
  4. Enter Redis and PostgreSQL (Test connections checks them), then Save and start.

The server saves everything encrypted in /data/joobqui.conf (its key is joobqui.key beside it, or JOOBQUI_BOOTSTRAP_KEY), generates SESSION_SECRET, JOOBQUI_SECRETS_KEY and JOOBQUI_PAYLOAD_KEYS itself, and restarts into the console.

What the environment already sets is not asked for. A server configured entirely by its environment still opens the setup page once, only to connect its licence; with an enrollment token it shows no page at all (Unattended install). JOOBQUI_SETUP=off turns the page off: a server without a licence then refuses to start and says how to connect it.

Register with JoobQ ​

Step 3 is the registration with the portal: the server asks, an admin of your organization approves, and the server fetches its licence. What the admin sees, the other ways to do it (a terminal, an enrollment token) and how to reconnect are in Register a server.

Check it worked ​

sh
./joobqui doctor

prints {"status":"ok","database":true,"redis":true,"session":true,"license":true} and exits with status 0. Any false exits with status 1: see The server will not start.