Self-hosted NetBird stack
Self-hosted NetBird server stack for a WireGuard-based private network that connects devices, servers, and teams.
Start with this stackServices
Services in the NetBird stack
The NetBird stack comes with these services already connected. The table shows which ones are enabled by default when you create an app environment and, where services depend on each other, how they are linked.
| Stack service | Base service | Role |
|---|---|---|
NetBird | NetBird | Primary |
The full service table lists the configs, settings, actions, cron schedules, volumes, links, backups, and imports of each service in this stack.
Make the stack your own
When you add the stack to your organization, the copy is yours to change. Changes go into a draft that you publish as a new stack revision, and app environments pick them up when they upgrade.
Add services
Add any service from the catalog, such as a cache, a search engine, or a mail relay, and link it to the services that use it.
Remove what you do not need
Leave optional services out when you create an app, disable a service in one app environment, or remove it from the stack for every environment.
Change how services connect
Point a link at another service in the stack or, where the link allows it, at a service of another app or at custom values such as a managed database. Change it for the whole stack or for one app environment.
The stack configuration guide covers adding services, removing them, and changing links.
Platform
On this page
Start from a ready-to-run service
Deploy it as it is, or change its settings first.
Keep stack configuration in Git
Version stack.yml and import approved changes as new revisions.
Automatic stack updates
Choose which updates apply automatically, and when.
Monitor and debug running services
Stream logs, inspect metrics, and open a web terminal.
Domains, HTTPS, and ports
Technical domains, custom domains, certificates, and published ports.
One stack, several environments
Create development, staging, and production with their own values.
Deploy
Choose where it runs. Wodby maintains it either way.
The application stack stays the same on Wodby Cloud, in your own cloud account, or on your own server. Wodby keeps Kubernetes, the cluster infrastructure, and the stack up to date wherever it runs, so the choice comes down to where you want the resources and what you want to pay.
Wodby hosts the cluster, so there is no cloud account or server to set up first.
Keep the cluster and its resources in your own cloud account. Wodby creates it and keeps it up to date.
Run the same stack on a VM, bare-metal server, or dedicated host at the lowest cost. Wodby checks its packages for vulnerabilities and installs updates when you choose.
Hosting options for this stack compares the three in more detail.
Routing and endpoints
Publish and control application endpoints
Services in this stack declare the endpoints and ports they can expose. Each app environment can start on default technical domains, then add custom domains, HTTPS, access controls, redirects, or published TCP and UDP ports as needed.
Default technical domains
Reach supported services on generated Wodby domains, then attach custom domains when ready.
Automatic Let's Encrypt HTTPS
Provision and automatically renew trusted certificates for supported public routes.
Authentication and route controls
Protect routes with HTTP basic auth, redirect alternate domains or paths, and tune HSTS, no-index, upload limits, and more.
Routing and endpoints covers technical routes, custom domains, certificates, route controls, redirects, and published ports.
Private app access
Deploy NetBird behind private access
Private app access is chosen when you create the app. It puts the HTTP endpoints of the app behind an identity check or on a private network, for the whole app or for selected endpoints such as an admin area.
Cloudflare
View integrationPublish behind a Cloudflare Access identity policy or keep endpoints inside a Cloudflare One private network.
Tailscale
View integrationGive authorized tailnet users and devices stable private HTTPS addresses for the app.
The private app access page compares an identity check through Cloudflare Access with a private network through Cloudflare One or Tailscale.
Configuration and customization
Change settings and config files per environment
Each service has settings, and some have config files you can edit. The stack holds the defaults, and an app environment overrides what it needs without a new image.
See the configs and settings of each service in this stack.
Git-managed configuration
Keep your stack configuration in Git
A stack can be described in a stack.yml file kept in a Git repository: its services, their defaults, and their settings. Wodby imports a change to that file as a new stack revision.
Review changes before they apply
A change to the stack goes through a commit or a pull request before any app environment sees it.
Import updates as new revisions
Wodby follows a branch or semantic-version tags. Running app environments stay on their revision until they are upgraded.
Keep service updates enabled
Updates from Git and automatic updates of services are switched on separately, so a stack kept in Git still receives new service releases.
Read more about Git-backed stacks and how they work with automatic updates.
Security and maintenance
Automatic updates of the services in the stack
With service auto-updates enabled on the stack, Wodby picks up eligible security patches and maintenance releases of its services and creates a new stack revision. Running app environments do not change until they are upgraded to that revision.
You choose which app environments upgrade automatically, and a maintenance window in local time limits when production does. Development and staging can upgrade first.
Read more about automatic updates: policies, revisions, maintenance windows, and automatic upgrades of app environments.
Observability and debugging
Logs, metrics, and a terminal for running services
Each app environment shows the logs and metrics of its services, and you can open a terminal inside a running container.
Stream live container logs
Follow the output of an app service in real time, and select a workload or container when the service runs more than one.
Track runtime health
See CPU, memory, storage, readiness, and restarts for the app environment and for each service.
Debug with a web terminal
Open a shell in a running service container from the browser, for inspection and one-off commands.
Read more about observability for logs and metrics, and about service configuration for the web terminal.
Environments
Create development, staging, and production environments
An app can have development, staging, production, and other environments, all created from the same NetBird stack, on one cluster or on several.
The same services everywhere
Every environment starts with the services and integrations that the stack enables by default.
Customize each environment
Override values, configs, and settings in one environment. The stack and the other environments stay as they are.
Read more about app environments.
Get started
Create a new NetBird environment
Each app environment starts from the stack defaults and keeps its own values.
Technical notes
Technical details of the NetBird stack
The NetBird stack runs your own NetBird server, which provides a private network based on WireGuard for your devices and servers. A single app service hosts the management server, sign-in, relay, and dashboard, all over HTTPS without published ports.
Administrator is created on first deployment
Set the required admin email and password when you create the app. The first deployment creates that administrator, so no public setup page is offered. Later changes to these settings have no effect.
Main domain is the management URL
NetBird clients use the app's main domain as their management URL, which is also where the dashboard lives. If the main domain changes, every device has to be pointed at the new URL.
Relayed traffic uses cluster bandwidth
Devices link up directly where their networks permit. When that is not possible, traffic passes through the relay on your cluster and counts toward the cluster's bandwidth.
All state is on one volume
Accounts, devices, network settings, users, and the activity log are kept in SQLite databases on the data volume. Losing the volume means setting up every device again. The stack runs one replica.
Read the NetBird stack guide for setup steps, settings, and limits.
FAQ
Common questions about the NetBird stack
What does the NetBird stack include?
Self-hosted NetBird server stack for a WireGuard-based private network that connects devices, servers, and teams. An app environment created from the stack starts with the services that are enabled by default. Optional services are selected when you create it or enabled later.
How can one stack support multiple apps and environments?
One stack can serve any number of apps, and each app can have development, staging, production, and other environments. The stack defines the services and their defaults. Values can differ by environment type, such as dev and prod, and each app environment can override them.
How do stack updates work?
When an included service gets an update, the stack can be marked as outdated or create a new revision automatically under its update policy. Existing app environments stay on their current revision until you upgrade them manually or enable stack auto-upgrades with a maintenance window.
How do integrations work with this stack?
An integration is a connection to an account at an outside provider, such as a Git provider, a storage bucket, or an API your application calls. You create it once in your organization and attach it to the services that use it, in any app environment.
Can app environments from this stack run on different infrastructure?
Yes. Environments of one app can run on different clusters. Development can run on Wodby Cloud or on a single server of your own while production runs on managed Kubernetes, and all of them use the same stack.