2023-04-04 00:21:40 +02:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
#UI dashboard
|
|
|
|
dashboard:
|
2024-04-05 13:51:28 +02:00
|
|
|
image: netbirdio/dashboard:$NETBIRD_DASHBOARD_TAG
|
2023-04-04 00:21:40 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
#ports:
|
|
|
|
# - 80:80
|
|
|
|
# - 443:443
|
|
|
|
environment:
|
|
|
|
# Endpoints
|
|
|
|
- NETBIRD_MGMT_API_ENDPOINT=$NETBIRD_MGMT_API_ENDPOINT
|
|
|
|
- NETBIRD_MGMT_GRPC_API_ENDPOINT=$NETBIRD_MGMT_API_ENDPOINT
|
|
|
|
# OIDC
|
2023-10-03 19:33:42 +02:00
|
|
|
- AUTH_AUDIENCE=$NETBIRD_DASH_AUTH_AUDIENCE
|
2023-04-04 00:21:40 +02:00
|
|
|
- AUTH_CLIENT_ID=$NETBIRD_AUTH_CLIENT_ID
|
2023-06-07 16:00:04 +02:00
|
|
|
- AUTH_CLIENT_SECRET=$NETBIRD_AUTH_CLIENT_SECRET
|
2023-04-04 00:21:40 +02:00
|
|
|
- AUTH_AUTHORITY=$NETBIRD_AUTH_AUTHORITY
|
|
|
|
- USE_AUTH0=$NETBIRD_USE_AUTH0
|
|
|
|
- AUTH_SUPPORTED_SCOPES=$NETBIRD_AUTH_SUPPORTED_SCOPES
|
|
|
|
- AUTH_REDIRECT_URI=$NETBIRD_AUTH_REDIRECT_URI
|
|
|
|
- AUTH_SILENT_REDIRECT_URI=$NETBIRD_AUTH_SILENT_REDIRECT_URI
|
2023-09-27 15:06:17 +02:00
|
|
|
- NETBIRD_TOKEN_SOURCE=$NETBIRD_TOKEN_SOURCE
|
2023-04-04 00:21:40 +02:00
|
|
|
# SSL
|
|
|
|
- NGINX_SSL_PORT=443
|
|
|
|
# Letsencrypt
|
|
|
|
- LETSENCRYPT_DOMAIN=$NETBIRD_LETSENCRYPT_DOMAIN
|
|
|
|
- LETSENCRYPT_EMAIL=$NETBIRD_LETSENCRYPT_EMAIL
|
|
|
|
volumes:
|
|
|
|
- $LETSENCRYPT_VOLUMENAME:/etc/letsencrypt/
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.netbird-dashboard.rule=Host(`$NETBIRD_DOMAIN`)
|
|
|
|
- traefik.http.services.netbird-dashboard.loadbalancer.server.port=80
|
|
|
|
|
|
|
|
# Signal
|
|
|
|
signal:
|
2023-12-17 17:43:06 +01:00
|
|
|
image: netbirdio/signal:$NETBIRD_SIGNAL_TAG
|
2023-04-04 00:21:40 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- $SIGNAL_VOLUMENAME:/var/lib/netbird
|
|
|
|
#ports:
|
|
|
|
# - 10000:80
|
|
|
|
# # port and command for Let's Encrypt validation
|
|
|
|
# - 443:443
|
|
|
|
# command: ["--letsencrypt-domain", "$NETBIRD_LETSENCRYPT_DOMAIN", "--log-file", "console"]
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.netbird-signal.rule=Host(`$NETBIRD_DOMAIN`) && PathPrefix(`/signalexchange.SignalExchange/`)
|
|
|
|
- traefik.http.services.netbird-signal.loadbalancer.server.port=80
|
|
|
|
- traefik.http.services.netbird-signal.loadbalancer.server.scheme=h2c
|
|
|
|
|
|
|
|
# Management
|
|
|
|
management:
|
2023-12-17 17:43:06 +01:00
|
|
|
image: netbirdio/management:$NETBIRD_MANAGEMENT_TAG
|
2023-04-04 00:21:40 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- dashboard
|
|
|
|
volumes:
|
|
|
|
- $MGMT_VOLUMENAME:/var/lib/netbird
|
|
|
|
- $LETSENCRYPT_VOLUMENAME:/etc/letsencrypt:ro
|
|
|
|
- ./management.json:/etc/netbird/management.json
|
|
|
|
#ports:
|
|
|
|
# - $NETBIRD_MGMT_API_PORT:443 #API port
|
|
|
|
# # command for Let's Encrypt validation without dashboard container
|
|
|
|
# command: ["--letsencrypt-domain", "$NETBIRD_LETSENCRYPT_DOMAIN", "--log-file", "console"]
|
|
|
|
command: [
|
|
|
|
"--port", "443",
|
|
|
|
"--log-file", "console",
|
|
|
|
"--disable-anonymous-metrics=$NETBIRD_DISABLE_ANONYMOUS_METRICS",
|
|
|
|
"--single-account-mode-domain=$NETBIRD_MGMT_SINGLE_ACCOUNT_MODE_DOMAIN",
|
|
|
|
"--dns-domain=$NETBIRD_MGMT_DNS_DOMAIN"
|
|
|
|
]
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.netbird-api.rule=Host(`$NETBIRD_DOMAIN`) && PathPrefix(`/api`)
|
|
|
|
- traefik.http.routers.netbird-api.service=netbird-api
|
|
|
|
- traefik.http.services.netbird-api.loadbalancer.server.port=443
|
|
|
|
|
|
|
|
- traefik.http.routers.netbird-management.rule=Host(`$NETBIRD_DOMAIN`) && PathPrefix(`/management.ManagementService/`)
|
|
|
|
- traefik.http.routers.netbird-management.service=netbird-management
|
|
|
|
- traefik.http.services.netbird-management.loadbalancer.server.port=443
|
|
|
|
- traefik.http.services.netbird-management.loadbalancer.server.scheme=h2c
|
2024-08-23 16:38:57 +02:00
|
|
|
environment:
|
|
|
|
- NETBIRD_STORE_ENGINE_POSTGRES_DSN=$NETBIRD_STORE_ENGINE_POSTGRES_DSN
|
|
|
|
|
2023-04-04 00:21:40 +02:00
|
|
|
# Coturn
|
|
|
|
coturn:
|
2023-12-17 17:43:06 +01:00
|
|
|
image: coturn/coturn:$COTURN_TAG
|
2023-04-04 00:21:40 +02:00
|
|
|
restart: unless-stopped
|
2023-12-17 17:43:06 +01:00
|
|
|
domainname: $TURN_DOMAIN
|
2023-04-04 00:21:40 +02:00
|
|
|
volumes:
|
|
|
|
- ./turnserver.conf:/etc/turnserver.conf:ro
|
|
|
|
# - ./privkey.pem:/etc/coturn/private/privkey.pem:ro
|
|
|
|
# - ./cert.pem:/etc/coturn/certs/cert.pem:ro
|
|
|
|
network_mode: host
|
|
|
|
command:
|
|
|
|
- -c /etc/turnserver.conf
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
$MGMT_VOLUMENAME:
|
|
|
|
$SIGNAL_VOLUMENAME:
|
|
|
|
$LETSENCRYPT_VOLUMENAME:
|