Deploy & runGuide

Waiso on Easypanel

Easypanel runs our compose file as it is, through its Compose service. It does not make secrets or addresses for a pasted file, so you make three secrets with one command, write the three addresses you want, and add the same three as domains. It takes about ten minutes the first time.

7 min readBefore this: Where to run Waiso
What you will learn
  • Create Waiso as a Compose service in Easypanel
  • Fill in its secrets and addresses
  • Update to a newer version

What runs in the Compose service

The file holds six services: the database, the API, the worker, the robot engine, the editor service and the web app. Easypanel’s proxy sends each of your three domains to the right one: the web app on port 8080, the API on 3000 and the editor service on 3001. The database and your files live in volumes that survive redeploys.

After the deploy, the worker checks in on the Workers page with its languages.

Install

  1. Make three secrets

    On any machine with OpenSSL, run the three commands below and keep the answers.

  2. Create the service

    In a project, press + Service → Compose, give it a name such as waiso and paste panels/easypanel/docker-compose.yml from our public repository.

  3. Fill in the environment

    In Environment, paste env.example, put in the three secrets and your three addresses, and turn on Create .env file.

  4. Add the domains

    In Domains, point the first domain at the compose service ui, port 8080. Add one for api, port 3000, and one for lsp, port 3001.

  5. Deploy and sign up

    Press Deploy, wait for the images, then open the web app’s domain and create the first account. It becomes the admin.

Shellterminal
openssl rand -hex 32      # POSTGRES_PASSWORD
openssl rand -base64 32   # DB_CREDENTIALS_KEY
openssl rand -hex 32      # SCRAPER_ENGINE_SECRET

Write the addresses exactly as browsers will reach them: https:// for the web app and the API, wss:// for the editor service once Easypanel has issued the certificates.

Update

  1. Check the versions page for anything the new version asks of you.
  2. In the Compose service’s Environment, set WAISO_VERSION 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} in the compose file.
  3. Save and deploy. Your data stays in the volumes; reload the browser tab afterwards.

If something looks wrong

  • Runs stay queued. Open the worker’s log (the service’s Logs, container worker). 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.