Try Mishka CMS with the demo image
v0.0.3
The Mishka CMS demo image lets you try the CMS without installing Elixir. This guide pulls the image, starts it with PostgreSQL 18 through Docker Compose, opens the install wizard with a setup token and checks that the image came from the release workflow. You finish with a demo running at http://localhost:4000.
Before you begin
- Docker with Docker Compose, and a terminal with
openssl. - An internet connection. The install wizard downloads the UI kits from GitHub, so the container needs access to it.
- The GitHub CLI (
gh), if you want to verify the image.
The image is built for linux/amd64 and linux/arm64, so it runs on an Intel or AMD machine and on Apple silicon.
Pull the image
Every release has an image tagged with its version. Pull the one you want to try:
docker pull ghcr.io/mishka-group/mishka_cms-demo:0.0.3Keep the version in the tag instead of using latest. Your database belongs to that release, and a different tag needs a new database.
Get the Compose file
The repository holds a Compose file for the demo, examples/docker/demo-docker-compose.yml. Download it into an empty folder:
curl -O https://raw.githubusercontent.com/mishka-group/mishka_cms/master/examples/docker/demo-docker-compose.ymlThe file starts three services:
| Service | What it does |
|---|---|
db | PostgreSQL 18, with a volume for its data and a health check. |
migrate | Runs /app/bin/migrate once, creates the tables and exits. |
app | The demo image. It listens on port 4000 and keeps Mnesia, uploaded files and caches in a volume at /app/mishka_data. It starts after migrate has succeeded. |
The file pins the image tag of its release. Change the tag in both places if you pulled another one.
Make the secrets
The file needs three secrets and does not hold them. Make them once, in the folder that holds the file, and keep them in a file named .env. Docker Compose reads it on every command.
printf 'SECRET_KEY_BASE=%s\nTOKEN_SIGNING_SECRET=%s\nMISHKA_SETUP_TOKEN=%s\n' \
"$(openssl rand -base64 64 | tr -d '\n')" "$(openssl rand -base64 32 | tr -d '\n')" \
"$(openssl rand -hex 16)" > .envSECRET_KEY_BASEsigns and encrypts cookies.TOKEN_SIGNING_SECRETsigns the tokens of the sign-in system.MISHKA_SETUP_TOKENis the key to the install wizard. The wizard refuses everyone without it.
Do not commit .env.
Start the demo
Start the services:
docker compose -f demo-docker-compose.yml upCompose starts the database, waits for it to be healthy, runs the migration and then starts the app. When the app is up, it listens on port 4000.
Open the install wizard
Open http://localhost:4000/install?token= followed by the value of MISHKA_SETUP_TOKEN from your .env file. A wrong token answers Invalid setup token.
The wizard creates the master admin and the first site. Follow Install Mishka CMS and sign in from the step that opens the setup wizard. For a demo on your own machine, write the domain as localhost.
Verify the image
The release workflow of the repository signs build provenance for each image and stores it in the registry next to the image. Check that the image you pulled was built by that workflow:
gh attestation verify oci://ghcr.io/mishka-group/mishka_cms-demo:0.0.3 --owner mishka-groupThe command succeeds when the image has provenance signed for a repository that the mishka-group account owns. It fails for an image that has none.
Stop or replace the demo
To stop the demo and keep its data, press Ctrl+C in the terminal that runs it. To remove the containers and both volumes, run:
docker compose -f demo-docker-compose.yml down -vRemove the volumes before you move to another tag. A newer demo cannot use the database of an older one.
Next steps
- Install Mishka CMS and sign in: the wizard step by step.
- Your first site: edit the starter pages: change the words on the home page.
- Deploy Mishka CMS to production: build your own image with your own migrations.