Self-hostingPlatforms
Debian and Ubuntu
Short version
Section titled "Short version"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 Fluxer in it. Installing Docker and Fluxer takes about 5 minutes. For the systemd route, install Fluxer with rexctl, or install it by hand.
What this changes
Section titled "What this changes"- Docker Engine and the Compose plugin, from your distribution or Docker.
- One container called
fluxer-fluxer-1with the compose file, orfluxerwithdocker run, plus one Docker volume calledfluxer-datawith all the data. - Ports 80 and 443 on TCP, 443 on UDP, 7881 on TCP and 7882 on UDP.
Before you start
Section titled "Before you start"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.
Install Docker
Section titled "Install Docker"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 Fluxer. On Debian 12 and Ubuntu 22.04, use Docker's repository.
Install these packages on Debian 13.
sudo apt-get updatesudo apt-get install -y docker.io docker-cli docker-composeInstall these on Ubuntu 24.04 and 26.04.
sudo apt-get updatesudo apt-get install -y docker.io docker-compose-v2docker compose version prints a version.
Docker's repository has the newest releases of Docker Engine and Compose.
sudo apt-get updatesudo apt-get install -y ca-certificates curlsudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL "https://download.docker.com/linux/$(. /etc/os-release && echo "$ID")/gpg" -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc sudo tee /etc/apt/sources.list.d/docker.sources <<EOFTypes: debURIs: https://download.docker.com/linux/$(. /etc/os-release && echo "$ID")Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") Components: stableArchitectures: $(dpkg --print-architecture)Signed-By: /etc/apt/keyrings/docker.asc EOFsudo apt-get updatesudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugindocker compose version prints a version.
Install Fluxer
Section titled "Install Fluxer"Then run the Docker install from step 1, with sudo before docker unless you're root.
Firewalls
Section titled "Firewalls"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/ tcpsudo ufw allow 443/ tcpsudo ufw allow 443/ udpsudo ufw allow 7881/ tcpsudo ufw allow 7882/ udp