Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose does not work #35

Open
kylewhirl opened this issue May 29, 2024 · 6 comments
Open

Docker Compose does not work #35

kylewhirl opened this issue May 29, 2024 · 6 comments

Comments

@kylewhirl
Copy link

Docker compose file runs into issue where the Docker container will not run because the config.json and channels.json files are mounted as directories instead of as files

@speakradmin
Copy link

speakradmin commented Jun 6, 2024

Yes please clarify initial setup with docker. Using debian 12 with vanilla docker. I change directory to /opt create docker-compose.yaml and add the contents from the readme. When I run docker compose up -d It doesn't seem to start the container. It's looking for the config and channel files and I can't figure out where to put them.

docker logs opt-plex-dvr-hls-1

2024/06/06 14:30:14 read channels.json: is a directory time="2024-06-06 14:30:14" level=info msg="Parser started" time="2024-06-06 14:31:40" level=info msg="Parser started" 2024/06/06 14:31:40 read channels.json: is a directory

A directory named config.json and channells.json gets created so I assumed I should just create the json files in there ie:

nano config.json/config.json and nano channels.json/channels.json but that doesn't work

@GregTroar
Copy link

same here, always a problem to bind files with docker compose....

@speakradmin
Copy link

speakradmin commented Jun 11, 2024

Try this:

mkdir /opt/plex-dvr-hls

mkdir /opt/plex-dvr-hls/config

Then cd to /opt and use this docker compose file

cd /opt

nano /opt/docker-compose.yaml

services:
    plex-dvr-hls:
        image: ghcr.io/duncanleo/plex-dvr-hls:latest
        volumes:
            - /opt/plex-dvr-hls/config/config.json:/app/config.json:ro
            - /opt/plex-dvr-hls/config/channels.json:/app/channels.json:ro
            - /opt/plex-dvr-hls/templates:/templates:ro
        ports:
           - 5004:5004

docker compose up -d

Create the config.json, channels.json and template files

nano /opt/plex-dvr-hls/config/config.json

nano /opt/plex-dvr-hls/config/channels.json

nano /opt/plex-dvr-hls/templates/xmltv.tmpl

One by one add the contents as described in the readme

docker restart plex-dvr-hls

@ray-frey
Copy link

Same issue here. Do any of the older releases work properly with docker compose?

@duncanleo
Copy link
Owner

Hi all, apologies for the confusion. I think the root cause here is the following:

  • unclear instructions on creating and placing channels.json and config.json
  • Docker Compose volume creating and mounting directories by default if the above files did not exist

I've switched the sample docker-compose.yml over to utilise Docker bind mounts, which will cause Docker Compose to display an error instead of creating directories.

I've also updated the README to clarify the need for the two files to be created.

Please let me know if there are more improvements that can be made here!

@speakradmin
Copy link

It's working thank you @duncanleo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants