-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
195 lines (184 loc) · 4.68 KB
/
docker-compose.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
version: '3'
services:
# mlbase:
# image: slayerus/mlbase:cpu
# build:
# context: ./mlbase
# dockerfile: dist/cpu/Dockerfile
# args:
# python_version: '3.8'
# opencv_version: '4.5.2'
# dlib_version: 'v19.22'
zm:
image: slayerus/zoneminder:1.36
# build:
# context: ./zoneminder
# args:
# version: '1.36'
# ffmpeg_version: 4.4-ubuntu1804
ipc: service:shmem
environment:
TZ: 'Europe/Moscow'
ZM_DB_HOST: db
ZM_DB_NAME: zm
ZM_DB_USER: zmuser
ZM_DB_PASS: zmpass
volumes:
- zm-log:/var/log/zm
- zm-data:/var/cache/zoneminder
- zm-run:/var/run/zm
- zm-tmp:/tmp/zm
depends_on:
- shmem
- db
zmen:
build:
context: ./zmeventnotification
dockerfile: Dockerfile
args:
version: '6.1.25'
zm_version: '1.36'
mlbase_version: 'cpu'
#image: nitwof/zmeventnotification:6.0.6
ipc: service:shmem
environment:
TZ: 'Europe/Moscow'
ZM_DB_HOST: db
ZM_DB_NAME: zm
ZM_DB_USER: zmuser
ZM_DB_PASS: zmpass
volumes:
# - ./.config/zmeventnotification.ini:/etc/zm/zmeventnotification.ini:ro
# - ./.config/objectconfig.ini:/etc/zm/objectconfig.ini:ro
# - ./.config/zmeventnotification.mlapi.ini:/etc/zm/zmeventnotification.ini:ro
# - ./.config/objectconfig.mlapi.ini:/etc/zm/objectconfig.ini:ro
- zm-log:/var/log/zm
# - zm-images:/var/lib/zmeventnotification/images
# - zm-known_faces:/var/lib/zmeventnotification/known_faces
# - zm-unknown_faces:/var/lib/zmeventnotification/unknown_faces
- zmen-push:/var/lib/zmeventnotification/push
depends_on:
- shmem
- db
# zmen-mlapi:
# build:
# context: ./zmeventnotification
# dockerfile: mlapi/Dockerfile
# args:
# version: '6.1.25'
# zm_version: '1.36'
# python_version: '3.8'
# #image: nitwof/zmeventnotification:6.0.6-mlapi
# ipc: service:shmem
# environment:
# TZ: 'Europe/Moscow'
# ZM_DB_HOST: db
# ZM_DB_NAME: zm
# ZM_DB_USER: zmuser
# ZM_DB_PASS: zmpass
# volumes:
# # - ./.config/zmeventnotification.mlapi.ini:/etc/zm/zmeventnotification.ini:ro
# # - ./.config/objectconfig.mlapi.ini:/etc/zm/objectconfig.ini:ro
# - zm-log:/var/log/zm
# #- ./.volumes/zmen/images:/var/lib/zmeventnotification/images
# - zmen-push:/var/lib/zmeventnotification/push
# depends_on:
# - shmem
# - db
mlapi:
build:
context: ./mlapi
dockerfile: Dockerfile
args:
version: 'v2.2.20'
mlbase_version: 'cpu'
#image: nitwof/mlapi:latest
environment:
MLAPI_USER: zmuser
MLAPI_PASSWORD: zmpass
volumes:
# - ./.config/mlapiconfig.ini:/mlapi/mlapiconfig.ini:ro
#- ./.volumes/mlapi/images:/mlapi/images
#- ./.volumes/mlapi/known_faces:/mlapi/known_faces
#- ./.volumes/mlapi/unknown_faces:/mlapi/unknown_faces
- mlapi-db:/mlapi/db
zmweb:
build:
context: ./zmweb
args:
zm_version: '1.36'
#image: nitwof/zoneminder:1.34-apache
ipc: service:shmem
environment:
TZ: 'Europe/Moscow'
ZM_DB_HOST: db
ZM_DB_NAME: zm
ZM_DB_USER: zmuser
ZM_DB_PASS: zmpass
volumes:
- zm-log:/var/log/zm
- zm-data:/var/cache/zoneminder
- zm-run:/var/run/zm
- zm-tmp:/tmp/zm
ports:
- '8080:80'
depends_on:
- shmem
- db
zmaudit:
image: slayerus/zoneminder:1.36
# build:
# context: ./zoneminder
# args:
# version: '1.36'
# ffmpeg_version: 4.4-ubuntu1804
command: '/usr/bin/zmaudit.pl -c'
environment:
TZ: 'Europe/Moscow'
ZM_DB_HOST: db
ZM_DB_NAME: zm
ZM_DB_USER: zmuser
ZM_DB_PASS: zmpass
volumes:
- zm-log:/var/log/zm
- zm-data:/var/cache/zoneminder
- zm-run:/var/run/zm
- zm-tmp:/tmp/zm
depends_on:
- shmem
- db
shmem:
image: alpine:3.12
command: sleep infinity
shm_size: '2gb'
ipc: shareable
logrotate:
image: blacklabelops/logrotate:1.3
environment:
TZ: 'Europe/Moscow'
LOGS_DIRECTORIES: '/var/log/zm'
LOGROTATE_COMPRESSION: compress
LOGROTATE_SIZE: 10M
volumes:
- zm-log:/var/log/zm
db:
image: mariadb:10.5
environment:
TZ: 'Europe/Moscow'
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_USER: 'zmuser'
MYSQL_PASSWORD: 'zmpass'
MYSQL_DATABASE: 'zm'
volumes:
- db:/var/lib/mysql
volumes:
db:
mlapi-db:
# zm-images:
# zm-known_faces:
# zm-unknown_faces:
zmen-push:
zm-run:
zm-tmp:
zm-log:
zm-data: