derper needs to rely on the local tailscale, so you need to install tailscale first
install tailscale and log in
curl -fsSL https://tailscale.com/install.sh | sh
tailscale up
docker derper links the local tailscaled through tailscaled.sock
version: '3'
services:
derper:
image: whoer/derper
container_name: derper
network_mode: host
volumes:
- ./cert/:/etc/cert
- /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock
command: -stun -stun-port your_port -a 0.0.0.0:your_port -http-port -1 -hostname your_domain -certdir=/etc/cert -certmode=manual -verify-clients
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
compress: "true"
The certificate and key names in the cert directory should look like the following
your_domain.pem
your_domain.crt
your_domain.key
Content type
Image
Digest
sha256:6b803fa73…
Size
7.1 MB
Last updated
2 months ago
docker pull whoer/derper