-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (70 loc) · 2.72 KB
/
docker-compose.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
61
62
63
64
65
66
67
68
69
70
71
72
73
---
version: "3.2"
services:
shinobi:
build:
context: ./shinobi
args:
#BASE_IMAGE_WITH_FFMPEG: "${SHINOBI_BASE_IMAGE:-colinnolan/ffmpeg}"
SHINOBI_REPOSITORY_URL: "${SHINOBI_REPOSITORY_URL:-https://gitlab.com/Shinobi-Systems/Shinobi.git}"
SHINOBI_REPOSITORY_BRANCH: "${SHINOBI_REPOSITORY_BRANCH:-master}"
SHINOBI_REPOSITORY_COMMIT: "${SHINOBI_REPOSITORY_COMMIT:-}"
#image: shinobi
restart: always
volumes:
# - type: bind
# source: "${SHINOBI_CONFIG_LOCATION:-./shinobi/config.default.json}"
# target: /mnt/host/conf.json
# read_only: true
# - type: bind
# source: "${SHINOBI_VIDEO_LOCATION}"
# target: /opt/shinobi/videos
- type: bind
source: "${SHINOBI_LOCALTIME:-/etc/localtime}"
target: /etc/localtime
read_only: true
- type: bind
source: "${SHINOBI_TIMEZONE:-/etc/timezone}"
target: /etc/timezone
read_only: true
ports:
- "${SHINOBI_HOST_PORT:-8080}:${SHINOBI_CONTAINER_PORT:-8080}"
environment:
MYSQL_HOST: database
MYSQL_PORT: "3306"
MYSQL_USER: "${MYSQL_USER_NAME:-shinobi}"
MYSQL_PASSWORD: "${MYSQL_USER_PASSWORD:-shpass}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-sqlroot}"
MYSQL_DATABASE: "${MYSQL_DATABASE:-ccio}"
SHINOBI_SUPER_USER_EMAIL: "${SHINOBI_SUPER_USER_EMAIL:-slayer.rus@gmail.com}"
SHINOBI_SUPER_USER_PASSWORD: "${SHINOBI_SUPER_USER_PASSWORD:-shpass}"
SHINOBI_SUPER_USER_TOKEN: "${SHINOBI_SUPER_USER_TOKEN:-supertoken}"
CRON_KEY: "${CRON_KEY:-73ffd716-16ab-40f4-8c2e-aecbd3bc1d30}"
MOTION_KEY: "${MOTION_KEY:-d4b5feb4-8f9c-4b91-bfec-277c641fc5e3}"
OPENCV_KEY: "${OPENCV_KEY:-644bb8aa-8066-44b6-955a-073e6a745c74}"
OPENALPR_KEY: "${OPENALPR_KEY:-9973e390-f6cd-44a4-86d7-954df863cea0}"
# MOTION_HOST: "${MOTION_HOST:-localhost}"
# MOTION_PORT: "${MOTION_PORT:-8080}"
depends_on:
- database
database:
build:
context: ./database
args:
BASE_IMAGE: "${DATABASE_BASE_IMAGE:-mariadb}"
SHINOBI_REPOSITORY_URL: "${SHINOBI_REPOSITORY_URL:-https://gitlab.com/Shinobi-Systems/Shinobi.git}"
SHINOBI_REPOSITORY_BRANCH: "${SHINOBI_REPOSITORY_BRANCH:-master}"
SHINOBI_REPOSITORY_COMMIT: "${SHINOBI_REPOSITORY_COMMIT:-}"
#image: shinobi-database
restart: always
# volumes:
# - type: bind
# source: "${SHINOBI_DATA_LOCATION}"
# target: /var/lib/mysql
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-sqlroot}"
MYSQL_USER: "${MYSQL_USER_NAME:-shinobi}"
MYSQL_PASSWORD: "${MYSQL_USER_PASSWORD:-shpass}"
MYSQL_DATABASE: "${MYSQL_DATABASE:-ccio}"