2021-09-25 19:12:05 +02:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
#UI dashboard
|
|
|
|
dashboard:
|
2022-06-21 19:01:50 +02:00
|
|
|
image: wiretrustee/dashboard:main
|
2021-09-25 19:12:05 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
environment:
|
2022-08-17 21:44:20 +02:00
|
|
|
- AUTH_AUDIENCE=$NETBIRD_AUTH_AUDIENCE
|
|
|
|
- AUTH_CLIENT_ID=$NETBIRD_AUTH_CLIENT_ID
|
|
|
|
- AUTH_AUTHORITY=$NETBIRD_AUTH_AUTHORITY
|
|
|
|
- USE_AUTH0=$NETBIRD_USE_AUTH0
|
|
|
|
- AUTH_SUPPORTED_SCOPES=$NETBIRD_AUTH_SUPPORTED_SCOPES
|
2022-05-22 18:53:47 +02:00
|
|
|
- NETBIRD_MGMT_API_ENDPOINT=$NETBIRD_MGMT_API_ENDPOINT
|
2022-08-05 22:41:57 +02:00
|
|
|
- NETBIRD_MGMT_GRPC_API_ENDPOINT=$NETBIRD_MGMT_API_ENDPOINT
|
2021-09-25 19:12:05 +02:00
|
|
|
- NGINX_SSL_PORT=443
|
2022-05-22 18:53:47 +02:00
|
|
|
- LETSENCRYPT_DOMAIN=$NETBIRD_DOMAIN
|
|
|
|
- LETSENCRYPT_EMAIL=$NETBIRD_LETSENCRYPT_EMAIL
|
2022-10-12 12:25:46 +02:00
|
|
|
- AUTH_REDIRECT_URI=$NETBIRD_AUTH_REDIRECT_URI
|
|
|
|
- AUTH_SILENT_REDIRECT_URI=$NETBIRD_AUTH_SILENT_REDIRECT_URI
|
2021-09-25 19:12:05 +02:00
|
|
|
volumes:
|
2022-05-13 14:11:21 +02:00
|
|
|
- $LETSENCRYPT_VOLUMENAME:/etc/letsencrypt/
|
2021-09-25 19:12:05 +02:00
|
|
|
# Signal
|
|
|
|
signal:
|
2022-05-20 11:00:15 +02:00
|
|
|
image: netbirdio/signal:latest
|
2021-09-25 19:12:05 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-05-13 21:51:41 +02:00
|
|
|
- $SIGNAL_VOLUMENAME:/var/lib/netbird
|
2021-09-25 19:12:05 +02:00
|
|
|
ports:
|
2022-07-25 19:55:38 +02:00
|
|
|
- 10000:80
|
2021-09-25 19:12:05 +02:00
|
|
|
# # port and command for Let's Encrypt validation
|
|
|
|
# - 443:443
|
2022-05-22 18:53:47 +02:00
|
|
|
# command: ["--letsencrypt-domain", "$NETBIRD_DOMAIN", "--log-file", "console"]
|
2021-09-25 19:12:05 +02:00
|
|
|
# Management
|
|
|
|
management:
|
2022-05-20 11:00:15 +02:00
|
|
|
image: netbirdio/management:latest
|
2021-09-25 19:12:05 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- dashboard
|
|
|
|
volumes:
|
2022-05-13 14:11:21 +02:00
|
|
|
- $MGMT_VOLUMENAME:/var/lib/netbird
|
|
|
|
- $LETSENCRYPT_VOLUMENAME:/etc/letsencrypt:ro
|
|
|
|
- ./management.json:/etc/netbird/management.json
|
2021-09-25 19:12:05 +02:00
|
|
|
ports:
|
2022-08-05 22:41:57 +02:00
|
|
|
- $NETBIRD_MGMT_API_PORT:443 #API port
|
2022-06-24 14:50:14 +02:00
|
|
|
# # port and command for Let's Encrypt validation without dashboard container
|
|
|
|
# - 443:443
|
2022-05-22 18:53:47 +02:00
|
|
|
# command: ["--letsencrypt-domain", "$NETBIRD_DOMAIN", "--log-file", "console"]
|
2022-10-19 17:43:28 +02:00
|
|
|
command: ["--port", "443", "--log-file", "console", "--disable-anonymous-metrics=$NETBIRD_DISABLE_ANONYMOUS_METRICS", "--single-account-mode-domain=$NETBIRD_MGMT_SINGLE_ACCOUNT_MODE_DOMAIN"]
|
2021-09-25 19:12:05 +02:00
|
|
|
# Coturn
|
|
|
|
coturn:
|
|
|
|
image: coturn/coturn
|
|
|
|
restart: unless-stopped
|
2022-05-22 18:53:47 +02:00
|
|
|
domainname: $NETBIRD_DOMAIN
|
2021-09-25 19:12:05 +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
|
|
|
|
volumes:
|
2022-05-13 14:11:21 +02:00
|
|
|
$MGMT_VOLUMENAME:
|
2022-05-13 21:51:41 +02:00
|
|
|
$SIGNAL_VOLUMENAME:
|
2022-06-21 18:17:38 +02:00
|
|
|
$LETSENCRYPT_VOLUMENAME:
|