Skip to content

Install Windmill and Receive Webhooks with Localtonet

Install and verify Windmill with Docker Compose, then use a Localtonet HTTP tunnel to receive webhooks, share the UI and test OAuth callbacks remotely.

Summary in your language
In this article 10 sections
Self-Hosting · Windmill · Localtonet

Connect a private workflow engine to external webhook senders

Windmill runs scripts and workflows on infrastructure you control. External webhook senders need a reachable HTTPS endpoint, even when that infrastructure lives behind a router or on a private network. This guide explains how to validate a Docker Compose deployment, connect it through Localtonet, test deliveries safely, and separate networking failures from workflow failures. Installation-specific details that are not established by the available Windmill documentation are identified explicitly rather than presented as verified production instructions.

🔒 Authenticate before public exposure 🌐 Public HTTPS access without inbound port forwarding ⚡ Verify locally, then test externally
Private Windmill instance connected through an HTTP tunnel to webhook senders, a remote teammate and an OAuth provider
The tunnel provides reachability. Windmill and any application gateway remain responsible for authorization and request handling.

Understand what the tunnel changes

Windmill is a code-first platform for workflows, apps, and AI agents. Its scripts can use languages including Python, TypeScript, Go, PHP, Bash, and SQL. Workers execute scripts, while flows describe dependencies between workflow steps. A private deployment can run scheduled or manually initiated work without accepting inbound internet connections.

Webhooks add an inbound dependency. A provider must deliver an HTTP request to your application, but its servers cannot reach your machine's localhost. A tunnel supplies a public endpoint and a route to the local service. It does not decide which scripts a caller may execute or whether an event is authentic.

📨 Webhook delivery A provider sends an event to a publicly reachable endpoint that passes the request to your local application.
👥 Remote collaboration Authorized colleagues can reach the browser interface, provided you deliberately expose it and maintain appropriate account controls.
🔑 Callback testing An external HTTPS address can support callback testing once the application and identity provider agree on the exact redirect URI.

With Localtonet, our client establishes an outbound connection to a relay server. An HTTP tunnel supplies a public HTTPS address that forwards to a local IP address and port reachable from that client. You do not need inbound router port forwarding, a public IP address, or VPN setup. Use this only on networks where you are authorized to publish the service.

The connection is available only while the selected device is connected and the tunnel is running. This matters for event delivery: a laptop sleeping during the night can interrupt the endpoint even though Windmill's database still exists on disk.

Prepare the host and define the scope

  • A machine you control with Docker and Docker Compose available.
  • Capacity for the application, database, workers, container images, and growing persistent data.
  • A production deployment configuration obtained through Windmill's current self-hosting instructions, not selected solely because a file exists in a repository.
  • Permission to administer the Windmill instance and create a harmless test script or flow.
  • A Localtonet account and a client device that can reach the application.
  • A webhook sender or test environment that can use the authentication required by your chosen endpoint.
  • A separate network, such as mobile data, for the external reachability test.

The terminal examples below use a POSIX-style shell and the modern docker compose command. They do not establish Windmill's minimum supported Docker version or resource requirements. Check that the tools are installed and that your user can communicate with the Docker daemon:

docker --version
docker compose version
docker info
Installation evidence boundary

The supplied Windmill material establishes the product's capabilities and repository file names, but does not contain the current production self-hosting procedure. It does not establish exact download commands, required environment values, the published port, initial account credentials, the external base URL setting, webhook API authentication, or the supported upgrade procedure. Consequently, this article cannot honestly provide a verified, self-contained fresh Windmill installation or a copy-and-paste Windmill API request. Complete the production installation using Windmill's current self-hosting instructions before continuing with public exposure. The checks below explain how to validate that deployment without guessing those missing details.

Do not infer subscription entitlements from the ability to register for Localtonet. Available tunnel choices, regions, and domain options must be checked in your current dashboard and plan.

Establish the correct Docker Compose deployment

Conceptual Docker Compose topology showing Windmill server, workers and PostgreSQL on one host
This conceptual topology separates the web application, job execution, and persistent database. It is not a version-specific list of Compose services.

The Windmill repository contains a docker-compose.yml, Caddyfile, .env, and application source directories. Their presence alone does not prove that the root Compose stack is the recommended production deployment. A repository may contain contributor tooling alongside deployment assets. Use the installation route linked by Windmill's self-hosting entry point to determine which files belong together.

Keep the chosen deployment files in a dedicated directory. Record the upstream revision or release and any local changes. Downloading unrelated files from different revisions can produce a configuration that parses successfully but fails at runtime because services disagree about environment variables, image versions, or proxy routes.

Review the configuration before starting it

