forked from zoneminder-containers/zoneminder-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-multi.yml
60 lines (56 loc) · 1.09 KB
/
docker-compose-multi.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
version: '3.6'
services:
db:
image: mariadb
restart: always
networks:
- zoneminder
volumes:
- ./zm/db:/var/lib/mysql
environment:
- MYSQL_DATABASE=zm
env_file:
- ./.env
zoneminder1:
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/config1:/config
- ./zm/log1:/log
- type: tmpfs
target: /dev/shm
tmpfs:
size: 1000000000
env_file:
- ./.env
environment:
- ZM_SERVER_HOST=zoneminder1
zoneminder2:
image: ghcr.io/zoneminder-containers/zoneminder-base:latest
restart: always
stop_grace_period: 45s
depends_on:
- db
ports:
- 81:80
networks:
- zoneminder
shm_size: 1G
volumes:
- ./zm/data:/data
- ./zm/config2:/config
- ./zm/log2:/log
env_file:
- ./.env
environment:
- ZM_SERVER_HOST=zoneminder2
networks:
zoneminder: