# Self-host Windmill

> Turn scripts in Python, TypeScript, Go, and SQL into webhooks, workflows, and internal UIs.

- Page: https://levelrail.com/templates/windmill/
- JSON: https://levelrail.com/templates/windmill.json
- Category: Automation
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/windmill-labs/windmill
- Upstream docs: https://www.windmill.dev/docs

## Requirements
- Memory: about 2 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | 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/logs; windmill_worker_cache -> /tmp/windmill/cache |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| windmill | BASE_URL | preset |
| windmill | DATABASE_URL | generated |
| windmill | MODE | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/windmill/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 Windmill on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id windmill for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, ghcr.io/windmill-labs/windmill:1.365.0 is what you deploy there.

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