How to add storage area at host filesystem to zm in docker container?

Support for the docker image maintained by dlandon
Post Reply
andrew-yu
Posts: 24
Joined: Thu Sep 20, 2018 7:50 am

How to add storage area at host filesystem to zm in docker container?

Post by andrew-yu »

How to add storage area at host filesystem to zm in docker container?
User avatar
burger
Posts: 434
Joined: Mon May 11, 2020 4:32 pm

Re: How to add storage area at host filesystem to zm in docker container?

Post by burger »

This is a docker question, not a ZM question. Try docker resources.

Typically you use Volumes for this.
e.g.

Code: Select all

nginx: image: 
nginx:latest 
container_name: custom_name_for_my_proxy 
volumes:
 - ./nginx.conf:/etc/nginx/nginx.conf 
 - /etc/letsencrypt/:/etc/letsencrypt/ 
 - ./webroot/:/var/www/html/
Here the first column is the host path, and the second column is the docker container's path.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Post Reply