Identify the web entry point, database storage, worker services, and any reverse proxy. If a proxy is included, determine whether it is the supported entry point for browser and API traffic. Pointing a tunnel directly at an internal application port can skip routes or behavior that the supplied proxy was intended to provide.

Before first initialization, replace documented example secrets using the project's prescribed configuration mechanism. Database credentials must remain consistent between the database and its clients. Changing a password in a Compose environment file after initialization does not necessarily change the password stored inside an existing database.

Also inspect published host ports. A mapping exposed on all interfaces may be reachable from your LAN independently of Localtonet. Where compatible with the deployment, binding the web entry point to host loopback is appropriate when the tunnel client runs on that same host. Do not publish the database simply to make the web interface reachable.

Validate and start the prepared stack

After you have obtained and configured the documented deployment, run these standard Compose commands from its directory:

docker compose config --quiet
docker compose config --services
docker compose up -d
docker compose ps
docker compose logs --tail=100

config --quiet checks whether Compose can resolve the configuration. It does not verify the application's credentials, production readiness, or security. up -d creates and starts the configured services in the background. Logs and container state then show whether startup progressed beyond configuration parsing.

Avoid posting a fully expanded Compose configuration publicly. Environment interpolation can reveal passwords and other sensitive values. Share only redacted errors when asking for help.

Complete first-run administration privately

Keep the public tunnel stopped while completing the first-run account procedure for the selected Windmill version. Replace any initial credentials, establish an administrator account under your control, and verify that unauthorized visitors cannot obtain privileged access through registration or invitations.

Sign out and sign back in before proceeding. A session that was created during bootstrap is not evidence that ordinary authentication works correctly. Create separate accounts for collaborators rather than sharing the administrator login.

Verify the application before exposing it

Verify from the same network location where the Localtonet client will run. If the client runs directly on the Docker host, host loopback can be the correct target. If it runs in another container, 127.0.0.1 refers to that container, not the Docker host. A client on a second machine needs an address reachable from that machine.

Check ports and HTTP behavior

Use docker compose ps to identify the published web entry point and compare it with the deployment configuration. Do not confuse the internal container port with the published host port. The retained screenshot later in this guide shows port 8000, but that is not evidence of Windmill's default port.

In the following diagnostic, replace the entire example URL with your verified local entry point:

LOCAL_URL='http://127.0.0.1:REPLACE_WITH_VERIFIED_HOST_PORT'
curl -sS -D - -o /dev/null "$LOCAL_URL/"

This sends a GET request and displays response headers without printing the body. A response proves that something is listening, not that the deployment is healthy. Confirm that the responding application is Windmill, then open the same address in a browser and test login.

Verify execution, not just the interface

Run a harmless script or flow locally. A working login page does not prove workers can execute jobs. Use a test with no external credentials, database writes, emails, payments, or other side effects. Record its input and expected result so the public test can be compared with a known local result.

Check container health where health checks are defined. A container marked “running” without a health check has not passed an application health test. Inspect logs for database connection errors, worker registration problems, or repeated restarts.

Publish the verified web entry point with Localtonet

Example Localtonet console displaying a connected device and an HTTP tunnel targeting port 8000
This retained example illustrates a connected device and tunnel. Its port 8000 is not a Windmill recommendation, and the interface may differ from your current dashboard.

Use an HTTP/s tunnel for the application's web entry point. The following follows our documented common tunnel lifecycle; it is not a claim that every client version displays identical fields or screens. Consult the HTTP tunnel documentation alongside your current dashboard.

1

Install and run the client

Run the Localtonet client on the Windmill host or another device that can reach the verified web entry point. Confirm local access from that device before continuing.

2

Authenticate and select the device

Use the device's AuthToken to identify the client that will run the tunnel. Keep this token private. It is not a Windmill API credential and must not be given to a webhook sender.

3

Select an available relay

Choose a relay server or region from the current product options. Do not copy an arbitrary server code from an old screenshot or another account.

4

Create the HTTP/s configuration

Set the local IP address and verified host port. HTTP tunnels support Random Sub Domain, Custom Sub Domain, or Custom Domain process types, subject to availability. Check current domain and DNS requirements before using a custom domain.

5

Start and test the tunnel

Press Start explicitly. Creating a configuration does not start it. Open the assigned HTTPS URL from a separate network and confirm that Windmill responds with the expected authentication behavior.

6

Stop or delete it when finished

Stop the tunnel after temporary testing, or delete the configuration when it is no longer needed. The public route depends on both a connected client and a running tunnel.

For a command-line reachability check, substitute your assigned URL:

PUBLIC_URL='https://REPLACE_WITH_ASSIGNED_HOST'
curl -sS -D - -o /dev/null "$PUBLIC_URL/"

Do not assume that a generated subdomain changes on every restart. Equally, do not assume that a custom name is available under your plan or guaranteed indefinitely. For ongoing integrations, verify the address lifecycle before registering it with external providers.

