Deploy & runGuide

Waiso on Portainer

Portainer runs Waiso as a stack. You can add our app template once and pick Waiso from the list whenever you need it, or paste the compose file straight into a new stack. Either way you fill in three secrets and the three addresses browsers will use.

6 min readBefore this: Where to run Waiso
What you will learn
  • Add our app template to Portainer
  • Deploy the stack with its secrets and addresses
  • Update to a newer version

What the stack holds

The stack holds six services: the database, the API, the worker, the robot engine, the editor service and the web app. Portainer does not put a proxy in front of them, so the web app listens on port 8080, the API on 3000 and the editor service on 3001. Put your usual reverse proxy in front of those ports for HTTPS, or open them for a first try on a private network.

Once the stack is up, the worker checks in on the Workers page with its languages.

Install

  1. Add the template list

    In Settings → App Templates, set the URL below and save. Waiso appears under App Templates.

  2. Make three secrets

    Run openssl rand -hex 32 twice (database password, robot engine secret) and openssl rand -base64 32 once (credentials key).

  3. Deploy the stack

    Pick Waiso, fill in the three secrets and the three addresses, and press Deploy the stack. Without the template, create a stack with Web editor, paste panels/portainer/docker-compose.yml and set the same six values as environment variables.

  4. Create the first account

    Open the web app’s address and sign up. The first account on an empty database becomes the admin.

ShellApp Templates URL
https://raw.githubusercontent.com/talissonjunior16/waiso/main/panels/portainer/template.json

Update

  1. Check the versions page for anything the new version asks of you.
  2. In the stack’s Editor, set the WAISO_VERSION environment variable to the new version: every service follows it. An install made before 1.8.7 names the version in each image instead; replace each of those once with ${WAISO_VERSION}.
  3. Press Update the stack with Re-pull image on. Your data stays in the volumes; reload the browser tab afterwards.

If something looks wrong

  • Runs stay queued. Open the worker’s log (Containers → the stack’s worker → Logs). On a fresh install it waits for the API to prepare the database and then starts on its own, so give the first deploy a few minutes. If it keeps restarting after that, its log says why.
  • The app opens but nothing loads. The API address must be the one a browser reaches. A web app on https:// calling an API on http:// is blocked by the browser; give both the same kind.
  • The editor shows no completions. The editor address must start with ws:// or, behind HTTPS, wss://, and point at the editor service. Redeploy after changing it, then reload the tab.