Skip to content

Getting started

Installation

One command turns a fresh Linux server into a Quayel server: it installs Docker, the Quayel agent and Quayel Gateway, and connects the machine to your organization.

Requirements

  • Ubuntu or Debian. The installer uses apt and Docker's official packages. On another distribution it warns and tries the Debian packages anyway, which is not supported.
  • Root. Run it with sudo or as root; it stops otherwise.
  • Ports 80 and 443 free. The gateway listens on both for your services' traffic and TLS.
  • Outbound internet access, to download packages and container images and to reach Quayel.

A fresh server is the easiest start. If Docker with the Compose plugin is already installed, the installer keeps it.

Get a server token

Every server has its own token. In the dashboard, open Servers and create a new server (the name is 3 to 30 characters). Quayel then shows the install command with the token already filled in, and the token on its own.

Run the installer

Paste the command from the dashboard into a shell on the server. It looks like this:

Enroll a server$curl -fsSL https://get.quayel.com | sudo SERVER_TOKEN=<token> bash

The script is served from get.quayel.com; open that URL to read it before you run it. It prints each step as it goes and ends with a summary of what is running and where.

What it installs

  1. A few base packages (curl, jq, openssl and similar).
  2. Kernel settings for many concurrent connections, and vm.max_map_count of at least 262144, which Elasticsearch and OpenSearch templates need.
  3. Docker Engine with the Compose and Buildx plugins, if missing.
  4. Nixpacks, one of the two ways Quayel builds apps from source.
  5. Single-node Docker Swarm and an overlay network, quayel-main-network, for your services.
  6. Two containers: quayel-agent-api, the agent that runs deploys and reports to Quayel, and quayel-gateway, Quayel Gateway on ports 80 and 443, which routes your domains and handles TLS.

Gateway engine

Quayel Gateway is the default since installer 1.3.2. To use Apache APISIX (with etcd) instead, set GATEWAY_ENGINE when you run the installer:

Install with APISIX
curl -fsSL https://get.quayel.com | sudo SERVER_TOKEN=<token> GATEWAY_ENGINE=apisix bash

Set it on every run: a run without it installs Quayel Gateway. Switching engines replaces one gateway with the other, so traffic stops for a few seconds.

Where files go

PathWhat it holds
/opt/quayel/docker-compose.ymlThe agent and gateway containers.
/opt/quayel/.envImage versions, gateway engine and the server token, for Docker Compose.
/etc/quayel/server_tokenThe server token (readable by root only).
/etc/quayel/gateway/Gateway config. The agent writes it; the gateway reloads it live.
/etc/quayel/install_versionThe installer version that last ran on this server.
/var/lib/quayel/Data, including the gateway's TLS certificates.
/var/log/quayel/gateway/Gateway logs.
/etc/sysctl.d/99-quayel.confKernel settings the installer applies (see below).

Check it's running

The server shows up in the dashboard once the agent reports in. On the server itself:

Check the containers
sudo docker compose -f /opt/quayel/docker-compose.yml ps
sudo docker logs -f quayel-agent-api
curl -s http://127.0.0.1:4000/health

Update or re-run

The installer is safe to run again. It keeps what is already there, pulls the current images and recreates the containers, which drops traffic for a few seconds. The token is saved in /etc/quayel/server_token, so a re-run doesn't need it:

Re-run the installer
curl -fsSL https://get.quayel.com | sudo bash

Pass SERVER_TOKENagain only to replace the saved token. If no token is set or saved, the installer still finishes but warns that the agent can't connect to Quayel until it has one.

Next: deploy your first service.