---
title: Run with Docker
description: >-
  Run the backend and dashboard on one machine. It uses SQLite for records and
  Docker volumes for artwork and tile history. The commands below run the latest
  published images.
---

# Run with Docker

Run the backend and dashboard on one machine. It uses SQLite for records and Docker volumes for artwork and tile history.

The commands below run the latest published images. The repository provides the Compose files and example settings, so you do not need a GitHub fork.

## Requirements

Install Git and [Docker with the Compose plugin](https://docs.docker.com/compose/install/). On macOS or Windows, start Docker Desktop before continuing.

Check that Git and Docker Compose are installed.

~~~sh
git --version
docker compose version
~~~

## 1. Download Caelestis

~~~sh
git clone https://github.com/mia-cx/Caelestis.git
cd Caelestis
cp .env.example .env
~~~

Run the remaining commands from this directory.

## 2. Configure the server

Open `.env` and configure the credentials, display name and season.

| Variable | Value |
| --- | --- |
| `ADMIN_TOKEN` | A private token for administrator access. |
| `CAELESTIS_READ_TOKEN` | A different private token for the dashboard. |
| `SERVER_NAME` | The name people should see. |
| `SEASON` | The Wplace season whose canvas you are using. |

Generate a separate value for each token.

~~~sh
openssl rand -hex 32
openssl rand -hex 32
~~~

Copy the first result into `ADMIN_TOKEN` and the second into `CAELESTIS_READ_TOKEN`. Keep `.env` out of Git.

On first startup, the backend registers the dashboard token as read-only. Do not give the frontend your administrator token.

## 3. Start the containers

~~~sh
docker compose up -d --wait
docker compose ps
~~~

Check that both containers are healthy. Inspect the logs if either fails.

~~~sh
docker compose logs --tail=100 backend frontend
~~~

## 4. Open the dashboard

Open [http://localhost:3000](http://localhost:3000) on the same machine. An empty server shows **No templates yet**.

![An empty Caelestis dashboard showing No templates yet.](https://caelest.is/docs/images/dashboard/empty-server.png)

Import artwork through an administrator connection in the Wplace panel. Published templates then appear on the dashboard.

## Connect from Wplace

Open **Settings** in Caelestis on Wplace.

![The Settings gear in the Caelestis panel.](https://caelest.is/docs/images/settings/connection-open-settings.png)

Enter `http://localhost:3000` and click **Add**. For a server on another machine, use its public HTTPS address instead.

![The local server address beside the Add button.](https://caelest.is/docs/images/settings/connection-add-local-address.png)

Expand the server if needed. Paste a token from this server and click **Connect**. Use your administrator token for setup. Create **Report** tokens for painters.

![The token field and Connect button. The masked value is an example.](https://caelest.is/docs/images/settings/connection-enter-token.png)

See [Authentication and tokens](https://caelest.is/docs/run-a-server/authentication-and-tokens.md) for creating those tokens.

## Ports and volumes

| Setting | Default |
| --- | --- |
| Host address | `127.0.0.1`, accessible only from this machine |
| Host port | `3000`, set by `CAELESTIS_HTTP_PORT` |
| `data` volume | Backend database and local state, mounted at `/data` |
| `objects` volume | Artwork and tile objects, mounted at `/objects` in both containers |

The images run as UID/GID `1000`. If you replace named volumes with host directories, make them writable by that user.

## Stop or update

~~~sh
docker compose down
~~~

This keeps the data volumes. Adding `--volumes` deletes them.

To update to the latest images, pull them and recreate the containers.

~~~sh
docker compose pull
docker compose up -d --wait
~~~

Before an update, follow [Deployment and upgrades](https://caelest.is/docs/run-a-server/deployment-and-upgrades.md). For another database or S3 storage, choose a [Docker Compose stack](https://caelest.is/docs/run-a-server/docker-reference/docker-compose-stacks.md).
