Deploy Windmill in one click
Scripts, flows and apps from Python, TypeScript, Go, SQL or Bash, run by workers on a schedule, a webhook or a button
A self-hosted alternative to Retool, Pipedream, and Temporal.
What is Windmill?
Windmill is an open-source developer platform for internal tools and background jobs, often run instead of Retool. You write a script in Python, TypeScript or one of many other languages, and Windmill reads its parameters to build a form for it; every script also gets its own webhook. Scripts chain into flows with retries, branches, loops, sleeps and approval steps, drawn in a low-code editor or written as YAML. Apps put a React or Svelte frontend on top.
People self-host it to keep their code, the secrets it uses and the logs of every run on a server they control, and to pay nothing per execution: the free Community Edition does not count them. Its limits lie elsewhere: 50 users, 10 of them on SSO, three workspaces, and job runs kept for 30 days at most. Audit logs and SAML need the paid Enterprise Edition. It suits teams that would rather write code than wire up blocks.
Hosting Windmill on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Windmill. You fill in what it asks for and click Create project: Email, Admin password.
- In a minute or two Windmill is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Windmill
Is Windmill free and open source?
Mostly. Its core is AGPLv3 and the Community Edition is free to use internally, but its Docker images also hold proprietary code, and selling it or running it as a managed service needs a commercial licence.
Windmill vs Retool: what is the difference?
Both build internal tools. Retool is closed source and starts from its UI builder; Windmill has an open-source core and starts from code: scripts become forms and endpoints, flows chain them with retries and approvals, and apps sit on top.
Windmill vs n8n: which one to choose?
Choose n8n to connect services with its ready-made integration nodes, and Windmill to run your own code with whatever packages it imports. Windmill's core is open source, while n8n is source-available under its Sustainable Use License.
Does Windmill have roles and permissions?
Yes. In a workspace a Developer writes scripts, flows and apps, an Operator runs them and manages schedules and triggers, and an admin sees and edits everything. Folders and groups share items with people as Viewer or Writer.
What is the default Windmill login?
A stock install lets anyone sign in as [email protected] with the password changeme. This template never exposes it: it creates your email and password as the superadmin and deletes [email protected] before Windmill answers on its port.
How much memory and disk does Windmill need?
Windmill is moderate: about 700 MB at rest, more while its workers run scripts, and cached packages grow the disk. On Pethost the Starter plan is enough for it, with room for other apps beside it.
Windmill Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: windmill_server (ghcr.io/windmill-labs/windmill:1.835.0), windmill_worker (ghcr.io/windmill-labs/windmill:1.835.0), windmill_worker_native (ghcr.io/windmill-labs/windmill:1.835.0), db (postgres:18).
Volumes, in the nightly backup: db_data, worker_dependency_cache, worker_logs.
services:
windmill_server:
image: ghcr.io/windmill-labs/windmill:1.835.0
restart: unless-stopped
environment:
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@db/windmill?sslmode=disable
MODE: server
BASE_URL: ${URL}
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
# A new Windmill signs anyone in as [email protected] / changeme. So, before it answers on its
# own port, it is started on one nobody reaches, the email and password asked are made its
# superadmin, and the stock account is deleted.
command:
- sh
- -c
- |
PORT=8001 windmill &
setup=$$!
node -e '
const base = "http://127.0.0.1:8001/api";
const json = { "Content-Type": "application/json" };
const login = (email, password) => fetch(base + "/auth/login", { method: "POST", headers: json, body: JSON.stringify({ email, password }) });
const replaceStock = async (token) => {
const auth = { ...json, Authorization: "Bearer " + token };
const account = { email: process.env.ADMIN_EMAIL, password: process.env.ADMIN_PASSWORD, super_admin: true, name: "Admin" };
await fetch(base + "/users/create", { method: "POST", headers: auth, body: JSON.stringify(account) });
const mine = await login(account.email, account.password);
if (!mine.ok) throw new Error("the new superadmin cannot sign in: " + (await mine.text()));
const gone = await fetch(base + "/users/delete/[email protected]", { method: "DELETE", headers: { Authorization: "Bearer " + (await mine.text()) } });
if (!gone.ok) throw new Error("the stock account stays: " + (await gone.text()));
};
const run = async () => {
for (let i = 0; i < 300; i++) {
try {
const stock = await login("[email protected]", "changeme");
if (stock.status === 400 || stock.status === 401) return;
if (stock.ok) return await replaceStock(await stock.text());
} catch (error) {
if (String(error).includes("Error:")) console.error(String(error));
}
await new Promise((done) => setTimeout(done, 1000));
}
process.exit(1);
};
run().catch((error) => { console.error(String(error)); process.exit(1); });
' || exit 1
kill $$setup
wait $$setup
exec windmill
volumes:
- worker_logs:/tmp/windmill/logs
depends_on:
db:
condition: service_healthy
windmill_worker:
image: ghcr.io/windmill-labs/windmill:1.835.0
restart: unless-stopped
environment:
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@db/windmill?sslmode=disable
MODE: worker
WORKER_GROUP: default
volumes:
- worker_dependency_cache:/tmp/windmill/cache
- worker_logs:/tmp/windmill/logs
depends_on:
db:
condition: service_healthy
# Runs the light "native" jobs (HTTP and SQL steps) in process.
windmill_worker_native:
image: ghcr.io/windmill-labs/windmill:1.835.0
restart: unless-stopped
environment:
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@db/windmill?sslmode=disable
MODE: worker
WORKER_GROUP: native
NATIVE_MODE: "true"
SLEEP_QUEUE: "200"
volumes:
- worker_logs:/tmp/windmill/logs
depends_on:
db:
condition: service_healthy
db:
image: postgres:18
restart: unless-stopped
shm_size: 1g
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: windmill
volumes:
- db_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
volumes:
db_data:
worker_dependency_cache:
worker_logs:
More in Automation
- n8nWorkflow automation with a visual editor
- JenkinsAn automation server for builds, tests and deploys
- Semaphore UIA web UI for Ansible, Terraform and other automation
- ActivepiecesAutomations and AI agents built from hundreds of pieces, with no code
- Node-REDLow-code flows that wire together APIs, devices and online services