Can't run a Plex docker-compose file correctly reddit / selfhosted ---------------------------------------------------------------------- chaplin2 · 2023-10-01 11:03 I don't seem to be able to run the linuxserver Plex docker container correctly. The docker compose file is simple and copied below. The user PUID and group PGID are obtained from /etc/passwd entries or "id -u". The user with PUID and PGID has full permission to /myconfig and /mymovies in the host. I tried various different users, some with admin privileges. The container runs, but in the PLEX account I don't see any option to find local media. There is a bunch of annoying TV and movie and streaming advertisements/promotions. What am I doing wrong? ​ --- version: "2.1" services: plex: image: lscr.io/linuxserver/plex:latest container_name: plex network_mode: host environment: - PUID= 1026 - PGID= 100 - VERSION=docker volumes: - /myconfig:/config - /mymovies:/movies restart: unless-stopped ​ ---------------------------------------------------------------------- needadvicebadly · 2023-10-01 12:50 during setup, when on the Media Library step you should be able to add any library you want and set the path for it. It's been a while since I went through setup. but you can skip all that, and once plex loads up go to settings. 1. Scroll down on the left to Manage > Libraries 1. delete any Discover or any annoying streaming library 1. click Add Library 1. just go through the wizard. It should let you pick your path ---------------------------------------------------------------------- chaplin2 · 2023-10-01 13:09 These are server settings. The container shows the settings in the user account in the company website. It doesn’t recognize any server. There is a “+Your Media” which brings a page: download and install plex server! ---------------------------------------------------------------------- thekrautboy · 2023-10-01 13:52 - PUID= 1026 - PGID= 100 Turn that, into this: - PUID=1026 - PGID=100 But i think you might have a a more fundamental misunderstanding of how Plex works and what it does, and what it doesnt. /r/Plex is there for you. ---------------------------------------------------------------------- chaplin2 · 2023-10-01 14:37 Thank you very much for the help! The issue seems to have been the missing /web after the port number. I also removed the space around the “=“ and added the claim token in docker file, though I’m not sure if those were also a problem (token could be added in the settings later). Without /web, it asks for email and SSO login and logs into the plex the company website. It works now! ---------------------------------------------------------------------- sk1nT7 · 2023-10-01 21:25 There is also an official docker image: ```` version: '3.3' services: pms-docker: image: plexinc/pms-docker container_name: plex environment: - TZ=Europe/Berlin - PLEX_CLAIM=claim-dvmURANy9Z7MbJhmY7V7 # pls adjust volumes: - ${DOCKER_VOLUME_STORAGE:-/mnt/docker- volumes}/plex/config:/config - ${DOCKER_VOLUME_STORAGE:-/mnt/docker- volumes}/plex/transcode:/transcode - ${DOCKER_VOLUME_STORAGE:-/mnt/docker- volumes}/plex/media:/data restart: unless-stopped ports: - '32400:32400' ````