forked from Ulexus/docker-zoneminder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.simple
44 lines (43 loc) · 1.13 KB
/
docker-compose.yml.simple
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.2'
services:
db:
image: mysql/mysql-server:5.7
hostname: db
volumes:
- ./mysql:/var/lib/mysql
- ./conf/mysql:/etc/mysql:ro
environment:
- TZ=Europe/London
- MYSQL_USER=zmuser
- MYSQL_PASSWORD=zmpass
- MYSQL_DATABASE=zm
- MYSQL_ROOT_PASSWORD=mysqlpsswd
- MYSQL_ROOT_HOST=%
- SERVICE_PORTS="81"
restart: always
web:
privileged: true
image: myzoneminder2:latest
volumes:
- /var/empty
- /backups:/var/backups
- ./zoneminder:/var/cache/zoneminder
- /media/2TB/zoneminder/events:/var/cache/zoneminder/events
- /media/2TB/zoneminder/images:/var/cache/zoneminder/images
- ./zmeventnotification.ini:/etc/zmeventnotification.ini
- ./revaliases:/etc/ssmtp/revaliases
- ./ssmtp.conf:/etc/ssmtp/ssmtp.conf
- type: tmpfs
target: /dev/shm
ports:
- "81:80"
- "9999:9000"
devices:
- "/dev/video0:/dev/video0"
environment:
- TZ=Europe/London
- VIRTUAL_HOST=zm.localhost, stream0.localhost
- SERVICE_PORTS="81"
- ZM_DB_HOST=db
shm_size: 1000000000
restart: always