Test webhook delivery and public URL handling

Webhook or OAuth callback request passing through a public tunnel endpoint to local Windmill
The network path can be shared, but webhook authentication and OAuth redirect validation are different application responsibilities.

Configure the public origin before copying integration URLs

An application may construct absolute URLs from an externally configured base URL, proxy headers, request information, or a combination of these. The exact Windmill setting and its precedence are not established by the supplied documentation. Do not guess an environment variable or treat manually replacing a URL's hostname as a complete configuration procedure.

Before registering a webhook or OAuth integration, configure the external address using the current Windmill procedure for your version. Then obtain newly generated URLs and verify their scheme, hostname, port, and path. A browser successfully loading the UI through the tunnel does not prove that generated callbacks use the public origin.

For OAuth or SSO, register the exact callback URI emitted by the configured application. Check the redirect URI in the authorization request if the provider reports a mismatch. The provider's permitted localhost behavior, callback paths, and matching rules are integration-specific. If the public origin changes, update the application and every affected provider registration together.

Prepare a side-effect-free delivery test

Choose a script or flow that accepts simple test data and returns a recognizable result. The following is an example test payload, not a documented Windmill API request or guaranteed argument schema:

{
  "event_id": "localtonet-connectivity-test-001",
  "message": "hello from an external network"
}

The test handler should preserve the event identifier in its result so you can distinguish this delivery from other activity. It should not print secrets, call production APIs, or modify customer data.

Obtain the endpoint and request instructions for that particular deployed script, flow, or HTTP route from your installed Windmill version. Establish all of the following before sending:

  • The exact HTTP method and complete URL.
  • The expected content type and argument structure.
  • The credential type and where it must be supplied.
  • The minimum execution permissions needed by the caller.
  • Whether the endpoint returns an immediate result or acknowledges a queued job.

The available material does not establish those API details, so no guessed route, token query parameter, or bearer-token command is provided here. A webhook provider that cannot supply the required authentication is not compatible merely because it can reach the URL. It may require an authenticated adapter or a documented route configuration.

Compare delivery with execution

Send the harmless request using the application's documented request format, first locally where supported, then through the public endpoint from a separate network. Record the timestamp, HTTP status, response body, and any returned job identifier. Inspect Windmill's execution history for the matching test input and result.

A successful HTTP response can mean different things. An asynchronous endpoint may acknowledge acceptance before a worker finishes. A synchronous endpoint may wait for a result. Do not claim a specific success status or response format until it is confirmed for the selected endpoint.

If a run appears with the test identifier but fails inside the script, the request reached the application and execution began. Investigate argument validation, worker dependencies, resource permissions, and script logic. If no run appears, inspect authentication, route selection, request parsing, and server logs before attributing the failure to the tunnel.

Plan for retries and duplicates

Webhook senders have different retry policies. A timeout can occur after work was accepted, so replaying a failed-looking request may run it again. Use the provider's event identifier as an idempotency key when the workflow has side effects. Persist duplicate-detection state where concurrent executions can check it reliably; process memory alone is insufficient for durable deduplication.

Test duplicate delivery deliberately with a harmless event. For a production handler, define whether the duplicate should return a prior result, acknowledge without repeating work, or follow another documented policy. Do not enable automatic retries of an untested payment, email, or provisioning workflow.

Connectivity notifications are separate from application webhooks

Our platform-wide Token/Tunnel webhooks notify you when selected tokens or tunnels become Connected or Disconnected. They do not replace Windmill's inbound endpoints, prove a script succeeded, or provide a promised queue for missed events. See the Localtonet webhook documentation for connectivity monitoring.

Secure the instance before accepting real events

A workflow engine executes code and may hold powerful service credentials. Exposing its web entry point can expose both API routes and its administrative UI. An HTTP tunnel does not automatically restrict access to one webhook path.

Review the entire exposed surface

Before leaving the tunnel running, test the public address without an authenticated browser session. Confirm that protected functions remain protected, initial credentials are unusable, and registration cannot grant unintended access. If only a webhook should be public, use an appropriately configured application gateway or reverse proxy rather than assuming the tunnel filters paths.

  • Least privilege: separate administration, script authoring, and external execution permissions wherever the installed version supports them.
  • Sender authentication: use the endpoint's documented authentication. For provider signatures, validate according to the provider's specification before side effects, including raw-body handling and timestamp checks where required.
  • Secrets: keep Localtonet tokens, Windmill credentials, provider secrets, and database passwords out of repositories, screenshots, logs, and shared command histories.
  • Worker isolation: treat the ability to edit and execute scripts as code execution on your infrastructure. Avoid unnecessary host mounts, credentials, and access to sensitive networks.
  • Public registration: explicitly test the installed version's account creation and invitation behavior rather than assuming a secure default.
  • Updates: track deployed versions and review security and migration notes before changing images.

