Перейти к содержимому

Debian and Ubuntu

A machine with 2 CPU cores, 2 GB of memory at least and 4 GB for a busy instance, and 20 GB of free disk, on amd64 or arm64, with a domain that points at it or its IP address. Install Docker, then install Squad in it. Installing Docker and Squad takes about 5 minutes. For the systemd route, install Squad with rexctl, or install it by hand.

  • Docker Engine and the Compose plugin, from your distribution or Docker.
  • One container called fluxer-fluxer-1 with the compose file, or fluxer with docker run, plus one Docker volume called fluxer-data with all the data.
  • Ports 80 and 443 on TCP, 443 on UDP, 7881 on TCP and 7882 on UDP.

Check the requirements. Point your domain at the machine with an A record, and check with dig +short chat.example.com that it shows the machine’s address first. On a Docker install, leave out the AAAA record unless a reverse proxy or Docker’s IPv6 network keeps IPv6 visitors’ addresses. Open the five ports in your firewall.

Debian 13 and Ubuntu 24.04 and later have Docker and the Compose plugin in their own repositories. These packages are older than Docker’s own, and they work with Squad. On Debian 12 and Ubuntu 22.04, use Docker’s repository.

Install these packages on Debian 13.

Окно терминала
sudo apt-get update
sudo apt-get install -y docker.io docker-cli docker-compose

Install these on Ubuntu 24.04 and 26.04.

Окно терминала
sudo apt-get update
sudo apt-get install -y docker.io docker-compose-v2

docker compose version prints a version.

Then run the Docker install from step 1, with sudo before docker unless you’re root.

Docker opens the ports it publishes in its own firewall rules, before ufw and nftables rules see the traffic. A port that ufw blocks is still open when a container publishes it.

To keep a port private, publish it on 127.0.0.1, as proxy mode does with port 8080.

The systemd route has no such exception. With ufw, open the ports yourself.

Окно терминала
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 443/udp
sudo ufw allow 7881/tcp
sudo ufw allow 7882/udp