tailscale derper
version: "3"
services:
derper:
image: fredliang/derper
container_name: derper
environment:
- DERP_DOMAIN=derper.tencent.codeon.cn
# manual/letsencrypt
- DERP_CERT_MODE=manual
# - DERP_ADDR=:1443
ports:
- 3478:3478/udp
- 1443:443
# - 80:80
volumes:
- ./certs:/app/certs:ro
"derpMap": {
// "OmitDefaultRegions": true,
"Regions": {
"900": {
"RegionID": 900,
"RegionCode": "tencent",
"RegionName": "tencent-cloud",
"Nodes": [
{
"Name": "1",
"RegionID": 900,
"HostName": "derper.tencent.codeon.cn",
"DERPPort": 1443,
},
],
},
},
},
DERPPort 和 docker compose端口1443保持一致
HostName 和 docker compose 中的DERP_DOMAIN保持一致
将证书放在 ./certs 目录。使用 letsencrypt 申请不到
使用 public 结尾的 crt 证书。
9277225_xxx.xxx.xxx.xx_public.crt