# Self-host marimo

> A reactive Python notebook that is reproducible, git-friendly, and shareable as an app.

- Page: https://levelrail.com/templates/marimo/
- JSON: https://levelrail.com/templates/marimo.json
- Category: Developer Tools
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/marimo-team/marimo
- Upstream docs: https://marimo.io/

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: latest-sql

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| marimo | ghcr.io/marimo-team/marimo | latest-sql | 8080 | marimo_data -> /app |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| marimo | MARIMO_TOKEN_PASSWORD | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy marimo --name my-marimo
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/marimo/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy marimo on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for marimo, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image ghcr.io/marimo-team/marimo:latest-sql is what you deploy there.

Self-host marimo, marimo docker compose file, deploy marimo on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
