forked from zoneminder-containers/zoneminder-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
43 lines (40 loc) · 849 Bytes
/
docker-compose.test.yml
File metadata and controls
43 lines (40 loc) · 849 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
version: '3.6'
services:
db:
container_name: db
image: mariadb
restart: always
networks:
- zoneminder
volumes:
- ./zm/db:/var/lib/mysql
environment:
- MYSQL_DATABASE=zm
env_file:
- ./.env
zoneminder:
container_name: zoneminder
image: ci:latest
# Disable automatic restarts so we know if container dies on startup
deploy:
restart_policy:
condition: none
# Make grace period extremely long so test fails if
# container doesn't automatically terminate
stop_grace_period: 1h
depends_on:
- db
ports:
- 80:80
networks:
- zoneminder
volumes:
- ./zm/data:/data
- ./zm/config:/config
- ./zm/log:/log
env_file:
- ./.env
environment:
- ZM_SERVER_HOST=zoneminder1
networks:
zoneminder: