-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose-mlapi.yml
54 lines (52 loc) · 1.28 KB
/
docker-compose-mlapi.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
version: '2'
volumes:
data:
db:
services:
mariadb:
image: mariadb:11.1-jammy
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --default-time-zone=America/New_York
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_PASSWORD=zmpass
- MYSQL_DATABASE=zm
- MYSQL_USER=zmuser
- MARIADB_ROOT_PASSWORD=w8t67u23789t
mlapi:
image: ghcr.io/jantman/docker-zm-mlapi:latest
restart: always
ports:
- 8088:80
depends_on:
- zm
tmpfs:
- /run
- /tmp
volumes:
- ./data:/var/lib/zmeventnotification
- ./cache:/var/cache/zoneminder
- ./mlapiconfig.ini:/etc/mlapiconfig.ini
- ./secrets.ini:/etc/secrets.ini
zm:
image: ghcr.io/jantman/docker-zoneminder:latest
restart: always
shm_size: 1G
ports:
- 8080:80
depends_on:
- mariadb
tmpfs:
- /run
- /tmp
environment:
- LOG_DEBUG=true
volumes:
- ./cache:/var/cache/zoneminder
- ./zm-log:/var/log/zm
- ./apache2-log:/var/log/apache2
- ./es_rules.json:/etc/zm/es_rules.json
- ./secrets.ini:/etc/zm/secrets.ini
- ./zmeventnotification.ini:/etc/zm/zmeventnotification.ini
- ./objectconfig.ini:/etc/zm/objectconfig.ini