The stack can be installed from a plugin URL and started from Settings, the same shape as other Unraid plugin installers.
Fluxer on Unraid
Install Fluxer on an Unraid server using the official Docker Compose bundle. Fluxer is the self-hosted chat server documented at docs.fluxer.com. This repo is the Unraid procedure: where files go, how secrets are created, and how the stack sits behind the proxy you already run.
This is not the Remix music bot. That packaging lives in fluxer-unraid.
The decisions, the compose file that was inspected, and the things that are still easy to get wrong are in docs/WORKING-NOTES.md.
Fluxer itself is AGPL-3.0. This repo does not vendor Fluxer's images or compose bundle. The prepare script downloads the current bundle from Fluxer when you run it on the server.
What you need
- Unraid with Docker running, and Docker Compose 2.24 or newer (the Compose Manager plugin is the usual way to get that). The bundle uses compose syntax that older Compose rejects.
- A 64-bit server. Fluxer asks for at least 2 CPU cores, 4 GB of RAM, and 20 GB of disk for about a thousand people online. On Unraid, plan on 8 GB of RAM the stack can actually use and a larger Docker image store. The compose file's own defaults are tuned much larger than 4 GB; the prepare script writes a smaller home-server profile the first time it creates
.env. - A hostname such as
chat.example.comwith a DNS A record to the address clients use. - TCP 7881 and UDP 7882 forwarded from the router to Unraid for voice and video. Call media does not go through the reverse proxy.
- A reverse proxy is the path this repo sets up by default, because Unraid (or Nginx Proxy Manager, SWAG, or Traefik) is usually already on ports 80 and 443.
Email is optional. With no SMTP settings, the setup wizard can use username sign-in.
Before the first start
- Give Docker room for the images. Uploads are kept out of
docker.imgby this repo, but the images still land there. Settings → Docker → stop Docker, raise the vDisk (50 GB is a practical floor) or switch the Docker data root to a directory on the cache pool, then start Docker again. - Keep Fluxer's data on a cache-only path. Postgres on a multi-disk
/mnt/usershare is a known way to corrupt a database. Create the appdata folder on a pool that is cache-only (or use/mnt/cache/appdata/fluxer). - Confirm Compose is new enough, in the Unraid terminal:
docker compose version
You want 2.24 or newer.
Install the plugin
This is the same kind of install as a Settings-page plugin. It is not listed in the public Apps catalog until that catalog accepts the repository. The plugin URL works now.
- Install Docker Compose 2.24 or newer. Unraid 7 includes it. On older Unraid, install Compose Manager from Apps.
- Open Plugins → Install Plugin.
- Paste this URL and install:
https://git.masengr.com/Michael-A-Sloan/Fluxer-selfhost-unraid/raw/main/fluxer.plg
- Open Settings → Fluxer.
- Enter your hostname. Leave mode on proxy when Nginx Proxy Manager, SWAG, or Traefik already uses ports 80 and 443.
- Click Start. The first image download takes several minutes. Refresh the page to read the log.
- Click Show token, open the site, and create the admin account.
Proxy mode serves Fluxer at http://YOUR_UNRAID_IP:18080. Point the proxy at that address and use unraid/npm-advanced.conf. Forward TCP 7881 and UDP 7882 for voice. Stop stops the stack and keeps the data. Removing the plugin also keeps /mnt/user/appdata/fluxer.
Copy /mnt/user/appdata/fluxer/stack/.env somewhere safe after the first start. The Postgres password, Meilisearch key, and VAPID keys cannot be changed after Fluxer has created its data.
Install from Community Apps Private
The public catalog does not index this Gitea repository. A Docker template can still show under Apps → Private on your server. One container, fluxer-stack, then starts the real Fluxer compose stack.
On the Unraid terminal:
mkdir -p /boot/config/plugins/community.applications/private/fluxer
curl -fsSL -o /boot/config/plugins/community.applications/private/fluxer/fluxer.xml \
https://git.masengr.com/Michael-A-Sloan/Fluxer-selfhost-unraid/raw/main/unraid/fluxer.xml
If you already cloned this repo on the server, sh scripts/install-ca-template.sh copies that same file.
Then:
- Open Apps and refresh the page.
- Open Private and install fluxer-stack.
- Set Hostname to your real domain. Leave Edge mode at
proxywhen Nginx Proxy Manager, SWAG, or Traefik already uses ports 80 and 443. - Apply.
The supervisor clones this repo into /mnt/user/appdata/fluxer-selfhost, stores Fluxer's data in /mnt/user/appdata/fluxer, and publishes the web UI on port 18080. Stopping fluxer-stack stops Fluxer. Starting it brings Fluxer back.
The setup token is in the supervisor log path and in this file:
awk -F= '$1=="FLUXER_SETUP_TOKEN"{print $2}' /mnt/user/appdata/fluxer-selfhost/stack/.env
Point the proxy at http://YOUR_UNRAID_IP:18080 and use unraid/npm-advanced.conf. Forward TCP 7881 and UDP 7882 for voice. The other fluxer-* containers belong to Compose. Leave them alone.
Install from the Unraid terminal
Use this when you would rather not put a supervisor container in front of Compose. Run it on the Unraid server, not on your PC. Do not clone onto the USB flash drive (/boot).
mkdir -p /mnt/user/appdata
cd /mnt/user/appdata
git clone https://git.masengr.com/Michael-A-Sloan/Fluxer-selfhost-unraid.git
cd Fluxer-selfhost-unraid
sh scripts/prepare-unraid.sh chat.example.com
Replace chat.example.com with your hostname. The script:
- downloads the official bundle into
stack/ - creates
/mnt/user/appdata/fluxer/and the data directories under it - writes
stack/.env, generates the secrets Fluxer requires, and points storage at those directories - listens for your existing proxy on port 18080 of the Unraid host
It does not start the containers. Read the script's output. Copy stack/.env somewhere safe before you continue. These values are fixed after the first start:
POSTGRES_PASSWORDMEILI_MASTER_KEYFLUXER_VAPID_PUBLIC_KEYandFLUXER_VAPID_PRIVATE_KEY
Show the admin token with:
awk -F= '$1=="FLUXER_SETUP_TOKEN"{print $2}' stack/.env
Put your proxy in front
Default prepare mode publishes plain HTTP on 0.0.0.0:18080. 127.0.0.1:8080 from the Fluxer docs is the wrong address on Unraid: another container cannot open the host's loopback, and port 8080 is a common Unraid web UI port.
In Nginx Proxy Manager, add a proxy host:
| Field | Value |
|---|---|
| Domain | your Fluxer hostname |
| Scheme | http |
| Forward hostname | Unraid's LAN IP, not 127.0.0.1 |
| Forward port | 18080 |
| Websockets | on |
| Block Common Exploits | off |
Paste unraid/npm-advanced.conf into that host's Advanced tab. Request a certificate in NPM. Leave Fluxer's own certificate off; in this mode Caddy is only the HTTP edge.
The proxy also has to allow a 512 MB upload body, keep idle connections for an hour, forward WebSocket upgrades, and not add its own Content-Security-Policy. The snippet covers the nginx side of that.
Voice and video
Forward these from the router to the Unraid host, same numbers on both sides:
| Port | Protocol | Use |
|---|---|---|
| 18080 | TCP | only if you are not using a proxy on the same machine |
| 7881 | TCP | voice and video |
| 7882 | UDP | voice and video |
A Cloudflare Tunnel, or any proxy that only carries HTTP, cannot carry the call media. If the server is behind CGNAT and you cannot forward 7881/7882, calls need a TURN server on a public machine. That is written up in the Fluxer proxy docs under "Voice behind a tunnel".
Start
cd /mnt/user/appdata/Fluxer-selfhost-unraid
docker compose --project-directory stack up -d
The first start pulls a lot of images. Then:
docker compose --project-directory stack ps
docker compose --project-directory stack logs -f api
When the API is healthy, open https://chat.example.com, enter FLUXER_SETUP_TOKEN, and create the admin account. The admin panel is at /admin on that same host.
To start as part of prepare, add --up:
sh scripts/prepare-unraid.sh chat.example.com --up
Direct HTTPS instead of your proxy
Use this only when nothing else on Unraid is bound to 80 and 443, and the DNS A record already points at this machine so Caddy can get a certificate.
sh scripts/prepare-unraid.sh chat.example.com --direct
Also forward TCP 80, TCP 443, and UDP 443, plus the voice ports above.
Where files live
| Path | What it is |
|---|---|
stack/ |
Official compose bundle, generated .env, and the Unraid volume file. Not in git. |
/mnt/user/appdata/fluxer/ |
Postgres, uploads, search, Valkey, NATS, Caddy data. Not in git. |
unraid/docker-compose.unraid.yml |
Bind-mounts those directories so they are not stored in docker.img. |
Override the data path if cache is not /mnt/user/appdata:
FLUXER_APPDATA=/mnt/cache/appdata/fluxer sh scripts/prepare-unraid.sh chat.example.com
Update
Back up first. Then, on the server:
sh scripts/backup-unraid.sh
sh scripts/update-unraid.sh
docker compose --project-directory stack up -d
The update downloads a new official bundle into stack/ and keeps .env. New keys sometimes appear in .env.example. If the release notes or a failed start say a setting is missing, copy that line from stack/.env.example into stack/.env.
Passing --proxy or --direct to prepare again rewrites COMPOSE_FILE. A plain update does not.
Back up
scripts/backup-unraid.sh stops the stack, writes a Postgres custom dump, tars the data directories, copies .env, and starts the stack again. The folder it creates contains secrets. Copy it off the server.
sh scripts/backup-unraid.sh
Fluxer's own restore steps for a compose install are in the Docker Compose doc. Restore with the bundle version that created the backup, then upgrade.
Useful checks
docker compose --project-directory stack ps
docker volume ls | grep fluxer
fluxer_postgres-data should be a bind whose device is /mnt/user/appdata/fluxer/postgres (or whatever FLUXER_APPDATA you set). If the device is blank, that volume was created inside docker.img before the Unraid file was applied. On a brand-new install with no data you care about, remove the empty fluxer_* volumes and run docker compose --project-directory stack up -d again. Do not remove them if they already hold a database you need.
LAN-only voice
Leave the defaults when callers are on the internet: LiveKit discovers the public address with STUN, and the router forwards 7881/7882.
If clients are only on your LAN and hairpin NAT breaks calls, set these in stack/.env and recreate:
FLUXER_LIVEKIT_USE_EXTERNAL_IP=false
FLUXER_LIVEKIT_NODE_IP=192.168.1.10
Use the Unraid LAN address. Then docker compose --project-directory stack up -d.
If a container is killed for memory
The first .env lowers the bundle's large caps (Postgres defaults to a 5 GB cap and a 1 GB shared-memory mount). If the API, worker, or Postgres is still OOM-killed, raise that service's FLUXER_*_MEMORY_LIMIT in stack/.env and recreate. The full list is in Environment variables.