Your Private Network code · Part 4 — Devices Around the Home

Chapter 9 NAS Boxes and Home Servers

2 blocks

Synology

#

Run Synology: Control Panel → Task Scheduler, a Triggered Task run as root at Boot-up
/var/packages/Tailscale/target/bin/tailscale configure-host
synosystemctl restart pkgctl-Tailscale.service

Home Servers and Docker

#

File docker-compose.yml

Put your own auth key in, and delete it from the file once the container has joined.

services:
  tailscale-media:
    image: tailscale/tailscale:latest
    hostname: media
    environment:
      - TS_AUTHKEY=tskey-auth-your-key-here
      - TS_STATE_DIR=/var/lib/tailscale
      - TS_USERSPACE=false
    volumes:
      - ./tailscale-state:/var/lib/tailscale
    devices:
      - /dev/net/tun:/dev/net/tun
    cap_add:
      - net_admin
    restart: unless-stopped

  media:
    image: jellyfin/jellyfin:latest
    network_mode: service:tailscale-media
    restart: unless-stopped

Reproduced exactly from Your Private Network, Chapter 9. The book explains what each line does and what to do when it doesn't work. About the book

Something here not working as the book describes? Tell the author.