mirror of
https://github.com/Nardo86/zm-docker.git
synced 2025-02-16 11:40:46 +01:00
docs: Updated Readme block code
This commit is contained in:
parent
7fbb1a7625
commit
379a86f3b3
69
README.md
69
README.md
@ -17,45 +17,42 @@ _Tested on my MiniPC Intel x64 and SWAG_
|
|||||||
|
|
||||||
Just run the image publishing the port and setting the ENV variables, the shm dedicated and mounting the folder you wish to map.
|
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 \`
|
docker run -d \
|
||||||
` -p 443:443 \`
|
--name=zoneMinder \
|
||||||
` -e TZ=Europe/Rome \`
|
-p 443:443 \
|
||||||
` -e SELFSIGNED=0 \`
|
-e TZ=Europe/Rome \
|
||||||
` -e FQDN=your.fqdn \`
|
-e SELFSIGNED=0 \
|
||||||
` --shm-size=1g \`
|
-e FQDN=your.fqdn \
|
||||||
` -v /mystorage/ZoneMinder/config:/config \`
|
--shm-size=1g \
|
||||||
` -v /mystorage/ZoneMinder/zmcache:/var/cache/zoneminder \`
|
-v /mystorage/ZoneMinder/config:/config \
|
||||||
` -v /mystorage/Swag/etc/letsencrypt/live:/sslcert/live \`
|
-v /mystorage/ZoneMinder/zmcache:/var/cache/zoneminder \
|
||||||
` -v /mystorage/Swag/etc/letsencrypt/archive:/sslcert/archive \`
|
-v /mystorage/Swag/etc/letsencrypt/live:/sslcert/live \
|
||||||
` --restart unless-stopped \`
|
-v /mystorage/Swag/etc/letsencrypt/archive:/sslcert/archive \
|
||||||
` nardo86/zoneminder`
|
--restart unless-stopped \
|
||||||
|
nardo86/zoneminder
|
||||||
|
```
|
||||||
|
|
||||||
Or add to your docker compose
|
Or add to your docker compose
|
||||||
|
|
||||||
`zoneminder:`
|
```
|
||||||
` image: nardo86/zoneminder`
|
zoneminder:
|
||||||
` container_name: zoneminder`
|
image: nardo86/zoneminder
|
||||||
` ports:`
|
container_name: zoneminder
|
||||||
` - "443:443"`
|
ports:
|
||||||
` environment:`
|
- "443:443"
|
||||||
` - "TZ=Europe/Rome"`
|
environment:
|
||||||
` - "SELFSIGNED=0"`
|
- "TZ=Europe/Rome"
|
||||||
` - "FQDN=your.fqdn"`
|
- "SELFSIGNED=0"
|
||||||
` volumes:`
|
- "FQDN=your.fqdn"
|
||||||
` - "/mystorage/ZoneMinder/config:/config"`
|
volumes:
|
||||||
` - "/mystorage/ZoneMinder/zmcache:/var/cache/zoneminder"`
|
- "/mystorage/ZoneMinder/config:/config"
|
||||||
` - "/mystorage/Swag/etc/letsencrypt/live:/sslcert/live"`
|
- "/mystorage/ZoneMinder/zmcache:/var/cache/zoneminder"
|
||||||
` - "/mystorage/Swag/etc/letsencrypt/archive:/sslcert/archive"`
|
- "/mystorage/Swag/etc/letsencrypt/live:/sslcert/live"
|
||||||
` shm_size: '1gb'`
|
- "/mystorage/Swag/etc/letsencrypt/archive:/sslcert/archive"
|
||||||
` deploy:`
|
shm_size: '1gb'
|
||||||
` resources:`
|
restart: unless-stopped
|
||||||
` limits:`
|
```
|
||||||
` cpus: '2'`
|
|
||||||
` reservations:`
|
|
||||||
` cpus: '0.1'`
|
|
||||||
` memory: 50M`
|
|
||||||
` restart: unless-stopped`
|
|
||||||
|
|
||||||
The FQDN will be used for configuring Apache2; the SELFSIGNED flag will generate a selfsigned certificate if needed else, in case of using the SWAG certificate, the system find the correct folder.
|
The FQDN will be used for configuring Apache2; the SELFSIGNED flag will generate a selfsigned certificate if needed else, in case of using the SWAG certificate, the system find the correct folder.
|
||||||
The /config folder will contain msmtp and mysql configuration.
|
The /config folder will contain msmtp and mysql configuration.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user