---
title: How to Deploy Fluxer - An Open Source Instant Messaging and VoIP Platform
url: https://docs.vultr.com/how-to-deploy-fluxer-an-open-source-instant-messaging-and-voip-platform
description: Deploy Fluxer on a Linux server using Docker Compose with PostgreSQL, Valkey, NATS, Meilisearch, SeaweedFS, LiveKit, and Caddy for a messaging platform.
publish_date: 2026-09-09T03:18:12.509140Z
last_updated: 2026-10-21T22:19:28.259000Z
author: Hitesh Jethva
header_image: https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2658/3ff1c7f9-1996-4ffa-960d-a71b1e611258.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

[Fluxer](https://github.com/fluxerapp/fluxer) is a free and open-source instant messaging and VoIP platform for friends, groups, and communities. It provides messaging, communities, text and voice channels, media uploads, search, presence, and voice and video communication from a web-based interface. Fluxer provides an official Docker Compose stack that runs the web application, API, gateway, administration dashboard, messaging services, media services, PostgreSQL, Valkey, NATS, Meilisearch, SeaweedFS, LiveKit, and Caddy.

This article explains how to deploy Fluxer on a Linux server using Docker Compose, expose it over HTTPS with Caddy as a reverse proxy, and create the owner account.

## Prerequisites

Before you begin, you need to:

* Have access to a [Linux-based server](https://docs.vultr.com/products/compute/instances/cloud-compute/provisioning) (with at least 4 CPU cores and 8 GB of RAM) as a [non-root user with sudo privileges](https://docs.vultr.com/limited-user-login).
* Install [Docker and Docker Compose](https://docs.vultr.com/how-to-install-docker-on-ubuntu-26-04).
* Configure a [domain A record](https://docs.vultr.com/products/network/dns/management/manage-records) pointing to your server's IP address (for example, `fluxer.example.com`).

## Set Up the Directory Structure and Environment Variables

This section covers creating a working directory for Fluxer, downloading the official Docker Compose files, and configuring the environment variables required by the application.

1. Create a new directory for Fluxer.

    ```console
    $ mkdir ~/fluxer
    ```

1. Navigate into the `fluxer` directory.

    ```console
    $ cd ~/fluxer
    ```

1. Download the official Docker Compose manifest.

    ```console
    $ curl -fsSLO https://raw.githubusercontent.com/fluxerapp/fluxer/3b1eb56713d59181823df284b9646c890d2a3cba/deploy/self-hosting/docker-compose.yml
    ```

1. Download the default Caddy configuration.

    ```console
    $ curl -fsSLO https://raw.githubusercontent.com/fluxerapp/fluxer/3b1eb56713d59181823df284b9646c890d2a3cba/deploy/self-hosting/Caddyfile
    ```

1. Download the LiveKit configuration.

    ```console
    $ curl -fsSLO https://raw.githubusercontent.com/fluxerapp/fluxer/3b1eb56713d59181823df284b9646c890d2a3cba/deploy/self-hosting/livekit.yaml
    ```

1. Download the example environment file and save it as `.env`.

    ```console
    $ curl -fsSL https://raw.githubusercontent.com/fluxerapp/fluxer/3b1eb56713d59181823df284b9646c890d2a3cba/deploy/self-hosting/.env.example -o .env
    ```

    The Fluxer directory now contains the following files:

    ```
    Caddyfile
    docker-compose.yml
    livekit.yaml
    .env
    ```

    These files define the Fluxer containers, public routing, voice services, and application configuration.

1. Open the `.env` file.

    ```console
    $ nano .env
    ```

    Set the following variables at the beginning of the file.

    ```ini
    FLUXER_DOMAIN=fluxer.example.com
    FLUXER_CADDY_SITE_ADDRESS=fluxer.example.com
    FLUXER_VAPID_EMAIL=admin@example.com
    ```

    Replace:

    * `fluxer.example.com` with your Fluxer domain.
    * `admin@example.com` with your email address.

    Save and close the file.

    The `FLUXER_DOMAIN` variable defines the public Fluxer address. `FLUXER_CADDY_SITE_ADDRESS` specifies the hostname Caddy serves.

### Generate Fluxer Secrets

Fluxer requires separate secrets for PostgreSQL, Meilisearch, object storage, internal RPC communication, the administration dashboard, media uploads, and LiveKit.

1. Run the following loop to generate random hexadecimal values and insert them into `.env`.

    ```console
    $ for key in POSTGRES_PASSWORD MEILI_MASTER_KEY FLUXER_S3_SECRET_KEY \
        FLUXER_SUDO_MODE_SECRET FLUXER_CONNECTION_INITIATION_SECRET \
        FLUXER_GATEWAY_RPC_AUTH_TOKEN FLUXER_MEDIA_PROXY_SECRET_KEY \
        FLUXER_ADMIN_SECRET_KEY_BASE FLUXER_ADMIN_OAUTH_CLIENT_SECRET \
        LIVEKIT_API_SECRET; do
        sed -i "s|^$key=.*|$key=$(openssl rand -hex 32)|" .env
    done
    ```

1. Generate the media upload relay secret in Base64 format and insert it into the `.env` file.

    ```console
    $ sed -i "s|^FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64=.*|FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64=$(openssl rand -base64 32)|" .env
    ```

### Generate VAPID Keys

Fluxer uses VAPID keys for web push notifications.

1. Add your user to the `docker` group to run Docker commands without `sudo`.

    ```console
    $ sudo usermod -aG docker $USER
    ```

1. Apply the group change to the current session.

    ```console
    $ newgrp docker
    ```

1. Generate a VAPID key pair using a temporary Node.js container.

    ```console
    $ docker run --rm node:24-alpine npx --yes web-push generate-vapid-keys --json
    ```

    Your output contains two values:

    * `publicKey`: VAPID public key.
    * `privateKey`: VAPID private key.

    Copy the value displayed after `publicKey` and `privateKey`.

1. Add the public key to `.env`.

    ```console
    $ sed -i 's|^FLUXER_VAPID_PUBLIC_KEY=.*|FLUXER_VAPID_PUBLIC_KEY=YOUR_VAPID_PUBLIC_KEY|' .env
    ```

    Replace `YOUR_VAPID_PUBLIC_KEY` with the `publicKey` value from your output.

1. Add the private key to `.env`.

    ```console
    $ sed -i 's|^FLUXER_VAPID_PRIVATE_KEY=.*|FLUXER_VAPID_PRIVATE_KEY=YOUR_VAPID_PRIVATE_KEY|' .env
    ```

    Replace `YOUR_VAPID_PRIVATE_KEY` with the `privateKey` value from your output.

1. Restrict access to the `.env` file so that only your account can read or modify it.

    ```console
    $ chmod 600 .env
    ```

    The `.env` file contains the credentials and secrets for your Fluxer deployment.

1. Verify the public Fluxer settings.

    ```console
    $ grep -E '^(FLUXER_DOMAIN|FLUXER_CADDY_SITE_ADDRESS|FLUXER_VAPID_EMAIL)=' .env
    ```

    Output:

    ```
    FLUXER_DOMAIN=fluxer.example.com
    FLUXER_CADDY_SITE_ADDRESS=fluxer.example.com
    FLUXER_VAPID_EMAIL=admin@example.com
    ```

## Deploy Fluxer Containers

This section covers validating the Docker Compose configuration, deploying the Fluxer containers, and verifying that all services initialize correctly.

1. Navigate to the Fluxer directory.

    ```console
    $ cd ~/fluxer
    ```

1. Validate the Docker Compose configuration.

    ```console
    $ docker compose config --quiet
    ```

    The command returns no output when the Compose configuration is valid.

1. Download the Fluxer container images.

    ```console
    $ docker compose pull
    ```

    Docker downloads the images for the Fluxer application and its supporting services.

1. Create and start the containers.

    ```console
    $ docker compose up -d
    ```

    The first deployment can take several minutes while Docker downloads images and Fluxer initializes its application, database, search, object storage, and messaging services.

1. Verify that all services are running.

    ```console
    $ docker compose ps -a
    ```

    Every service should show a status of `Up`, and services with a health check also show `(healthy)` once it passes.

    The `seaweedfs-init` container exits after creating the required object-storage buckets. An exit code of `0` for this container is expected.

1. View the Fluxer API logs.

    ```console
    $ docker compose logs -f api
    ```

    Press :key_ctrl: + :key_c: after the API completes its startup process.

1. View recent logs from all Fluxer services.

    ```console
    $ docker compose logs --tail=100
    ```

1. If a container fails to start, view its logs using the service name.

    ```console
    $ docker compose logs SERVICE_NAME
    ```

    Replace `SERVICE_NAME` with the failed service, such as `api`, `gateway`, or `livekit`.

## Configure Caddy as a Reverse Proxy to Expose Fluxer

Fluxer's official Docker Compose stack includes Caddy as the reverse proxy. Caddy listens on ports `80` and `443`, automatically provisions HTTPS certificates for the hostname defined by `FLUXER_CADDY_SITE_ADDRESS`, and forwards requests to the appropriate Fluxer containers. The API, gateway, media service, administration dashboard, LiveKit signaling, and web application are available through the same public hostname.

1. Validate the Caddy configuration.

    ```console
    $ docker compose exec caddy caddy validate --config /etc/caddy/Caddyfile
    ```

    A successful validation indicates that Caddy can load the configuration.

1. View the Caddy logs.

    ```console
    $ docker compose logs --tail=100 caddy
    ```

    Caddy automatically requests and renews TLS certificates when `fluxer.example.com` resolves to your server and ports `80` and `443` are publicly reachable.

## Access and Configure Fluxer

This section covers accessing the Fluxer web application, creating the initial owner account, and reviewing the main instance settings.

1. Open the URL in your web browser.

    ```
    https://fluxer.example.com
    ```

1. The **Fluxer Set Up Welcome** page should appear. Select your preferred language from the **Language** menu and click **Next** to continue.

    ![Fluxer setup page](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2658/e6f88fd3-8685-46ae-97d1-1e0d56fef25f.png)

1. Choose a theme for the Fluxer Admin interface and click **Next** to continue.

1. The **Create the administrator account** page appears. Fluxer displays a message that the instance does not have any accounts yet and that the first account you create automatically becomes the administrator. Click **Next** to continue.

1. Configure the administrator account. Enter all required information and click **Next** to create an account.

1. Open a new tab in your web browser and access the Fluxer administration dashboard.

    ```
    https://fluxer.example.com/admin
    ```

1. Log in using the Fluxer account you created.

1. Review the requested permissions required by the administration application. Keep the required scopes enabled and click **Authorize**.

1. Fluxer redirects you to the Admin dashboard after authorization. The dashboard displays administrative tools in the left navigation menu.

    ![Fluxer admin dashboard](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2658/78847a5a-21fe-494f-816d-38f2c1ca2ca4.png)

    Your Fluxer administrator account is now configured and ready to manage users, guilds, applications, moderation settings, and other instance-level features.

## Conclusion

You have deployed Fluxer using Docker Compose and exposed the application through Caddy. Your instance now supports messaging, voice and video channels, and media sharing for your users. For more information, see the [official Fluxer documentation](https://docs.fluxer.app/).
