Installation
This page covers the complete self-hosted installation. Read the Self-Hosted Quick Start first for the deployment overview.
Requirements
- A Linux server with
curl - A server with at least 2 GB RAM (4 GB recommended for Chromium sessions)
The installer checks for Docker Engine and Docker Compose v2. If Docker is missing, it installs the supported Docker version automatically. A domain name, reverse proxy, and HTTPS are only needed when the instance must be publicly accessible.
The automated installation uses SQLite and is intended for a single-host deployment. Use PostgreSQL when you need higher write concurrency, horizontal scaling, or managed database features. See Database before choosing a backend.
Quick install
curl -fsSL https://puppetflow.com/install.sh | bashThe installer:
- verifies Docker Engine and Docker Compose v2
- creates a
puppetflowdirectory in the current directory - downloads the production SQLite Compose file
- creates
.envfrom the minimal template - generates
APP_KEY,BROWSER_STREAM_SECRET, andPINOKIO_TOKEN - asks whether to run
docker compose up -d
If you choose not to start immediately:
cd puppetflow
docker compose up -dThe application is available on http://localhost:8000. For a public installation, edit APP_URL, BROWSER_STREAM_PUBLIC_URL, and BROWSER_STREAM_ALLOWED_ORIGINS in puppetflow/.env before starting, then configure HTTPS.
Manual PostgreSQL installation
Save the PostgreSQL production example from Docker Compose as docker-compose.yml. Copy the minimal .env next to it, switch its database block to PostgreSQL, and configure the required secrets.
docker compose pull
docker compose up -dFirst-time setup
The automated SQLite stack runs a one-shot migrate service before the application starts. For a manual stack without a migration service, run:
docker compose exec app php artisan migrate --forceOpen the application in your browser. When no users exist, the login page redirects to registration and the first registered user becomes the instance administrator.
Services overview
The production stack includes:
| Service | Description | Port |
|---|---|---|
| app | Puppetflow application | Host port 8000 |
| queue-1, queue-2 | Flow workers for the indexes configured by APP_QUEUES_COUNTER | - |
| scheduler | Cron scheduler for triggers | - |
| pinokio | Chromium gateway | 3000 |
| stream-server | Live browser stream service | 6080 |
| mailbox-smtp | SMTP server for receiving emails | Host port 2525 |
| redis | Ephemeral browser stream coordination | 6379 |
| postgres | PostgreSQL database | 5432 |
| init-volumes | One-shot volume initialization | - |
| migrate | One-shot database migration | - |
Updating
docker compose pull
docker compose up -d
docker compose exec app php artisan migrate --forceCustom domain and HTTPS
For production, place a reverse proxy such as Nginx, Caddy, or Traefik in front of the application and browser stream service.
Configure:
APP_URLwith the public application originBROWSER_STREAM_PUBLIC_URLwith the public browser-stream originBROWSER_STREAM_ALLOWED_ORIGINSwith the application origin
Email receiving
To receive emails on custom domains:
- Set up a mailbox integration.
- Point your domain's MX record to the server's public IP.
- Set
MAILBOX_SMTP_PORT=25in.envand ensure host port 25 is publicly accessible.
Received emails become available to mailbox watchers and flows.
