Skip to content

Pocket ID and Tailscale - NEED HELP #187

@Extra-Citron-7630

Description

@Extra-Citron-7630

My docker-compose.yaml file

services:
  tailscale:
    image: tailscale/tailscale:latest
    container_name: pocketid-tailscale
    hostname: pocketid
    environment:
      - TS_AUTHKEY=<omitted_for_security_reasons>
      - TS_STATE_DIR=/var/lib/tailscale
      - TS_USERSPACE=false
      - TS_ACCEPT_DNS=true
      - TS_EXTRA_ARGS=--accept-routes=true
      - TS_SERVE_CONFIG=/config/serve/serve.json
    volumes:
      - /mnt/cloud/container/pocketid/ts:/var/lib/tailscale
      - /mnt/cloud/container/pocketid/serve:/config/serve
    devices:
      - /dev/net/tun:/dev/net/tun
    cap_add:
      - net_admin
    restart: unless-stopped
  
pocket-id:
    container_name: pocketid-app
    image: ghcr.io/pocket-id/pocket-id:latest
    network_mode: service:tailscale
    environment:
      - ANALYTICS_DISABLED=true
      - ENCRYPTION_KEY=<omitted_for_security_reasons>
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - LOG_LEVEL=error
      - PORT=1411
      - LOG_JSON=true
      # - PUBLIC_APP_URL='https://pocketid.<omitted_for_security_reasons>.net'
      # - TRUST_PROXY=true
    restart: unless-stopped
    volumes:
      - /mnt/cloud/container/pocketid/data:/app/data

serve.json

{
  "TCP": {
    "443": {
      "HTTPS": true
    }
  },
  "Web": {
    "${TS_CERT_DOMAIN}:443": {
      "Handlers": {
        "/": {
          "Proxy": "http://127.0.0.1:1411"
        }
      }
    }
  }
}

I have a single debian server that has tailscale installed on it already. Due to one of the limitations of tailscale, I have decided to deploy Pocket ID with tailscale in a docker container so that I can add it as node on my tailnet. However whenever I access my pocketid.tailnet.net URL, I get the following error in the inspect element console:

[Error] SecurityError: The RP ID "localhost" is invalid for this domain

Any idea why I could be getting this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions