Run Fluxer, the Swedish Discord alternative, with rootless Docker

Fluxer on Debian 13, the open-source chat app from Sweden with communities, channels, roles, direct messages and voice and video calls, in rootless Docker under a user of its own behind Caddy, with Garage for files and registration by invitation.

Tested on Docker steps follow the tested rootless Docker base guide on Debian 13 with Docker Engine 29.10.1, Compose 5.8.1 and rootlesskit 3.3.0; the app version and app-specific behaviour are from the tested Podman guide on a Melonslab server. Not re-tested end to end under Docker. Updated November 28, 2026

Recommended server for this guide

SSD RAID 1 · ECC DDR4 · 10 Gbit

VC-P Alloy · 2 vCPU · 8 GB Memory · 60 GB Storage

Month to month, no lock-in 7-day money-back guarantee

€8.99/mo

Deploy now

Quick install on a fresh VM

This command sets up a rootless container engine and a directory for this service. Podman is the default; add --engine docker to the command to use Docker instead.

curl -fsSL https://www.melonslab.com/install/rootless.sh | bash -s -- --app fluxer-docker --manifest fluxer --sha256 b24a45ab0303c662f6f136785f91105cb55144e2908ffc921609ad069c7a53e7
View the script

SHA-256: 97785be3e3e91393181a4a7caeab5f4b52803bf52e960dd488945cb38c6473a2

Run this guide on Melonslab

We ran every step below on our own server. For this workload we recommend VC-P Alloy at €8.99/mo. Order it, pick Debian 13, and follow the guide.

  1. 1. Order the server. Use the button below to order the recommended plan. Choose Debian 13 when the installer asks for an operating system.
  2. 2. Add IPv4 if needed. Add it on the order form when the guide publishes a service on the internet. It is a paid add-on, not included in the plan.
  3. 3. Connect over SSH. Log in as root with the address and credentials from your order, then run the commands below.
  4. 4. Follow the verified steps. Every command in this guide was run on a Melonslab server before it was published.
Deploy now
On this page

What you will set up

Fluxer is a chat app in the style of Discord: people join communities, which have text channels, voice channels and roles, and they can also send each other direct messages. Voice channels carry calls with sound, video and screen sharing. It runs in the browser, and there are apps for Windows, macOS, Linux, Android and iOS, which can connect to your own server.

Fluxer is made by Fluxer Platform AB, a self-funded company in Sweden started by the developer Hampus Kraft. It is open source under the GNU AGPL v3, and the company says self-hosting stays free. Fluxer publishes its own container images and documents running your own instance; this guide follows that setup, written as one Compose project instead of Podman Quadlet files.

This Docker version follows the tested rootless Docker base guide on Debian 13. A Fluxer instance is many small programs working together, 25 containers in all, under a user of its own called fluxer, behind Caddy from the Docker guide:

  • the Fluxer services themselves: the API, a background worker, the gateway that keeps every app connected, a media proxy for uploads and images, the admin dashboard, the web app, and five small internal services, each with a router and a shard;
  • PostgreSQL for the data, Valkey as a cache, NATS for messages between the services and Meilisearch for search;
  • Garage for uploaded files, the S3 store from the Garage guide, here inside the Fluxer setup instead of Fluxer's default, SeaweedFS;
  • LiveKit, the media server for voice and video;
  • a small Caddy, called the edge, that sends each request to the right service.

The app-specific results below come from the tested Podman guide on a fresh Melonslab VC-P Alloy (2 vCPU, 8 GB) with Debian 13; they were not measured again under Docker. In that test:

  • The site was online before the admin account existed, and a sign-up from outside was refused with "This instance is not set up yet". The admin account was created with the setup token from Fluxer's log.
  • With registration closed, the sign-up page said "Registration is currently closed". A second person signed up with a one-time registration link from the admin dashboard, and joined the community through an invite link.
  • A community was created with a second text channel and a Moderator role, which was given to the second person. Messages went both ways, a direct message arrived, search found a word, an image showed with a preview, and files of 3 MB and 150 MB downloaded with the same checksum.
  • Two browsers held a video call in a voice channel, over UDP and, with UDP blocked, over TCP, with sound and video both ways.
  • The admin dashboard showed each person's real IPv4 address.
  • The app was shown in both by choice and in a browser set to Swedish.
  • Through a test mail server on port 587, a password reset email arrived, in and its link set a new password.
  • A backup was restored into a new instance with every account, message and file, Fluxer was updated with new images, and everything came back by itself after a reboot.

