forked from zoneminder-containers/eventserver-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
65 lines (63 loc) · 1.57 KB
/
docker-compose.yaml
File metadata and controls
65 lines (63 loc) · 1.57 KB
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
services:
db:
container_name: db
image: mariadb:11.1
restart: always
healthcheck:
test: ["CMD-SHELL", 'ln -s /usr/bin/mariadb /usr/bin/mysql && mysql -umysqluser -p"this is the sql user pw" zm --execute="SELECT count(Id) > 0 FROM Users;" --skip-column-names -B']
interval: 3s
timeout: 3s
retries: 4
networks:
- zoneminder
ports:
- 3307:3306
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- /ethereum/security/db:/var/lib/mysql
environment:
- MYSQL_DATABASE=zm
env_file:
- ./.env
zoneminder:
container_name: zoneminder
# image: ghcr.io/zoneminder-containers/eventserver-base:latest
# image: zm_eventserver:e45
image: zm_eventserver:152
restart: always
stop_grace_period: 45s
healthcheck:
test: ["CMD-SHELL", "service nginx status"]
interval: 5s
timeout: 3s
retries: 9
start_period: 10s
depends_on:
- db
ports:
- 1080:80
- 444:443
- 9000:9000
networks:
- zoneminder
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- /ethereum/security/data:/data
- /ethereum/security/log:/log
- ./config:/config
- ./data/nginx:/etc/nginx/conf.d
- ./sounds:/var/www/html/sounds
- type: tmpfs
target: /dev/shm
tmpfs:
size: 1000000000
devices:
# VAAPI Devices
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card0:/dev/dri/card0
env_file:
- ./.env
networks:
zoneminder: