Sign inSign up

whoer/derper

By whoer

Updated 2 months ago

Image
0

8.0K

whoer/derper repository overview

cmd

derper needs to rely on the local tailscale, so you need to install tailscale first

install tailscale and log in

docker-compose

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"

cert

The certificate and key names in the cert directory should look like the following

your_domain.pem
your_domain.crt
your_domain.key

Tag summary

Content type

Image

Digest

sha256:6b803fa73

Size

7.1 MB

Last updated

2 months ago

docker pull whoer/derper