In that test, Fluxer used about 850 MB of memory when idle, and about 1 GB with two people in a video call. The images take about 4 GB of disk. Fluxer's own documentation asks for 8 GB of memory, the Alloy plan, and 16 GB for a small, busy community.

Before you start

You need:

  • a server set up as in the Docker guide, with Caddy running, and with ufw as in the security guide;
  • an A record and an AAAA record for chat.example.com pointing at your server;
  • for email, an account with your email provider that can send through SMTP (step 12).

The examples use chat.example.com for Fluxer and 203.0.113.10 for your server's IPv4 address, which ip -brief address show eth0 shows. Replace them throughout.

1. Open the call ports and create the user

As root, raise the limit on how much incoming UDP Linux holds for a program. LiveKit receives calls over UDP, and warns at start when the limit is lower:

echo "net.core.rmem_max = 5000000" > /etc/sysctl.d/60-livekit.conf
sysctl --system

Open the two ports LiveKit uses for calls:

ufw allow 7891/tcp
ufw allow 7892/udp

Sound and video travel over UDP port 7892. TCP port 7891 is the fallback for networks that block UDP. These are the only ports Fluxer needs besides HTTPS. Fluxer's own setup uses 7881 and 7882, the same as Matrix calls, so this guide moves them up by ten to let both run on one server.

Then create the user:

useradd -m -s /bin/bash fluxer
loginctl enable-linger fluxer
uid=$(id -u fluxer)

The uid is looked up so the commands below work for any user. Keep it in this shell. Everything up to step 6 runs as fluxer.

2. Create the secrets

Fluxer needs a long list of keys and passwords, which the services use to trust each other and to sign logins. Create them all as random values in a 0600 environment file under the app directory, not in compose.yaml:

umask 077
mkdir -p /home/fluxer/fluxer/data
: > /home/fluxer/fluxer/secrets.env
for v in FLUXER_POSTGRES_PASSWORD FLUXER_SEARCH_API_KEY MEILI_MASTER_KEY GARAGE_RPC_SECRET \
  FLUXER_SUDO_MODE_SECRET FLUXER_CONNECTION_INITIATION_SECRET FLUXER_PROFILE_PSEUDONYM_SECRET \
  FLUXER_GATEWAY_RPC_AUTH_TOKEN FLUXER_ERLANG_COOKIE FLUXER_MEDIA_PROXY_SECRET_KEY \
  FLUXER_ADMIN_SECRET_KEY_BASE FLUXER_ADMIN_OAUTH_CLIENT_SECRET; do
  printf '%s=%s\n' "$v" "$(openssl rand -hex 32)" >> /home/fluxer/fluxer/secrets.env
done
printf 'FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64=%s\n' "$(openssl rand -base64 32 | tr -d '\n')" >> /home/fluxer/fluxer/secrets.env
secret=$(openssl rand -hex 32)
printf "LIVEKIT_KEYS='fluxer: %s'\n" "$secret" >> /home/fluxer/fluxer/secrets.env
printf 'FLUXER_LIVEKIT_API_SECRET=%s\n' "$secret" >> /home/fluxer/fluxer/secrets.env
unset secret

MEILI_MASTER_KEY and FLUXER_SEARCH_API_KEY are the same value: Meilisearch checks it, and Fluxer uses it to talk to Meilisearch. LiveKit and Fluxer share the last one: LIVEKIT_KEYS is the key LiveKit checks, named fluxer, and FLUXER_LIVEKIT_API_SECRET the same secret for Fluxer.

Browser notifications need a key pair of their own, which Fluxer requires even if nobody turns notifications on:

openssl ecparam -name prime256v1 -genkey -noout -out /home/fluxer/fluxer/vapid.pem
openssl ec -in /home/fluxer/fluxer/vapid.pem -outform DER 2>/dev/null | tail -c +8 | head -c 32 | openssl base64 -A | tr '+/' '-_' | tr -d '=' | sed 's/^/FLUXER_VAPID_PRIVATE_KEY=/' >> /home/fluxer/fluxer/secrets.env
openssl ec -in /home/fluxer/fluxer/vapid.pem -pubout -outform DER 2>/dev/null | tail -c 65 | openssl base64 -A | tr '+/' '-_' | tr -d '=' | sed 's/^/FLUXER_VAPID_PUBLIC_KEY=/' >> /home/fluxer/fluxer/secrets.env
rm /home/fluxer/fluxer/vapid.pem
chown fluxer:fluxer /home/fluxer/fluxer/secrets.env

The public key is not secret, but keeping it next to the private key means the two always match, also in a backup.

3. Write the configuration

Create /home/fluxer/fluxer/fluxer.env, the settings every Fluxer service shares:

