English
Get started
← All templates

Deploy marimo on Pethost in one click

A reactive Python notebook: cells rerun when what they depend on changes, and a notebook is a plain .py file

What happens

  1. You sign in to Pethost or make an account, with a passkey, GitHub or Google.
  2. No machine yet? You pick a plan, and we prepare one for you. The link waits in your browser until it is ready.
  3. New project opens at the app. You fill in what it asks for and click Create project: Admin password.
  4. In a minute or two the app is live at its own address with HTTPS. Its secrets are made for it at random, and its data is in the nightly backup.
  5. It is a project like any other: its compose.yaml, its .env, its logs and a terminal are in the panel, and your agent can change it, roll it back or restore it.

First steps

Open the address and enter the admin password you gave. Notebooks are kept in /app/data, which survives a redeploy.

What it runs

The template is this compose.yaml and the variables it writes into the project’s .env. Pethost runs the file as it is written.

services:
  marimo:
    image: ghcr.io/marimo-team/marimo:0.25.1
    restart: unless-stopped
    environment:
      MARIMO_PASSWORD: ${ADMIN_PASSWORD}
    command:
      - sh
      - -c
      - exec marimo edit --headless --host 0.0.0.0 -p 8080 --token-password "$$MARIMO_PASSWORD" /app/data
    volumes:
      - notebooks:/app/data

volumes:
  notebooks: