Hi everyone,
I’m working on a new way to deploy plex media server on my personal server using docker-compose.
My deployment looks like this:
I have a:
docker container with plex server running in it 
docker container running Traefik a reverse proxy that make it easier to have ssl certificates on your domain 
 
My plex container communicates with the Traefik container through the docker network interface.
When I go to the remote access settings, I see that the connection is:
“Not available outside your network”
Private 172.18.0.3 : 32400   <=   Public XXX.XXX.XXX.XXX : 8080   X    Internet
I’m able to watch my movies but the quality of the streaming is really bad compared to my previous bare metal setup on the same machine.
The plex iOS app is also unable to connect to the server.
Thank you for your help !
             
            
              
            
           
          
            
            
              Hey,
Im having the same issue, did u figure it out?
             
            
              
            
           
          
            
            
              Do you mind sharing your docker-compose.yml?
             
            
              
            
           
          
            
            
              Sure, see below (tried to attach but didnt accept yaml files for some reason)
version: '3'
services:
  proxy:
    image: traefik:latest
    container_name: traefik
    env_file:
      - ../.env
    command: --web.address=":${ADMIN_PORT}" --docker.domain="${DOCKER_DOMAIN}" --docker.usebindportip=true --acme.email="${ACME_EMAIL}"
    networks:
      - default
      - traefik_public
    ports:
      - "80:80" # for the HTTP -> HTTPS redirection
      - "443:443"
      - "${ADMIN_PORT}:${ADMIN_PORT}"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./traefik.toml:/etc/traefik/traefik.toml:ro
      - ./acme/:/etc/traefik/acme
networks:
  traefik_public:
    external: true
  default:
    driver: bridge
Plex compose:
version: '3'
services:
  plex:
    image: plexinc/pms-docker:latest
    container_name: plex
    networks:
      - ${COMPOSE_PROJECT_NAME}_traefik_public
    environment:
      - PLEX_CLAIM="${PLEX_TOKEN}"
      - PLEX_UID=${USER_ID}
      - PLEX_GID=${GROUP_ID}
      - ALLOWED_NETWORKS=${ALLOWED_NETWORKS}
      - ADVERTISE_IP=${ADVERTISE_IP}
      - TZ=${TZ}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${NAS_PATH}:/data/media
      - ${APPDATA_PATH}/plex/config/:/config
      - ${APPDATA_PATH}/plex/transcode/:/transcode
    labels:
      - "traefik.enable=true"
      - "traefik.backend=plex"
      - "traefik.frontend.rule=Host:${DOMAIN_NAME}; PathPrefixStrip: /plex"
      - "traefik.port=32400"
      - "traefik.docker.network=${COMPOSE_PROJECT_NAME}_traefik_public"
    ports:
      - 32400:32400/tcp
      - 3005:3005/tcp
      - 8324:8324/tcp
      - 32469:32469/tcp
      - 1900:1900/udp
      - 32410:32410/udp
      - 32412:32412/udp
      - 32413:32413/udp
      - 32414:32414/udp
    depends_on:
      - transmission
      - sonarr
      - radarr
    restart: always
networks:
  ${COMPOSE_PROJECT_NAME}_traefik_public:
    external:
      name: ${COMPOSE_PROJECT_NAME}_traefik_public
 
            
              
            
           
          
            
            
              Did you find a solution to the issue?
             
            
              
            
           
          
            
            
              I have Plex + Traefik working in Docker, here’s my docker-compose.yml: github.com/PlqnK/docker-media-services-host/blob/master/docker-compose.yml . I also have the port 32400 forwarded to my docker host in my router but I’m not even sure if it’s required.
             
            
              1 Like 
            
            
           
          
            
            
              I’m seeing that you use subdomains,  that is of no issue for Plex & Traefik.  It’s when you want to use subfolders, things get tricky 
Thanks for sharing though 
             
            
              
            
           
          
            
            
              Oh right sorry I didn’t understand it was about subfolder. You should definitely register a custom domain though, it can be very cheap (can be 1 or 2€ per year, depending on the extension) and a lot of DNS providers can be used as Dynamic DNS providers, for example OVH with it’s DynHost API, Gandi with it’s LiveDNS API or a DNS provider that support the RFC2136 standard.
             
            
              
            
           
          
            
            
              Hi All 
I found the solution here in the docker-compose:
Follow the README
I have tried that on my server.
Thnaks
             
            
              
            
           
          
            
              
                system  
              
                  
                    March 3, 2020,  5:36pm
                   
                  10 
               
             
            
              This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.