Skip to content

Docker image

The community server is published as a Docker image for container environments of your own. Most people want the install guide instead: its bundle runs this same image with Postgres, Caddy and LiveKit already wired up.

Image karolrzotki/tusile-community-server
Tags latest, and one per app release (for example 0.7.0) to pin the server to the app version it matches
Platform linux/amd64 only. An ARM host can run it only under emulation, which is slow.
Listens on port 9090 (the PORT variable)
Terminal window
docker pull karolrzotki/tusile-community-server:latest

You provide Postgres and LiveKit yourself. This example is for a Cloud server:

Terminal window
docker run -d --name tusile-community \
-p 9090:9090 \
-e DATABASE_URL="postgres://user:pass@db:5432/tusile_community?sslmode=disable" \
-e CORE_SERVER_URL="https://api.tusile.com" \
-e SERVER_TOKEN="your_server_token" \
-e COMMUNITY_PUBLIC_URL="https://community.example.com" \
-e LIVEKIT_API_KEY="your_livekit_key" \
-e LIVEKIT_API_SECRET="your_livekit_secret" \
-v tusile-community-uploads:/app/uploads \
-v tusile-community-data:/app/data \
karolrzotki/tusile-community-server:latest

For an Offgrid server, replace CORE_SERVER_URL and SERVER_TOKEN with -e OFFGRID_MODE=true.

Make the LiveKit pair with docker run --rm livekit/livekit-server generate-keys; there is no default. Which variables are required in which mode, and every optional one, is in the configuration reference. Two are worth knowing when you run the image on its own:

  • LIVEKIT_URL returns an explicit LiveKit endpoint to clients, instead of one built from COMMUNITY_PUBLIC_URL and LIVEKIT_PORT.
  • LIVEKIT_API_URL is LiveKit’s address as seen from this container (the bundle uses http://livekit:7880). Without it, server-side voice moderation is advisory only.
services:
community-server:
image: karolrzotki/tusile-community-server:latest
platform: linux/amd64
ports:
- "9090:9090"
environment:
DATABASE_URL: postgres://user:pass@postgres:5432/tusile_community?sslmode=disable
CORE_SERVER_URL: https://api.tusile.com
SERVER_TOKEN: ${SERVER_TOKEN}
COMMUNITY_PUBLIC_URL: https://community.example.com
LIVEKIT_API_KEY: ${LIVEKIT_API_KEY}
LIVEKIT_API_SECRET: ${LIVEKIT_API_SECRET}
volumes:
- community-uploads:/app/uploads
- community-data:/app/data
volumes:
community-uploads:
community-data:
Path in the container What it holds
/app/data The install ID, the Offgrid owner claim token and, on an Offgrid server, community_key, the signing key the server’s identity is derived from.
/app/uploads Uploaded files, when STORAGE_BACKEND=local.

The server runs database migrations itself on startup, so a new image needs no separate migration step.

With Compose:

Terminal window
docker compose pull community-server
docker compose up -d community-server

Without Compose, pull the new tag and recreate the container with the same variables and volumes:

Terminal window
docker pull karolrzotki/tusile-community-server:latest
docker stop tusile-community
docker rm tusile-community
# then run your docker run command again, with the same variables and volumes

Back up first. The rest of the upgrade advice is in Upgrades.