(Current version: 1.35 (master))
DEPRECATED and no longer available.
This is an easy to run dockerized image of ZoneMinder along with the the ZM Event Notification Server and its machine learning subsystem (which is disabled by default but can be enabled by a simple configuration).
The configuration settings that are needed for this implementation of Zoneminder are pre-applied and do not need to be changed on the first run of Zoneminder.
This verson will now upgrade from previous versions.
Install the docker by going to a command line and enter the command:
docker pull dlandon/zoneminder.master
This will pull the zoneminder master docker image. Note that ZoneMinder master should always be treated as a development release. If you want to run the latest stable release, please use this repo. Once it is installed you are ready to run the docker.
Before you run the image, feel free to read configuration section below to customize various settings
To run Zoneminder:
docker run -d --name="Zoneminder" \
--net="bridge" \
--privileged="false" \
--shm-size="8G" \
-p 8443:443/tcp \
-p 9000:9000/tcp \
-e TZ="America/New_York" \
-e PUID="99" \
-e PGID="100" \
-v "/mnt/Zoneminder":"/config":rw \
-v "/mnt/Zoneminder/data":"/var/cache/zoneminder":rw \
dlandon/zoneminder.master
For http:// access use: -p 8080:80/tcp
Set your shared memory to half of your installed memory.
Note: If you have opted to install face recognition, and/or have opted to download the yolo models, it takes time.
Face recognition in particular can take several minutes (or more). Once the docker run
command above completes, you may not be able to access ZoneMinder till all the downloads are done. To follow along the installation progress, do a docker logs -f zoneminder
to see the syslog for the container that was created above.
You can start/stop/restart the container anytime. You don't need to run the command above every time. If you have already created the container once (by the docker run
command above), you can simply do a docker stop Zoneminder
to stop it and a docker start Zoneminder
to start it anytime (or do a docker restart zoneminder
)
- The command above use a host path of
/mnt/Zoneminder
to map the container config and cache directories. This is going to be persistent directory that will retain data across container/image stop/restart/deletes. ZM mysql/other config data/event files/etc are kept here. You can change this to any directory in your host path that you want to.
-
After successful installation, please refer to the ZoneMinder, Event Server and Machine Learning configuration guides from the authors of these components to set it up to your needs. Specifically, if you are using the Event Server and the Machine learning hooks, you will need to customize
/etc/zm/zmeventnotification.ini
and/etc/zm/objectconfig.ini
-
Note that by default, this docker build runs ZM on port 443 inside the docker container and maps it to port 8443 for the outside world. Therefore, if you are configuring
/etc/zm/objectconfig.ini
or/etc/zm/zmeventnotification.ini
remember to usehttps://localhost:443/<etc>
as the base URL -
Push notifications with images will not work unless you replace the self-signed certificates that are auto-generated. Feel free to use the excellent and free LetsEncrypt service if you'd like.
To access the Zoneminder gui, browse to: https://<your host ip>:8443/zm
The zmNinja Event Notification Server is accessed at port 9000
. Security with a self signed certificate is enabled. You may have to install the certificate on iOS devices for the event notification to work properly.
If you have a situation where the docker fails to start, you can set an environemtnt variable when the docker is started and MySql and Zoneminder will not be started. This will keep the docker running so you can get into a command line in the docker and troubleshoot the problem.
Create an environment variable: NO_START_ZM="1"
MySql and Zoneminder will not be started.
Get into a command line in the docker and troubleshoot your issue by using the following commands to start MySql and zonemonder and fix any errors/problems with them starting.
service mysql start
service zoneminder start