Server Version#: Docker plexinc/pms-docker:plexpass
Hi! I’ve recently set up a headless Ubuntu 20.04 server with a few Docker apps behind a traefik reverse proxy (as per this great guide).
I am unable to access my new Plex MS container via LAN ([server-IP]:32400/web) - I see this message instead: “Not authorized - You do not have access to this server”.
Also, I do not see my new server in the server drop-down list in my account settings.
I’m using Docker Compose to initialise my Plex MS container (see docker-compose.yml below).
Environment variables:
PLEX_PORT=32400
PLEX_CLAIM=[claim code]
I’m generating a new Plex claim and initialising the container within the 4 minute timeframe. I’ve also tried the Plex claim with and without quotes.
Any help is very much appreciated! Thanks
plexms:
image: plexinc/pms-docker:plexpass
container_name: plexms
restart: unless-stopped
networks:
- t2_proxy
# devices:
# - /dev/dri:/dev/dri # for harware transcoding
security_opt:
- no-new-privileges:true
ports:
- "$PLEX_PORT:32400/tcp"
- "3005:3005/tcp"
- "8324:8324/tcp"
- "32469:32469/tcp"
- "1900:1900/udp" # conflicts with xTeVe
- "32410:32410/udp"
- "32412:32412/udp"
- "32413:32413/udp"
- "32414:32414/udp"
# - "$PLEX_WEB_TOOLS_PORT:33400"
volumes:
- $DOCKERDIR/plexms:/config
- $DATADIR/downloads:/data/downloads
- $DATADIR/media:/data/media
- /dev/shm:/transcode # Offload transcoding to RAM if you have enough RAM
# - $DATADIR/docker/appdata/plexms/Library/Application Support/Plex Media Server/Cache:/config/Library/Application Support/Plex Media Server/Cache
# - $DATADIR/docker/appdata/plexms/Library/Application Support/Plex Media Server/Metadata:/config/Library/Application Support/Plex Media Server/Metadata
# - $DATADIR/docker/appdata/plexms/Library/Application Support/Plex Media Server/Media:/config/Library/Application Support/Plex Media Server/Media
environment:
- TZ:$TZ
- PLEX_CLAIM:$PLEX_CLAIM
- PLEX_UID:$PUID
- PLEX_GID:$PGID
# - ADVERTISE_IP="http://$SERVER_IP:32400/"
hostname: HAL2
labels:
- "traefik.enable=true"
# HTTP Routers
- "traefik.http.routers.plexms-rtr.entrypoints=https"
- "traefik.http.routers.plexms-rtr.rule=Host(`plex.$DOMAINNAME`)"
# Middlewares
- "traefik.http.routers.plexms-rtr.middlewares=chain-no-auth@file"
# HTTP Services
- "traefik.http.routers.plexms-rtr.service=plexms-svc"
- "traefik.http.services.plexms-svc.loadbalancer.server.port=32400"