Skip to main content

Docker specific instructions

It's recommended to set a good amount of RAM depending on your hardware. We recommend using 95% if this is a dedicated server. Otherwise we would recommend at least 50% of your RAM. In the interest of keeping this quick and simple the --shm-size=### flag has been set to use 4GB of your RAM.

Set up the following values!

  • /PATH/TO/CONFIG.JSON Host location where you want to store the MistServer configuration.
  • /FOLDER/WITH/VIDEOFILES Host location where VoD content is available
  • 4g Amount of shared memory available to the docker image
docker run --detach --mount type=bind,source=/PATH/TO/CONFIG.JSON,destination=/config.json --mount type=bind,source=/FOLDER/WITH/VIDEOFILES,destination=/video --shm-size=4g --network=host ddvtech/mistserver

For more details please visit our official dockerhub page Keep in mind that these Docker images are completely bare bones. Only MistServer is within these images and they lack any form of OS. Should you wish to include an OS or additional applications we recommend creating your own Docker

Creating your own Docker

Adding MistServer to your own Docker images is quite easy. Adding the binaries from the Docker image would run on any docker image. You can also choose to compile MistServer if you are creating a Docker image with a distro.

An Ubuntu 22.04 bare minimum Dockerfile would look like this:

FROM ubuntu:22.04
RUN apt-get -y update && apt-get -y install build-essential git python3-pip
RUN python3 -m pip install meson ninja
RUN git clone https://github.com/DDVTECH/mistserver.git
RUN cd mistserver && git checkout development && meson setup build --default-library static && cd build && ninja install
CMD MistController -c /etc/mistserver.conf

If you're building your own Dockers there's a good chance you know what you want configurationwise. However keep in mind that you still need to give your Docker enough shared memory to work with. We recommend having a look at our recommendations on our official dockerhub page.