Plex Server on docker-compose

Hi all,

I am new to Plex and wanted to test it on my docker-compose host. What I did is creating the specific docker-compose.yml and started. It seems it’s all working however when I logon the webinterface it’s looking for a server. That’s a bit confusing as I thought this is the server :slight_smile: Can someone help

Here the file:

version: '2'
services:
  linuxserver-plex:
    container_name: linuxserver-plex
    restart: unless-stopped
    image: linuxserver/plex:latest
    environment: 
    - TZ=Europe/Stockholm
    - VERSION=latest
    ports:
    - "32400:32400" #(for access to the Plex Media Server) [required]
    - "32400:32400/udp"
    - "32410:32410/udp" #(for current GDM network discovery)
    - "32412:32412/udp" 
    - "32413:32413/udp" 
    - "32414:32414/udp"
    - "32469:32469" #(for access to the Plex DLNA Server)
    - "32469:32469/udp"
    - "5353:5353" # (for older Bonjour/Avahi network discovery)
    #- "1900:1900/udp" #(for access to the Plex DLNA Server)

    volumes:
    - /mnt/plex:/config
    - /mnt/LPS/Videos:/data/movies

I could logon with

http://10.0.0.129:32400/web (Whereas 10.0.0.129 is the docker host)

This is the screenshot after login-in

I’m experiencing a similar issue but have not yet received a response from Plex. It has been 5 days with no response.

@alex_ba_gmx_de: I am running in docker, but using compose file v3.5 and the official plex image…
Maybe try something like this?
Make sure to read the comments…

version: "3.5"

networks:
  internal:
    name: _lps_internal
    internal: true

  default:
    name: _lps_external

services:
  # plex - needs no introduction ;)
  plex:
    container_name: linuxserver-plex
    hostname: linuxserver-plex
    restart: unless-stopped
    image: plexinc/pms-docker # change this to plexinc/pms-docker:plexpass if you are a plexpass subscriber
    networks:
      - internal
      - default
    volumes:
      - /mnt/plex:/config
      - /mnt/plex-tmp:/transcode # Added this to keep image small
      - /mnt/LPS:/data # Changed this so you can add other libraries simply
      - /usr/share/zoneinfo/Europe/Stockholm:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
    ports:
      - 32400:32400
      - 32400:32400/udp
      - 3005:3005
      - 8324:8324
      - 32469:32469
      - 32469:32469/udp
      - 1900:1900
      - 1900:1900/udp
      - 32410:32410
      - 32410:32410/udp
      - 32412:32412
      - 32412:32412/udp
      - 32413:32413
      - 32413:32413/udp
      - 32414:32414
      - 32414:32414/udp
    environment:
      - PLEX_UID=1000 # Make this the uid of your user account (type "id" in terminal and look for uid=xxxx)
      - PLEX_GID=1000 # Make this the gid of your user account (type "id" in terminal and look for gid=xxxx)
      - PLEX_CLAIM="YOUR_CLAIM_TOKEN" # Visit https://www.plex.tv/claim to get your claim token
      - ADVERTISE_IP="http://10.0.0.129:32400/"
      - TZ=Europe/Stockholm

Running official plexms image in Docker on ubuntu 18.04. Image runs ok and can access server from localhost:32400 but can’t get to server from apps or plex.tv. Reloaded this about 5 times and still it says server is unavailable. This is on internal network so no issues with firewalls or ports.
Can anyone help as I’ve already spent most of today on this.
This is my config

docker create
–name=plex
–net=host
-e VERSION=latest
-e PUID=1000 -e PGID=1000
-e TZ=Europe/London
-v /opt/appdata/plex:/config
-v /home/franco/plex/tvshows:/data/tvshows
-v /home/franco/plex/movies:/data/movies
-v /home/franco/Music:/data/Music
-v /home/franco/plex/transcode:/transcode \

Any help appreciated`

See the port section of this docker-compose.yaml and map your ports accordingly.

version: "3.5"

services:
  # plex - needs no introduction ;)
  plex:
    container_name: live
    hostname: live
    restart: unless-stopped
    image: plexinc/pms-docker:plexpass # change this to plexinc/pms-docker:plexpass if you are a plexpass subscriber
    network_mode: host
    volumes:
      - ~/plex/plex:/config
      - ~/plex/plex-tmp:/transcode # Added this to keep image small
      - ~/plex/LPS:/data # Changed this so you can add other libraries simply
      - /usr/share/zoneinfo/America/Los_Angeles:/etc/localtime:ro
    ports:
      - 32400:32400
      - 32400:32400/udp
      - 3005:3005
      - 8324:8324
      - 32469:32469
      - 32469:32469/udp
      - 1900:1900
      - 1900:1900/udp
      - 32410:32410
      - 32410:32410/udp
      - 32412:32412
      - 32412:32412/udp
      - 32413:32413
      - 32413:32413/udp
      - 32414:32414
      - 32414:32414/udp
    environment:
      - PLEX_UID=1000 # Make this the uid of your user account (type "id" in terminal and look for uid=xxxx)
      - PLEX_GID=1000 # Make this the gid of your user account (type "id" in terminal and look for gid=xxxx)
      - ADVERTISE_IP="http://10.0.1.111:32400/"
      - TZ=America/Los_Angeles
      - ALLOWED_NETWORKS="10.0.1.0/24"
      - PLEX_CLAIM="claim" # Visit https://www.plex.tv/claim to get your claim token

Thanks I’ll try this over the weekend. Life got in the way of this project and I’m trying to get back to it.

When you are using host networking there is no need to do any port forwarding

BTW, the ENVs for the user/group ids are PLEX_UID and PLEX_GID. This may be your issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.