2024-05-07 00:59:33 -04:00
|
|
|
# Environment Variables
|
|
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
|
|
| ------------- | ------------------------------------------------------------------------------------ | ------------- |
|
|
|
|
| DERP_HOSTNAME | Specifies the domain for the DERP server. | `example.com` |
|
|
|
|
| DERP_CERTMODE | Determines the SSL/TLS certificate management mode. Options: `manual`, `letsencrypt` | `letsencrypt` |
|
|
|
|
| DERP_ADDR | Sets the server address and port to bind to. | `:443` |
|
|
|
|
|
|
|
|
# Volumes
|
|
|
|
|
|
|
|
| Name | Description |
|
|
|
|
| ---------- | ------------------------------------------------ |
|
|
|
|
| /app/certs | Directory where SSL/TLS certificates are stored. |
|
|
|
|
|
2024-05-06 13:27:10 -04:00
|
|
|
# Usage
|
|
|
|
|
2024-05-07 00:59:33 -04:00
|
|
|
## Running Directly with SSL/TLS
|
|
|
|
|
2024-05-06 13:27:10 -04:00
|
|
|
```shell
|
|
|
|
docker run -d --name derper \
|
2024-05-07 00:59:33 -04:00
|
|
|
-p 443:443 -p 3478:3478 \
|
2024-05-06 13:27:10 -04:00
|
|
|
-e DERP_DOMAIN=example.com \
|
2024-05-07 00:59:33 -04:00
|
|
|
-e DERP_CERTMODE=manual \
|
2024-05-06 13:27:10 -04:00
|
|
|
-v /path/to/certs:/app/certs \
|
|
|
|
nite07/tailscale-derp-docker:latest
|
|
|
|
```
|
|
|
|
|
2024-05-07 00:59:33 -04:00
|
|
|
## Running Behind a Reverse Proxy
|
|
|
|
|
|
|
|
```shell
|
|
|
|
docker run -d --name derper \
|
|
|
|
-p 8080:80 -p 3478:3478 \
|
|
|
|
-e DERP_DOMAIN=example.com \
|
|
|
|
-e DERP_ADDR=:80 \
|
|
|
|
nite07/tailscale-derp-docker:latest
|
2024-05-06 13:27:10 -04:00
|
|
|
```
|
|
|
|
|
2024-05-07 00:59:33 -04:00
|
|
|
## Adding DERP servers to your tailnet
|
2024-05-06 13:27:10 -04:00
|
|
|
|
2024-05-07 00:59:33 -04:00
|
|
|
reference: https://tailscale.com/kb/1118/custom-derp-servers#step-2-adding-derp-servers-to-your-tailnet
|