FLUXER_ENV=production
FLUXER_SELF_HOSTED=true
FLUXER_BASE_DOMAIN=chat.example.com
FLUXER_PUBLIC_SCHEME=https
FLUXER_PUBLIC_PORT=443
FLUXER_TRUST_CLIENT_IP_HEADER=true
FLUXER_APP_ENDPOINT=https://chat.example.com
FLUXER_MARKETING_ENDPOINT=https://chat.example.com
FLUXER_ADMIN_ENDPOINT=https://chat.example.com/admin
FLUXER_MEDIA_ENDPOINT=https://chat.example.com/media
FLUXER_MEDIA_PROXY_PUBLIC_ENDPOINT=https://chat.example.com/media
FLUXER_MEDIA_PROXY_UPLOAD_RELAY_ENDPOINT=https://chat.example.com/media
FLUXER_LIVEKIT_URL=wss://chat.example.com/livekit
FLUXER_PASSKEY_RP_ID=chat.example.com
FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS=https://chat.example.com
FLUXER_VAPID_EMAIL=admin@chat.example.com
FLUXER_INTERNAL_API_ENDPOINT=http://api:8080
FLUXER_INTERNAL_MEDIA_PROXY_ENDPOINT=http://media-proxy:8080
FLUXER_MEDIA_PROXY_ENDPOINT=http://media-proxy:8080
FLUXER_DATABASE_BACKEND=postgres
FLUXER_POSTGRES_HOST=postgres
FLUXER_KV_URL=redis://valkey:6379/0
FLUXER_NATS_URL=nats://nats:4222
FLUXER_NATS_JETSTREAM_URL=nats://nats:4222
FLUXER_SVC_NATS_URL=nats://nats:4222
FLUXER_SVC_SHARD_COUNT=1
FLUXER_SEARCH_ENGINE=meilisearch
FLUXER_SEARCH_URL=http://meilisearch:7700
FLUXER_S3_ENDPOINT=http://garage:3900
FLUXER_S3_PUBLIC_ENDPOINT=http://garage:3900
FLUXER_S3_REGION=garage
FLUXER_S3_FORCE_PATH_STYLE=true
FLUXER_S3_BUCKET_CDN=fluxer
FLUXER_S3_BUCKET_UPLOADS=fluxer-uploads
FLUXER_S3_BUCKET_REPORTS=fluxer-reports
FLUXER_S3_BUCKET_HARVESTS=fluxer-harvests
FLUXER_API_PRESIGNED_ATTACHMENT_UPLOADS_ENABLED=true
FLUXER_API_PRESIGNED_HARVEST_DOWNLOADS_ENABLED=false
FLUXER_LIVEKIT_ENABLED=true
FLUXER_LIVEKIT_API_KEY=fluxer
FLUXER_LIVEKIT_INTERNAL_URL=http://livekit:7880
FLUXER_LIVEKIT_DEFAULT_REGION={"id":"default","name":"Default","emoji":"🌍","latitude":0,"longitude":0}
FLUXER_ACCOUNT_IDENTITY=email
FLUXER_GIFS_SHARD_CACHE_MAX_BYTES=134217728

Create /home/fluxer/fluxer/garage.toml, the configuration of the file store:

metadata_dir = "/var/lib/garage/meta"
data_dir = "/var/lib/garage/data"
db_engine = "sqlite"
metadata_fsync = true
replication_factor = 1
rpc_bind_addr = "127.0.0.1:3901"
rpc_public_addr = "127.0.0.1:3901"

[s3_api]
s3_region = "garage"
api_bind_addr = "[::]:3900"

Create /home/fluxer/fluxer/livekit.yaml, with your server's IPv4 address:

port: 7880
rtc:
  tcp_port: 7891
  udp_port: 7892
  use_external_ip: false
  node_ip: 203.0.113.10
webhook:
  api_key: fluxer
  urls:
    - http://api:8080/webhooks/livekit

And /home/fluxer/fluxer/Caddyfile.edge, the routes of the edge, the same as in Fluxer's own setup:

{
    admin off
    servers {
        trusted_proxies static private_ranges
        trusted_proxies_strict
    }
}

