mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 11:58:47 +00:00
.. | ||
mysql | ||
docker-compose.yml | ||
Dockerfile | ||
nginx.conf | ||
README.md |
zoneminder
ZoneMinder is a full-featured, open source, state-of-the-art video surveillance software system. Monitor your home, office, or wherever you want. Using off the shelf hardware with any camera, you can design a system as large or as small as you need.
docker-compose.yml
zoneminder:
image: vimagick/zoneminder
ports:
- "8080:80"
links:
- mysql
restart: always
mysql:
image: mysql
volumes:
- ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
- ./mysql:/docker-entrypoint-initdb.d
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
environment:
- MYSQL_ROOT_PASSWORD=root
restart: always
timezone = Asia/Shanghai
was hard-coded in Dockerfile.- Make sure two containers have the same timezone.
up and running
$ docker-compose up -d
- Open http://localhost:8080/zm/
- Add New Monitor
- Click Presets
- Change Source
- Save
- Run State: Stopped -> Running