mirror of https://github.com/Nardo86/zm-docker.git
This commit is contained in:
parent
9c5fb1fee8
commit
5abbb63eb0
19
README.md
19
README.md
|
@ -16,17 +16,29 @@ _Tested on my Raspberry Pi 4 with SWAG_
|
|||
Just run the image publishing the port and setting the ENV variables, the shm dedicated and mounting the folder you wish to map.
|
||||
|
||||
`docker run -d \`
|
||||
|
||||
` --name=ZoneMinder \`
|
||||
|
||||
` -p 443:443/tcp \`
|
||||
|
||||
` -e TZ=Europe/Rome \`
|
||||
|
||||
` -e SELFSIGNED=0 \`
|
||||
|
||||
` -e FQDN=your.fqdn \`
|
||||
|
||||
` --shm-size=1.5g \`
|
||||
|
||||
` -v /mystorage/ZoneMinder/config:/config \`
|
||||
|
||||
` -v /mystorage/ZoneMinder/zmcache:/var/cache/zoneminder \`
|
||||
|
||||
` -v /mystorage/Swag/etc/letsencrypt/live:/sslcert/live \`
|
||||
|
||||
` -v /mystorage/Swag/etc/letsencrypt/archive:/sslcert/archive \`
|
||||
|
||||
` --restart unless-stopped \`
|
||||
|
||||
` nardo86/zoneminder`
|
||||
|
||||
The SELFSIGNED flag will , the FQDN will be used for configuring Apache2 and, in case of using the SWAG certificate, find the correct folder and the /config folder will contain msmtp and mysql configuration.
|
||||
|
@ -39,12 +51,19 @@ To access the Zoneminder gui, browse to: https://your.fqdn:443/zm
|
|||
If you need to transfer your data from another instance this method worked for me https://forums.zoneminder.com/viewtopic.php?t=17071:
|
||||
|
||||
Backup the old DB
|
||||
|
||||
`root@oldSystem# mysqldump -p zm > /config/zm-dbbackup.sql`
|
||||
|
||||
Restore into the new DB
|
||||
|
||||
`root@newSystem# mysql -p zm < /config/zm-dbbackup.sql`
|
||||
|
||||
Sync folders
|
||||
|
||||
`root@newSystem# rsync -r -t -p -o -g -v --progress --delete user@oldSystem:/var/cache/zoneminder/* /var/cache/zoneminder/`
|
||||
|
||||
Init / cleanup
|
||||
|
||||
`root@newSystem# zmaudit.pl`
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue