Git Product home page Git Product logo

zmdockerfiles's Introduction

Zoneminder 1.33

This was pulled from the https://github.com/ZoneMinder/zmdockerfiles/blob/master/development/ubuntu/xenial/Dockerfile Almost all the information here was taken from that repo above and I'm sure I'm not crediting them correctly

Install on most platforms

On other platforms, you can run this docker container with the following command:

docker run -d --name="zoneminder" --privileged=true -v /path/to/config:/config:rw -v /etc/localtime:/etc/localtime:ro -p 80:80 magicalyak/docker-zoneminder

Tips and Setup Instructions:

ZoneMinder uses /dev/shm for shared memory and many users will need to increase the size significantly at runtime like so:

docker run -d -t -p 1080:443 \
    --shm-size="512m" \
    --name zoneminder \
    magicalyak/zoneminder

ZoneMinder checks the TZ environment variable at runtime to determine the timezone. If this variable is not set, then ZoneMinder will default to UTC. Alternaitvely, the timezone can be set manually like so:

docker run -d -t -p 1080:443 \
    -e TZ='America/Los_Angeles' \
    --name zoneminder \
    magicalyak/zoneminder

ZoneMinder can write its data to folders outside the container using volumes.

docker run -d -t -p 1080:443 \
    -v /disk/zoneminder/events:/var/lib/zoneminder/events \
    -v /disk/zoneminder/mysql:/var/lib/mysql \
    -v /disk/zoneminder/logs:/var/log/zm \
    --name zoneminder \
    magicalyak/zoneminder

ZoneMinder can use an external database by setting the appropriate environment variables.

docker run -d -t -p 1080:443 \
    -e ZM_DB_USER='zmuser' \
    -e ZM_DB_PASS='zmpassword' \
    -e ZM_DB_NAME='zoneminder_database' \
    -e ZM_DB_HOST='my_central_db_server' \
    -v /disk/zoneminder/events:/var/lib/zoneminder/events \
    -v /disk/zoneminder/logs:/var/log/zm \
    --name zoneminder \
    magicalyak/zoneminder

Here is an example using the options described above with the internal database:

docker run -d -t -p 1080:443 \
    -e TZ='America/Los_Angeles' \
    -v /disk/zoneminder/events:/var/lib/zoneminder/events \
    -v /disk/zoneminder/mysql:/var/lib/mysql \
    -v /disk/zoneminder/logs:/var/log/zm \
    --shm-size="512m" \
    --name zoneminder \
    magicalyak/zoneminder

Here is an example using the options described above with an external database:

docker run -d -t -p 1080:443 \
    -e TZ='America/Los_Angeles' \
    -e ZM_DB_USER='zmuser' \
    -e ZM_DB_PASS='zmpassword' \
    -e ZM_DB_NAME='zoneminder_database' \
    -e ZM_DB_HOST='my_central_db_server' \
    -v /disk/zoneminder/events:/var/lib/zoneminder/events \
    -v /disk/zoneminder/logs:/var/log/zm \
    --shm-size="512m" \
    --name zoneminder \
    magicalyak/zoneminder

Important:

  • The web gui will be available at http://serverip:port/zm
  • On first start, open zoneminder settings, go to the paths tab and enter the following for PATH_ZMS: /zm/cgi-bin/nph-zms
  • The default timezone for php is set as America/New_York if you would like to change it, edit the php.ini in the config folder. Here's a list of available timezone options: http://php.net/manual/en/timezones.php

Changelog:

  • 2019-05-17 - Updated to official docker image and 1.33
  • 2016-03-26 - Fixed the images, events and temp folder paths
  • 2016-03-14 - Fixed the Cambozola location
  • 2016-03-10 - Release
  • 2016-02-02 - forked from tokyis and aptalca to magicalyak for 1.30

zmdockerfiles's People

Contributors

knight-of-ni avatar fawick avatar magicalyak avatar humorbaby avatar thoraxe avatar basm avatar petegallagher avatar si458 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.