forked from zoneminder-containers/zoneminder-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 847 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 847 Bytes
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.6'
services:
# !! WARNING: !!
# If using linuxserver/mariadb, you will need to add
# skip-log-bin to mysqld and disable all log_bin options
db:
image: mariadb
restart: always
networks:
- zoneminder
volumes:
- ./zm/db:/var/lib/mysql
environment:
- MYSQL_DATABASE=zm
env_file:
- ./.env
zoneminder:
image: ghcr.io/zoneminder-containers/zoneminder-base:latest
restart: always
stop_grace_period: 45s
depends_on:
- db
ports:
- 80:80
networks:
- zoneminder
volumes:
- ./zm/data:/data
- ./zm/config:/config
- ./zm/log:/log
- type: tmpfs
target: /dev/shm
tmpfs:
size: 1000000000
env_file:
- ./.env
# environment:
# - ZM_SERVER_HOST=zoneminder1
networks:
zoneminder: