Railway

Deploy NetBird Peer Client

Deploy a NetBird peer to connect your service directly to your network.

Deploy NetBird Peer Client

Just deployed

Deploy and Host NetBird Peer Client on Railway

NetBird Peer Client is a secure, zero-configuration VPN agent that connects your application to a private overlay network based on WireGuard. It enables seamless, encrypted peer-to-peer communication between your servers, containers, databases, and local devices, bypassing firewalls without exposing ports to the public internet.

About Hosting NetBird Peer Client

Deploying the NetBird Peer Client on Railway is straightforward and fully automated. When you trigger the deployment, Railway builds the service using the provided Dockerfile. You simply supply your NetBird Setup Key as an environment variable (NB_SETUP_KEY) during setup. The client starts automatically, registers itself with your NetBird management server, and joins your secure mesh network. There is no need to configure ingress rules, expose public ports, or manage firewall rules locally, as all connections are established outbound.

Common Use Cases

  • Secure Cross-Cloud Networking — Connect your Railway databases or backend services directly to infrastructure hosted on AWS, GCP, or on-premise servers.
  • Private Database & API Access — Allow team members or remote services to securely connect to private databases running on Railway without exposing them to the public internet.
  • Hybrid Cloud Deployments — Seamlessly integrate Railway workloads with your local development machines or edge devices for testing and deployment pipelines.

Dependencies for NetBird Peer Client Hosting

  • NetBird Account — An active account on NetBird (Cloud or Self-Hosted) to manage your network and control access.
  • NetBird Setup Key — A Setup Key generated from your NetBird console to authorize and register the client.

Deployment Dependencies

Implementation Details

This setup utilizes the NetBird Docker image built via Railway's Dockerfile builder, pointing to a configuration template in the root of the repository.

Why Deploy NetBird Peer Client on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying NetBird Peer Client on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Keycloak
Keycloak template with keywind theme + apple and discord providers

beuz
View Template
lua-protector
Test deployed my project first

trianaq765-cmd's Project
View Template
bknd
Feature-rich yet lightweight backend