server-docker icon indicating copy to clipboard operation
server-docker copied to clipboard

What should APP_PATH contain?

Open vezaynk opened this issue 2 years ago • 1 comments

I'm trying to run the docker image with https, but can't figure out where to place the SSL certs.

Are there some docs for this?

vezaynk avatar Dec 27 '23 06:12 vezaynk

I am not quite sure about SSL certificates

But upon accessing the shell of the Docker container, I came to conclusion that the environment variables that we pass don't make the Docker image store the things there. But it instead informs the image that this is the path that things are going to be at.

You still need to mount the files from your host machine to the container

Something like this:

docker run --rm -d \
  -p 11470:11470 \
  -p 12470:12470 \
  -e NO_CORS=1 \                 # Set environment variable to disable CORS
  -e FFMPEG_BIN=/root/ffmpeg \   # Path to the ffmpeg binary in the container
  -e FFPROBE_BIN=/root/ffprobe \ # Path to the ffprobe binary in the container
  -e APP_PATH=/root/stremio-cfg \           # Path to the application configuration in the container
  -v /root/server-settings.json:/root/stremio-cfg/server-settings.json \ # Bind mount for server settings
  -v /root/ffmpeg/bin/ffmpeg:/root/ffmpeg \ # Bind mount for ffmpeg binary
  -v /root/ffmpeg/bin/ffprobe:/root/ffprobe \ # Bind mount for ffprobe binary
  stremio/server:latest 

Where:

  • /root/server-settings.json is the path of your server-settings.json file on the host machine
  • /root/ffmpeg/bin/ffmpeg is the path of the ffmpeg bin file on the host machine
  • /root/ffmpeg/bin/ffprobe is the path of the ffprobe bin file on the host machine

(i.e. these files have to exist on your host machine)

and:

  • /root/stremio-cfg/server-settings.json is going to be the path of the server-settings.json file inside the container
  • /root/ffmpeg is going to be the path of the ffmpeg bin inside the container
  • /root/ffprobe is going to be the path of the ffprobe bin inside the container

oddmario avatar Dec 03 '24 10:12 oddmario