services: searchxng-ts: image: tailscale/tailscale:latest hostname: searchxng container_name: searchxng-ts environment: - TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}} # <------- Replace with your Tailscale auth key - TS_STATE_DIR=/var/lib/tailscale - TS_SERVE_CONFIG=/config/serve.json volumes: - ./tailscale/tailscale-data:/var/lib/tailscale - ./tailscale/config:/config - /dev/net/tun:/dev/net/tun cap_add: - net_admin - sys_module restart: unless-stopped searxng: image: searxng/searxng container_name: searxng # ports: # - "${PORT}:8080" volumes: - ./searxng:/etc/searxng environment: - BASE_URL=https://searchxng.{{YOUR_TAILNET_DOMAIN}}.ts.net/ # <------- Replace with your Tailscale domain ie https://searchxng.tail123456.ts.net/ - INSTANCE_NAME=my-instance restart: unless-stopped network_mode: service:searchxng-ts depends_on: - searchxng-ts