HTTPS provides the public transport endpoint; it is not proof of authorization. A secret-looking URL also needs careful handling, especially if it embeds credentials that could be stored in browser history or access logs.

Operate, back up, and upgrade deliberately

Stop and restart without deleting storage

Stop public delivery first when performing planned maintenance. These standard Compose commands stop and restart existing containers without intentionally deleting their volumes:

docker compose stop
docker compose start
docker compose ps

After restart, repeat the local HTTP check and a harmless execution test before restoring public traffic. A running web process alone does not establish that workers or the database are ready.

Protect persistent data

Identify the database's actual persistent storage and any other stateful mounts in the chosen deployment. Named volumes survive ordinary container replacement, but they do not protect against host loss, accidental deletion, or database corruption.

Use a database-consistent backup method appropriate to the deployed PostgreSQL version. Copying live database files without a consistency mechanism is not a reliable backup. Preserve deployment files and any separately managed secrets needed for recovery, using restricted access and secure storage.

A backup is not validated until it has been restored successfully to an isolated environment. Disable outbound integrations and inbound public access during restore testing so restored workflows cannot repeat production actions.

Avoid destructive cleanup

docker compose down -v can remove named volumes declared by the stack. Do not use it for routine maintenance. Volume pruning and deleting deployment directories can also destroy information needed for recovery.

Treat upgrades as application changes

The supplied material does not establish Windmill's official upgrade or rollback procedure. Do not substitute a generic image pull for release-specific migration guidance. Before upgrading, record current image versions, take a restorable backup, review the target release's instructions, and test the change on a disposable copy where practical.

Where the documented deployment uses refreshed image tags, pulling and recreating services is a common Compose mechanism, but database migrations may make simple image rollback unsafe. Preserve the complete pre-upgrade recovery state, not just an old image tag.

Locate the failure before changing configuration

SymptomLikely layerNext check
Containers repeatedly restartDeployment or databaseInspect Compose logs, environment consistency, volume permissions, and available host resources.
Local HTTP request is refusedListener or port mappingCompare the verified host port with Compose state and check whether the web entry point started.
Local access works, public access failsClient, tunnel, or target reachabilityCheck the selected device, connected state, Start state, target address, and access from the client's own network namespace.
Public request returns an application 401 or 403Authentication or authorizationCheck credential type, scope, expiration, and resource permissions. Confirm which component produced the response.
Public request returns 404 or 405Route or methodCompare the full URL and method with the installed application's endpoint instructions.
Webhook is accepted but no result appearsQueue or executionCheck whether the endpoint is asynchronous, then inspect worker availability and the returned job identifier.
A matching run failsScript or worker runtimeRead the run's error, arguments, and dependencies. Tunnel reachability is no longer the first suspect.
OAuth redirect mismatchExternal URL configurationCompare the application's actual redirect URI with the provider registration, including scheme, host, port, and path.
Duplicate side effectsRetry and idempotency logicCorrelate provider event identifiers and delivery attempts before resending anything.

HTTP status codes are clues, not complete diagnoses. A proxy and an application can both generate errors. Compare response bodies and timestamps with local logs and execution history. Redact credentials and personal information before sharing diagnostics.

Frequently asked questions

Which port should I use for Windmill?

Use the verified host port of the supported web entry point in your deployed configuration. The supplied evidence does not establish a default Windmill port. Port 8000 in the retained Localtonet screenshot is illustrative, not a configuration instruction.

Do I need router port forwarding?

No. Our client establishes an outbound relay connection. The client must be able to reach the local target and operate under your network's policies. The tunnel must also be started and remain connected.

Does a custom domain guarantee a permanent callback URL?

Do not assume a persistence guarantee from the process type alone. Check current availability, domain requirements, and address lifecycle. Maintain the configured public origin and provider registrations together if the address changes.

Can a webhook arrive while my laptop is asleep?

The tunnel cannot reach Windmill when its client is disconnected. Sender retries depend on the provider, and no durable event queue is promised by this tunnel workflow. Use an always-on host and an appropriate delivery strategy for important events.

Is an HTTP tunnel a private VPN?

No. This workflow publishes a web entry point at a public HTTPS address. Our separate VPN Manager provides private mesh networking. A public webhook sender generally needs a publicly reachable endpoint rather than access through your private mesh.

Connect a verified Windmill instance with Localtonet

Once local execution and authentication work, publish the verified web entry point, send a harmless external test, and confirm the matching run before enabling real webhook traffic.

Create a Localtonet account →

Corrections & updates

Substantive changes approved by the Localtonet editorial team are listed transparently below.

Reviewed and updated for accuracy and completeness.

Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.

Support