commit 7a23a34bf08731a5e81b86e2dedbb1fb115b7fff Author: Nikita Bizyaev Date: Tue May 5 10:19:45 2026 +0300 1 diff --git a/Dockerfile.dashboard b/Dockerfile.dashboard new file mode 100644 index 0000000..6e77558 --- /dev/null +++ b/Dockerfile.dashboard @@ -0,0 +1,6 @@ +FROM netbirdio/dashboard:latest + +ENV NETBIRD_MGMT_API_ENDPOINT=https://birdy.greact.online +ENV NETBIRD_MGMT_GRPC_API_ENDPOINT=https://birdy.greact.online +ENV USE_AUTH0=false +ENV NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT= diff --git a/Dockerfile.netbird-server b/Dockerfile.netbird-server new file mode 100644 index 0000000..d96c819 --- /dev/null +++ b/Dockerfile.netbird-server @@ -0,0 +1,3 @@ +FROM netbirdio/netbird-server:latest + +COPY config.yaml /etc/netbird/config.yaml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..dab5786 --- /dev/null +++ b/config.yaml @@ -0,0 +1,21 @@ +server: + listenAddress: ":80" + exposedAddress: "https://birdy.greact.online" + stunPorts: + - 3478 + logLevel: "info" + logFile: "console" + +auth: + issuer: "https://birdy.greact.online/oauth2" # остаётся для совместимости, но должен указывать на встроенный OAuth2 сервер NetBird + localAuthDisabled: false # ВКЛЮЧАЕТ локальную аутентификацию по паролю (false = локальная разрешена) + signKeyRefreshEnabled: true + dashboardRedirectURIs: + - "https://birdy.greact.online/nb-auth" + - "https://birdy.greact.online/nb-silent-auth" + cliRedirectURIs: + - "http://localhost:53000/" + +store: + engine: "sqlite" + encryptionKey: "336c2d76-3d00-4863-abc5-afe55211a36a" \ No newline at end of file diff --git a/dashboard.env b/dashboard.env new file mode 100644 index 0000000..b876cd1 --- /dev/null +++ b/dashboard.env @@ -0,0 +1,6 @@ +NETBIRD_MGMT_API_ENDPOINT=https://birdy.greact.online +NETBIRD_MGMT_GRPC_API_ENDPOINT=https://birdy.greact.online +USE_AUTH0=false # ВАЖНО: отключает Auth0 + +# Эти переменные можно оставить пустыми (внешний IdP не используется): +NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT= \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..38beeb0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,37 @@ +services: + netbird-server: + build: + context: . + dockerfile: Dockerfile.netbird-server + image: birdy/netbird-server:local + container_name: netbird-server + volumes: + - netbird_data:/var/lib/netbird + expose: + - "80" + - "3478/udp" + restart: unless-stopped + networks: + - proxy + + dashboard: + build: + context: . + dockerfile: Dockerfile.dashboard + image: birdy/netbird-dashboard:local + container_name: netbird-dashboard + expose: + - "80" + depends_on: + - netbird-server + restart: unless-stopped + networks: + - proxy + +volumes: + netbird_data: + +networks: + proxy: + external: true + \ No newline at end of file