:8080 {
    encode zstd gzip
    handle /_health {
        respond "OK" 200
    }
    handle_path /api/* {
        reverse_proxy api:8080
    }
    handle /gateway {
        rewrite * /
        reverse_proxy gateway:8080
    }
    handle_path /gateway/* {
        reverse_proxy gateway:8080
    }
    handle_path /media/* {
        reverse_proxy media-proxy:8080
    }
    handle_path /livekit/* {
        reverse_proxy livekit:7880
    }
    handle /admin {
        rewrite * /
        reverse_proxy admin:8080
    }
    handle_path /admin/* {
        reverse_proxy admin:8080
    }
    @static path /web/* /emoji/* /libs/* /avatars/* /badges/* /desktop/*
    handle @static {
        reverse_proxy static-proxy:8080
    }
    handle /.well-known/fluxer {
        reverse_proxy api:8080
    }
    handle {
        reverse_proxy app-proxy:8080
    }
}

:8088 {
    handle /.well-known/fluxer {
        reverse_proxy api:8080
    }
}

What the settings do:

  • Fluxer builds every address it gives the apps from FLUXER_BASE_DOMAIN, the scheme and the port, and the lines with https://chat.example.com spell them out. They must be the public https:// address, even though Caddy talks to Fluxer over plain HTTP.
  • FLUXER_TRUST_CLIENT_IP_HEADER=true lets Fluxer read each visitor's address from the header the edge sets. The edge trusts that header only from private addresses, such as Caddy's connection through the Compose network.
  • The names such as postgres, garage and api are the services of the next step, which reach each other by name on the Compose network.
  • FLUXER_S3_REGION must match s3_region in garage.toml, or Garage refuses the requests. Uploads go through Fluxer's media proxy, so browsers never talk to Garage.
  • FLUXER_ACCOUNT_IDENTITY=email makes people sign in with their email address, which lets Fluxer send password resets once email works (step 12). The alternative, username, needs no email at all and gives each person a recovery key instead. The choice is fixed when the first account is created.
  • In livekit.yaml, node_ip is the address LiveKit gives the apps for calls. Fluxer's own setup asks a Google STUN server for it instead; naming it here saves that lookup.
  • FLUXER_GIFS_SHARD_CACHE_MAX_BYTES is from Fluxer's settings for an 8 GB server.

4. Define the containers

One compose.yaml starts all 25 containers and puts them on a network of their own. As root, create the data directories and the file:

mkdir -p /home/fluxer/fluxer/data/{postgres,valkey,nats,meilisearch,s3-meta,s3-data}
cat > /home/fluxer/fluxer/compose.yaml <<'YAML'
x-common: &common
  env_file:
    - ./fluxer.env
    - ./secrets.env
  restart: always

x-fluxer: &fluxer
  <<: *common
  depends_on:
    postgres:
      condition: service_healthy
    valkey:
      condition: service_healthy
    nats:
      condition: service_healthy
    meilisearch:
      condition: service_healthy
    garage:
      condition: service_started
    livekit:
      condition: service_started

services:
  postgres:
    <<: *common
    image: docker.io/library/postgres:16-alpine
    command: postgres -c max_connections=150 -c shared_buffers=384MB -c effective_cache_size=1536MB -c jit=off -c shared_preload_libraries=pg_stat_statements
    shm_size: 1g
    mem_limit: 2560m
    environment:
      POSTGRES_DB: fluxer
      POSTGRES_USER: fluxer
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "fluxer", "-d", "fluxer"]
      interval: 10s

  valkey:
    <<: *common
    image: docker.io/valkey/valkey:9.1-alpine
    command: valkey-server --appendonly yes --appendfsync everysec --dir /data --maxmemory 192mb --maxmemory-policy noeviction
    volumes:
      - ./data/valkey:/data
    healthcheck:
      test: ["CMD", "valkey-cli", "ping"]
      interval: 10s

  nats:
    <<: *common
    image: docker.io/library/nats:2.14-alpine
    command: -js -sd /data -m 8222
    volumes:
      - ./data/nats:/data
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8222/healthz"]
      interval: 10s

  meilisearch:
    <<: *common
    image: docker.io/getmeili/meilisearch:v1.53
    mem_limit: 1g
    environment:
      MEILI_ENV: production
      MEILI_NO_ANALYTICS: "true"
      MEILI_MAX_INDEXING_MEMORY: 192mb
      MEILI_MAX_INDEXING_THREADS: "2"
    volumes:
      - ./data/meilisearch:/meili_data
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:7700/health"]
      interval: 10s

  garage:
    <<: *common
    image: docker.io/dxflrs/garage:v2.4.1
    command: /garage server --single-node
    stop_grace_period: 30s
    volumes:
      - ./garage.toml:/etc/garage.toml:ro
      - ./data/s3-meta:/var/lib/garage/meta
      - ./data/s3-data:/var/lib/garage/data

  livekit:
    <<: *common
    image: docker.io/livekit/livekit-server:v1.12.0
    command: --config /etc/livekit.yaml
    mem_limit: 512m
    volumes:
      - ./livekit.yaml:/etc/livekit.yaml:ro
    ports:
      - "7891:7891/tcp"
      - "7892:7892/udp"

  snowflakes:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-snowflakes:v1
    environment:
      FLUXER_SVC_NAME: snowflakes
      FLUXER_SVC_MODE: router
  snowflakes-shard:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-snowflakes:v1
    environment:
      FLUXER_SVC_NAME: snowflakes
      FLUXER_SVC_MODE: shard
      FLUXER_SVC_SHARD_ID: "0"
  users:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-users:v1
    environment:
      FLUXER_SVC_NAME: users
      FLUXER_SVC_MODE: router
  users-shard:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-users:v1
    environment:
      FLUXER_SVC_NAME: users
      FLUXER_SVC_MODE: shard
      FLUXER_SVC_SHARD_ID: "0"
  messages:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-messages:v1
    environment:
      FLUXER_SVC_NAME: messages
      FLUXER_SVC_MODE: router
  messages-shard:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-messages:v1
    environment:
      FLUXER_SVC_NAME: messages
      FLUXER_SVC_MODE: shard
      FLUXER_SVC_SHARD_ID: "0"
  gifs:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-gifs:v1
    environment:
      FLUXER_SVC_NAME: gifs
      FLUXER_SVC_MODE: router
  gifs-shard:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-gifs:v1
    environment:
      FLUXER_SVC_NAME: gifs
      FLUXER_SVC_MODE: shard
      FLUXER_SVC_SHARD_ID: "0"
  unfurl:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-unfurl:v1
    environment:
      FLUXER_SVC_NAME: unfurl
      FLUXER_SVC_MODE: router
  unfurl-shard:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-unfurl:v1
    environment:
      FLUXER_SVC_NAME: unfurl
      FLUXER_SVC_MODE: shard
      FLUXER_SVC_SHARD_ID: "0"

  api:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-api:v1
    mem_limit: 1280m
    environment:
      FLUXER_API_PORT: "8080"
      FLUXER_POSTGRES_MAX_CONNECTIONS: "25"
    healthcheck:
      test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:8080/_health').then(r => process.exit(r.ok ? 0 : 1), () => process.exit(1))"]
      interval: 10s
      start_period: 90s
  worker:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-api:v1
    command: node dist/WorkerEntrypoint.js
    mem_limit: 1280m
    environment:
      FLUXER_API_WORKER_MODE: all_lanes
      FLUXER_API_WORKER_ENABLE_CRON_SCHEDULER: "true"
      FLUXER_POSTGRES_MAX_CONNECTIONS: "25"
  gateway:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-gateway:v1
    mem_limit: 512m
    environment:
      FLUXER_GATEWAY_PORT: "8080"
  media-proxy:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-media-proxy:v1
    mem_limit: 512m
    environment:
      FLUXER_MEDIA_PROXY_PORT: "8080"
      FLUXER_MEDIA_PROXY_MODE: upload
      FLUXER_MEDIA_PROXY_STORAGE_BACKEND: s3
      FLUXER_MEDIA_PROXY_CORS_ALLOWED_ORIGINS: https://chat.example.com
  push:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-push:v1
  admin:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-admin:v1
    environment:
      FLUXER_ADMIN_PORT: "8080"
      FLUXER_ADMIN_BASE_PATH: /admin
      FLUXER_API_ENDPOINT: http://api:8080
      FLUXER_STATIC_CDN_ENDPOINT: https://chat.example.com
  app-proxy:
    <<: *fluxer
    image: ghcr.io/fluxerapp/fluxer-app-proxy-self-hosted:v1
    environment:
      FLUXER_APP_PROXY_PORT: "8080"
      DISCOVERY_UPSTREAM_URL: http://edge:8088/.well-known/fluxer
  static-proxy:
    <<: *common
    image: ghcr.io/fluxerapp/fluxer-static:v1
  edge:
    <<: *common
    image: docker.io/library/caddy:2.11-alpine
    volumes:
      - ./Caddyfile.edge:/etc/caddy/Caddyfile:ro
    # Only Caddy, on this server, can reach Fluxer: the port is not open to the internet.
    ports:
      - "127.0.0.1:8125:8080"
YAML
chown -R fluxer:fluxer /home/fluxer/fluxer

The memory limits are the ones Fluxer recommends for a server with 8 GB. They are ceilings, not reservations, and keep one busy service from taking the memory of the others. v1 is the tag that follows every compatible release of Fluxer.

5. Start Garage and the rest of Fluxer

Start Garage on its own, and give it a short name for its command:

runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose up -d garage'
echo "alias garage='docker compose exec -e RUST_LOG=warn garage /garage'" >> /home/fluxer/.bashrc
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose exec -e RUST_LOG=warn garage /garage status'

garage status lists one healthy node. If it says "Connection refused", Garage is still starting: wait a few seconds and run it again. Create the four buckets Fluxer uses and a key for Fluxer with access to them:

runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && \
    docker compose exec -e RUST_LOG=warn garage /garage key create fluxer'
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && for b in fluxer fluxer-uploads fluxer-reports fluxer-harvests; do
    docker compose exec -e RUST_LOG=warn garage /garage bucket create $b
    docker compose exec -e RUST_LOG=warn garage /garage bucket allow --read --write --owner $b --key fluxer
  done'

Store the key from garage key info fluxer --show-secret in secrets.env, in place of the values below:

printf 'FLUXER_S3_ACCESS_KEY_ID=%s\n' 'KEY ID from garage key info fluxer --show-secret' >> /home/fluxer/fluxer/secrets.env
printf 'FLUXER_S3_SECRET_ACCESS_KEY=%s\n' 'Secret key from garage key info fluxer --show-secret' >> /home/fluxer/fluxer/secrets.env
chown fluxer:fluxer /home/fluxer/fluxer/secrets.env

Then start everything. The first start downloads about 4 GB of images and takes a few minutes. restart: always starts Fluxer at every boot; the weekly update timer from the Docker guide pulls new images and recreates the containers:

runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose up -d'
runuser -u fluxer -- env XDG_RUNTIME_DIR=/run/user/$uid \
  DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus PATH=/usr/bin:/bin \
  systemctl --user enable --now docker-update.timer
runuser -u fluxer -- env XDG_RUNTIME_DIR=/run/user/$uid \
  DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus PATH=/usr/bin:/bin \
  systemctl --user start docker-update.service

Fluxer is ready when this prints 200 for each address:

for p in /_health /api/_health /gateway/_health /media/_health /.well-known/fluxer /; do
  printf '%s %s\n' "$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8125$p)" "$p"
done

docker compose ps lists 25 containers. Then find the setup token, which you need in step 7:

runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose logs api | grep -o '"'"'"setup_token":"[^"]*"'"'"' | tail -1'

6. Put Caddy in front

As root, switch to runuser -u caddy -- /bin/bash, and add this block at the end of ~/Caddyfile:

chat.example.com {
    reverse_proxy 127.0.0.1:8125
}

Restart Caddy with docker compose restart caddy from /home/caddy/caddy as caddy.

7. Create the admin account

Open https://chat.example.com. A new instance shows its setup, and nobody can create an account without the setup token from step 5: in our test, a sign-up from outside was refused with "This instance is not set up yet. Finish setup in a web browser with the setup token before creating accounts." That is why the site can go online before the admin account exists. An SSH tunnel to the server is no use here, because the web app always talks to https://chat.example.com.

Go through the setup:

  1. Pick the language and choose Next, then paste the setup token.
  2. Choose a theme. Under Choose how people sign in, Email and No tags are selected, from fluxer.env.
  3. Create the administrator account with your email address, a username and a password. The first account becomes the administrator.
  4. Under Make the instance yours, give the instance a Product name, which the app and emails show instead of Fluxer.
  5. Under Who can join, choose Closed. Step 8 lets people in by invitation.
  6. Leave Single community mode and Disable direct messages and friend requests off, unless you want one community only, which can only be chosen now.
  7. Leave Enable attachment expiration off to keep files until someone deletes them. The steps for GIF search, YouTube, email, Bluesky and mobile push can wait. Leave the push relay notice unaccepted for now; step 13 explains it.
  8. Under Choose the premium model, Everyone is premium gives everyone the highest limits, such as files of up to 500 MB, by Fluxer's documentation; we uploaded 150 MB. Fluxer sells no premium on your instance unless you set up Stripe.
  9. Check the summary, and choose Finish setup.

The admin dashboard is at https://chat.example.com/admin. It logs in with your Fluxer account, and has users, communities, reports, bans and every instance setting.

8. Invite people

With registration closed, https://chat.example.com/register says "Registration is currently closed. Use a registration link from an admin to create an account."

To let someone in, open the admin dashboard, Instance Config, and under Create Admin-Issued Registration URL give the link a Label, such as the person's name, Expires in days and Max uses, such as 7 and 1, and choose Create Registration URL. The link, https://chat.example.com/register?registration_url=..., appears under Existing Registration URLs. Send it to the person; it lets them create one account, and Revoke stops it. Tick Approval required to approve each account before it can be used.

To open registration instead, change Registration Policy on the same page to Open, or to Approval required, where every sign-up waits under Pending Registrations.

9. Communities, channels and roles

A community is what Discord calls a server: a place with its own channels, members and roles.

  1. Choose + (Create or join a community) on the left, Create community, give it a name, and Create community. It starts with a text channel, #general, and a voice channel, General.
  2. Open the menu under the community's name. Create channel adds a text, voice, announcement, forum or media channel, and Private channel limits it to the members and roles you pick.
  3. Invite members in the same menu gives an invite link, valid for seven days, for people who already have an account.
  4. Community settings > Roles > Create role adds a role, such as Moderator, with its permissions. Save changes stores it. To give someone the role, select them in the member list, and choose Add role.

Messages arrive at once for everyone in the channel. The + next to the message box has Upload file, and images show with a preview. To send a direct message, select a person and choose Message. The search box at the top searches the messages of the community.

Uploaded files are reachable by anyone who has the file's exact address, without logging in, much as on Discord. Keep that in mind before you share passwords or customer data as files.

10. Voice and video

Select a voice channel to join it. The bar at the bottom has the microphone, Turn on camera and Share your screen, and Disconnect leaves the channel. Everyone in the channel hears and sees each other, through LiveKit on your server.

In our test, two browsers called each other with sound and video over UDP port 7892, and over TCP port 7891 when UDP was blocked, with no lost packets. If a call does not connect, see Troubleshooting.

The desktop and mobile apps work too: when they ask for an instance, enter chat.example.com. We only tested the web app.

11. Use Fluxer in Swedish

Fluxer is translated into Swedish and shows Swedish to anyone whose browser is set to it. To choose it by hand, open the settings with the gear icon next to your name, then Language > Interface language, and pick Svenska. Emails from Fluxer, such as password resets, follow each person's language.

12. Email

Fluxer sends email to confirm new addresses and to reset passwords. Without email set up:

  • the sign-in page has no Forgot your password? link, and Send Password Reset for a user in the admin dashboard also sends an email, so nobody can reset a forgotten password;
  • addresses are accepted without confirmation.

If you will not set up email, choose FLUXER_ACCOUNT_IDENTITY=username in step 3 before the first account exists: people then sign in with a username and get a recovery key for a forgotten password, and an administrator can create a reset link for them. We did not test that.

Store the SMTP password of your email account in secrets.env, as root:

umask 077
printf 'FLUXER_EMAIL_SMTP_PASSWORD=%s\n' 'the-smtp-password' >> /home/fluxer/fluxer/secrets.env
chown fluxer:fluxer /home/fluxer/fluxer/secrets.env

Add these lines to /home/fluxer/fluxer/fluxer.env, with your own server, account and sender address:

FLUXER_EMAIL_ENABLED=true
FLUXER_EMAIL_PROVIDER=smtp
FLUXER_EMAIL_FROM_EMAIL=chat@example.com
FLUXER_EMAIL_SMTP_HOST=mail.example.com
FLUXER_EMAIL_SMTP_PORT=587
FLUXER_EMAIL_SMTP_USERNAME=chat@example.com
FLUXER_EMAIL_SMTP_TLS_MODE=starttls

Compose reads both files at container start, so recreate the two services that send email:

runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose up -d api worker'

Port 587 with starttls encrypts the connection before the login; for port 465, use implicit. Once email is on, Forgot your password? appears when signing in. In our test, the reset email arrived in the person's language, and its link set a new password and signed out their other sessions. We sent it to a test mail server on the server itself, without encryption, so the provider settings above were not tested.

13. Outside services

We captured the server's DNS lookups and outgoing connections while Fluxer started, while two people wrote, uploaded files and held a video call, and while it sat idle for 25 minutes. Fluxer sent no usage data and made no update checks. What we saw:

  • When someone posts a link, the server fetches the page to show a preview, so the linked site sees your server's address. In our capture, a link to www.debian.org caused a lookup and a connection to it.
  • While Fluxer restarted, the names of its own containers, such as nats, were looked up at the server's DNS resolver for a few seconds, until the containers were back.

Other services are off until you turn them on:

  • Mobile push: the official Android and iOS apps get notifications only through Fluxer's push relay, run by Fluxer, which hands them to Apple and Google. It is used only after you accept its privacy notice, in the setup or in the admin dashboard. Without it, the mobile apps get no notifications when closed. Browsers use their own push service, such as Google's for Chrome, once a person turns notifications on.
  • GIF search needs a key from Klipy, and YouTube previews a YouTube Data API key, both in the admin dashboard.
  • Fluxer can check passwords against the Have I Been Pwned list and block links and files from public blocklists. Both are off on a self-hosted instance.

Fluxer's own setup has LiveKit ask Google's STUN servers for the server's address when it starts; node_ip in livekit.yaml replaces that. The images come from GitHub's registry, ghcr.io, and Docker Hub, which Docker contacts to update them.

14. Back up

As root:

umask 077
mkdir -p /root/backup
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose exec -T postgres pg_dump -U fluxer -d fluxer --format=custom > fluxer.dump'
cp /home/fluxer/fluxer/fluxer.dump /root/backup/fluxer.dump
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose stop'
tar -czf /root/backup/fluxer.tar.gz -C /home/fluxer fluxer
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose start'

That saves what Fluxer's own backup advice asks for, and a little more:

  • fluxer.dump has every account, community, message and setting. The dump runs while Fluxer keeps working.
  • The archive has the four data directories with the uploaded files, avatars and images. Valkey and NATS hold queued work, such as files waiting to be deleted, and Meilisearch the search index, which is slow to rebuild. They are copied with Fluxer stopped, for about a minute.
  • secrets.env has every key from step 2, in plain text: without them, Fluxer cannot use the restored data.
  • The archive also has fluxer.env, garage.toml, livekit.yaml, Caddyfile.edge and compose.yaml.

Copy /root/backup to another machine, for example with restic, and keep it private.

To restore, as root, with the backup in /root/backup. On a new server, first do step 1, then tar -xzf /root/backup/fluxer.tar.gz -C /home/fluxer instead of steps 2 to 4, and change node_ip in livekit.yaml if the server's address is new. Then:

runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose down'
cp /root/backup/fluxer.dump /home/fluxer/fluxer/fluxer.dump
rm -rf /home/fluxer/fluxer/data
tar -xzf /root/backup/fluxer.tar.gz -C /home/fluxer
chown -R fluxer:fluxer /home/fluxer/fluxer
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose up -d postgres'
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose exec -T postgres pg_restore -U fluxer -d fluxer --no-owner < fluxer.dump'
runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose up -d'

docker compose down deletes the instance's current data directories, so run the backup first. On a new server, the first lines complain about files that do not exist yet, which is fine. Starting PostgreSQL on its own gives it an empty database, which the dump fills before Fluxer starts. On a new server, finish with step 6 and the update timer from step 5.

In our test, the backup of one instance was restored into a newly installed one, and every account, community, role, message, direct message, file and search result came back. A second backup was restored the new-server way, under a newly created fluxer user, and people could log in and read and download everything again.

15. Update

The weekly timer from step 5 runs docker compose pull and docker compose up -d, which checks for new images of every service and recreates those that changed. Fluxer publishes new images several times a day under v1, and updates its database by itself when it starts. To update now:

runuser -u fluxer -- env HOME=/home/fluxer XDG_RUNTIME_DIR=/run/user/$uid \
  DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
  bash -lc 'cd /home/fluxer/fluxer && docker compose pull && docker compose up -d'

Before larger updates, read the release notes on Fluxer's GitHub page and take a backup. To hold a version, replace v1 with a release tag, such as 2026.1014.3120 for the API, and change it when you want to update; every Fluxer image has its own release numbers. Fluxer's setup moves PostgreSQL to a new major version only by hand, through a dump and restore, which its documentation describes.

Troubleshooting

A service does not start. docker compose ps and docker compose logs <service> from /home/fluxer/fluxer show why.

The setup asks for a token you no longer have. Look it up again with the docker compose logs api command from step 5. Fluxer logs it once, on the first start.

A call connects, but nobody hears or sees anyone. Ports 7891 and 7892 cannot be reached. Check ufw status for the rules from step 1, and that node_ip in livekit.yaml is your server's IPv4 address. docker compose logs livekit shows the calls.

Uploads fail. docker compose logs media-proxy shows the error. If Garage refuses the key, compare docker compose exec garage /garage key info fluxer with secrets.env. FLUXER_S3_REGION must be garage.

Run it on your own server

SSD RAID 1 · ECC DDR4 · 10 Gbit

VC-P Alloy

€8.99/mo

vCPU
2
Memory
8 GB
Storage
60 GB
Transfer
10 TB
Performance
SSD · RAID 1
  • Full root access
  • Native /64 IPv6
  • RAID-protected storage
  • Malmö, Sweden
  • Month to month, no lock-in
  • 7-day money-back guarantee

Related comparisons and alternatives

All guides