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
aptand Docker's official packages. On another distribution it warns and tries the Debian packages anyway, which is not supported. - Root. Run it with
sudoor 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:
$curl -fsSL https://get.quayel.com | sudo SERVER_TOKEN=<token> bashThe 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
- A few base packages (
curl,jq,openssland similar). - Kernel settings for many concurrent connections, and
vm.max_map_countof at least 262144, which Elasticsearch and OpenSearch templates need. - Docker Engine with the Compose and Buildx plugins, if missing.
- Nixpacks, one of the two ways Quayel builds apps from source.
- Single-node Docker Swarm and an overlay network,
quayel-main-network, for your services. - Two containers:
quayel-agent-api, the agent that runs deploys and reports to Quayel, andquayel-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:
curl -fsSL https://get.quayel.com | sudo SERVER_TOKEN=<token> GATEWAY_ENGINE=apisix bashSet 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
| Path | What it holds |
|---|---|
| /opt/quayel/docker-compose.yml | The agent and gateway containers. |
| /opt/quayel/.env | Image versions, gateway engine and the server token, for Docker Compose. |
| /etc/quayel/server_token | The server token (readable by root only). |
| /etc/quayel/gateway/ | Gateway config. The agent writes it; the gateway reloads it live. |
| /etc/quayel/install_version | The 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.conf | Kernel 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:
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/healthUpdate 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:
curl -fsSL https://get.quayel.com | sudo bashPass 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.