Self-host Windmill with Docker
Turn scripts in Python, TypeScript, Go, and SQL into webhooks, workflows, and internal UIs.
This page describes the Levelrail template for Windmill (Automation). It deploys the services below as one Docker Compose app on your own server.
Project site: https://www.windmill.dev/docs.Recommended memory: about 2048 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
db | postgres:16-alpine | none | windmill_db_data -> /var/lib/postgresql/data |
windmill | ghcr.io/windmill-labs/windmill:1.365.0 | 8000 | windmill_worker_logs -> /tmp/windmill/logswindmill_worker_cache -> /tmp/windmill/cache |
Environment variables
| Service | Variable | Value |
|---|---|---|
db | POSTGRES_DB | Preset in the template |
db | POSTGRES_PASSWORD | Generated at deploy |
db | POSTGRES_USER | Preset in the template |
windmill | BASE_URL | Preset in the template |
windmill | DATABASE_URL | Generated at deploy |
windmill | MODE | Preset in the template |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy Windmill with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select Windmill. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy windmill --name my-windmillSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Automation templates
All templates are listed in the self-host gallery.