34 lines
707 B
YAML
34 lines
707 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
netbird-client:
|
|
image: netbirdio/client:latest
|
|
container_name: netbird-client
|
|
cap_add:
|
|
- NET_ADMIN
|
|
devices:
|
|
- /dev/net/tun
|
|
environment:
|
|
NETBIRD_MANAGEMENT_URL: ${MANAGEMENT_URL:-https://management:33073}
|
|
NETBIRD_LOG_LEVEL: info
|
|
# Use setup key for automatic enrollment (optional)
|
|
NETBIRD_SETUP_KEY: ${SETUP_KEY:-}
|
|
volumes:
|
|
- netbird_client_data:/etc/netbird
|
|
- /etc/resolv.conf:/etc/resolv.conf:ro
|
|
ports:
|
|
- "41641:41641/udp"
|
|
networks:
|
|
- netbird
|
|
restart: unless-stopped
|
|
dns:
|
|
- 8.8.8.8
|
|
- 8.8.4.4
|
|
|
|
volumes:
|
|
netbird_client_data:
|
|
|
|
networks:
|
|
netbird:
|
|
driver: bridge
|