Add NetBird self-hosted VPN stack - #53
Open
xrhstosmour wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What:
NetBirdmesh WireGuard VPN stack atnetworking/vpn/netbird, following the existingdocker-compose.yml+template.envpattern, mirroring upstream'sinfrastructure_files/docker-compose.yml.tmplstructure adapted to this repo's conventions: five services (dashboard,signal,relay,management,coturn), env-driven ports throughout.management's storage to the sharedpostgresqlcontainer viaNETBIRD_STORE_ENGINE_POSTGRES_DSN, instead of its default embedded store. Nodepends_ononpostgresql(separate compose project); overridesentrypoint:(notcommand:, which would just become extra args to the image's ownENTRYPOINT) with abash//dev/tcpwait-loop, since the base image is plainubuntuwithoutnc.coturnruns withnetwork_mode: host(required for it to actually relay peer traffic), the one service in this repo not on the sharedinternalnetwork.configuration/management.jsonandconfiguration/turnserver.conf, hand-edited likeTraefik'sconfiguration/*.yml, with placeholder values for the parts a real self-hosted setup would customize (OIDC endpoints, TURN credentials, TLS certs).Why:
Pre-staging VPN tooling for a future VPS install. Chose
NetBirdoverwg-easyper a prior discussion: mesh connectivity with no port-forwarding needed, plus built-in SSO/MFA/ACLs, over a classic hub-and-spoke WireGuard server.Testing:
docker compose configvalidates with no errors.postgresqlcontainer locally and brought up all five services:dashboard,signal,relay, andcoturnreachUpcleanly;managementconnects to Postgres (no connection errors) and gets as far as fetching its configured OIDC discovery endpoint.OIDCConfigEndpointfor a real reachable HTTPS URL and observedmanagementmake the actual outbound request and fail on a real404, rather than any earlier wiring problem. A full end-to-end login needs a real OIDC identity provider and public domain, which is out of reach for a local test and will be verified once this is deployed with a real domain on the VPS.docker compose down -vcleans up with no leftover state.