Drewpeifer / medialytics

A basic, free tool that shows information about Plex Media Server content
GNU General Public License v3.0
112 stars 9 forks source link

Plex service name not working #13

Closed modem7 closed 3 months ago

modem7 commented 11 months ago

Heya,

External domain works, but for some odd reason, internal Docker DNS service name does not.

  medialytics:
    image: ghcr.io/drewpeifer/medialytics:latest
    container_name: Medialytics
    environment:
      - SERVER_IP=plex
      - SERVER_TOKEN=$PLEXTOKEN
    networks:
      pihole:
        ipv4_address: '172.22.0.111'
    ports:
      - "27015:80"
    depends_on:
      - plex
    restart: always

Is there any way to get this working? Seems odd going out of the network just to come back in to get the relevant stats.

I can use the internal server IP (http://192.168.etc.etc:port), but given that Docker can work in this way, it may be worthwhile investigating to see if it can be used.

jzucker2 commented 11 months ago

Did you try http://plex instead of plex for SERVER_IP? If so, is the result different then with just plex? It'd be helpful if you could share some logs, there should be something in the Dev Panel in Chrome.

ponchohoncho commented 4 months ago

It looks like SERVER_IP is supposed to take a full URL, not just an IP. I couldn't get it to work with the IP, but when I made it a full URL (adding the http:// or https://) then it worked. It'll also take a FQDN with protocol, not just an IP.