[PR #6753] [infrastructure] preserve generated netbird network name #28907

Open
opened 2026-08-05 08:07:08 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/6753
Author: @CoderSufiyan
Created: 7/13/2026
Status: 🔄 Open

Base: mainHead: fix/issue-5793-compose-network-name


📝 Commits (1)

  • 4a6447d [infrastructure] preserve generated netbird network name

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 infrastructure_files/getting-started.sh (+5 -2)

📄 Description

Problem
getting-started.sh can generate a Compose network named netbird_netbird because Docker Compose prefixes the project name. Built-in Traefik labels expect the Docker network to be named netbird, which causes startup warnings and can prevent the stack from becoming ready.

Solution
Set name: netbird on internally-created netbird networks in the generated compose output. External user-provided proxy networks remain external and unchanged.

Documentation

  • Documentation is not needed

This fixes generated infrastructure output without changing user-facing setup steps.

Test
bash -n infrastructure_files/getting-started.sh
git diff --check

Fixes #5793

Summary by CodeRabbit

  • Bug Fixes
    • Docker Compose configurations now consistently assign the expected netbird network name across supported deployment setups.
    • Improved networking consistency when using built-in or external proxy configurations.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/6753 **Author:** [@CoderSufiyan](https://github.com/CoderSufiyan) **Created:** 7/13/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/issue-5793-compose-network-name` --- ### 📝 Commits (1) - [`4a6447d`](https://github.com/netbirdio/netbird/commit/4a6447d57f6b73ecb01a8e208882cff77b885721) [infrastructure] preserve generated netbird network name ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `infrastructure_files/getting-started.sh` (+5 -2) </details> ### 📄 Description **Problem** `getting-started.sh` can generate a Compose network named `netbird_netbird` because Docker Compose prefixes the project name. Built-in Traefik labels expect the Docker network to be named `netbird`, which causes startup warnings and can prevent the stack from becoming ready. **Solution** Set `name: netbird` on internally-created `netbird` networks in the generated compose output. External user-provided proxy networks remain external and unchanged. **Documentation** - [x] Documentation is **not needed** This fixes generated infrastructure output without changing user-facing setup steps. **Test** `bash -n infrastructure_files/getting-started.sh` `git diff --check` Fixes #5793 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Docker Compose configurations now consistently assign the expected `netbird` network name across supported deployment setups. * Improved networking consistency when using built-in or external proxy configurations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 08:07:08 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#28907