Deploy Tailscale for Drizzle
Put an existing Drizzle Studio or Gateway on your tailnet
Tailscale
Just deployed
/var/lib/tailnet
Deploy and Host Tailscale for Drizzle on Railway
Tailscale for Drizzle adds a private address to a Drizzle Studio or Drizzle Gateway service, or to a database, that you already run on Railway. Only devices on your tailnet can reach it.
About Hosting Tailscale for Drizzle
This template adds one Tailscale service to a project that already runs Drizzle Studio or Drizzle Gateway from the plain template, or a database. Deploy those services first, then deploy this template into the same project. The Tailscale service joins your tailnet as its own machine and forwards its ports to your existing services over Railway's private network. It adds no public domain.
You do not generate or paste a key. The Tailscale service prints a sign-in link into its deploy log. You open the link, sign in, and the machine joins your tailnet. If you set TS_FORWARD_BROWSER, the log then prints the address to open in your browser.
On the deploy form, set TS_FORWARD_BROWSER for a browser: type ${{ and pick RAILWAY_PRIVATE_DOMAIN of your Drizzle Studio or Drizzle Gateway service. Set TS_FORWARD_DATABASE for a database the same way. Both fields are optional; fill the ones you need. The tutorial shows the full values.
Common Use Cases
- Adding private access to a database browser you already deployed.
- Removing a browser's public domain once your tailnet reaches it.
- Reaching your database directly over the tailnet, alongside the browser.
Dependencies for Tailscale for Drizzle Hosting
- An existing Drizzle Studio, Drizzle Gateway or database service in the same project.
- A Tailscale account.
Deployment Dependencies
Why Deploy Tailscale for Drizzle on Railway?
You need the Railway Hobby plan or higher. The Free plan allows one volume per project. This template needs one more volume than your project already uses, for the Tailscale service.
Follow the full walkthrough in Add Tailscale to Drizzle Studio or Gateway on Railway. It covers the deploy form, the sign-in step, and how to point the forwards at your services.
To add private access to a database only, follow Connect Drizzle Kit to a private Railway database with Tailscale.
Template Content
