i just want to share my setup with working docker from linuxserver.
if this post is not allowed then please delete it - here it goes.
i want to run my ZM in docker, as i do with a lot of other application, most of them are from linuxserver.
for handling all my container, with updated/change settings and updates i use docker-compose
its pretty simple, start with getting a clone of zoneminder from linuxserver on github in the wanted folder you want it to be handled
git clone https://github.com/linuxserver/docker-zoneminder.git
edit root/etc/cont-init.d/30-config and change the timezone
Code: Select all
#Â set php timezone
PHP_TZ=${PHP_TZ:-Europe/Copenhagen}
now return to the folder where the Dockerfile is located create a file called docker-compose.yml and edit it and paste this in, with your edit needs
Code: Select all
version: '3'
services:
zoneminder:
build: .
container_name: zoneminder_ioserver
restart: always
ports:
- 8000:80 #change the first port to where you want it
environment:
- PGID=1001
- PUID=1001
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- /path/for/your/image/video/saving:/data #change for where you want all capture file to be stored
shm_size: 4096M #edit it for fit your memory needs normally half of your totally memory
/nic0