refactor
This commit is contained in:
@@ -1,15 +1,28 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
birdy:
|
||||
netbird-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.netbird-server
|
||||
image: birdy/netbird:local
|
||||
container_name: birdy-server
|
||||
volumes:
|
||||
- netbird_data:/var/lib/netbird
|
||||
container_name: netbird-server
|
||||
expose:
|
||||
- "80"
|
||||
- "3478/udp"
|
||||
- "80" # Management API + OAuth2 + Signal → внутрь proxy-сети
|
||||
ports:
|
||||
- "3478:3478/udp" # STUN — публично (UDP нельзя проксировать через HTTP)
|
||||
volumes:
|
||||
- netbird_data:/var/lib/netbird # именованный volume (не bind-mount)
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
netbird-dashboard:
|
||||
image: netbirdio/dashboard:latest
|
||||
container_name: netbird-dashboard
|
||||
env_file:
|
||||
- ./dashboard.env
|
||||
expose:
|
||||
- "80" # Web UI → внутрь proxy-сети
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy
|
||||
@@ -20,3 +33,4 @@ volumes:
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user