shinobi. Initial configuration added.

This commit is contained in:
Alexey Skobkin 2021-10-20 03:28:48 +03:00
parent 91b743ac5a
commit 1745274498
7 changed files with 51 additions and 0 deletions

13
shinobi/.env.dist Normal file
View File

@ -0,0 +1,13 @@
# see https://gitlab.com/Shinobi-Systems/Shinobi/-/tree/dev/Docker
WEB_PORT=8080
SHM_PATH=/dev/shm/shinobi/streams
CONFIG_DIR=./config
CUSTOM_AUTOLOAD_DIR=./custom_autoload
DB_DIR=./database
VIDEOS_DIR=./video
PLUGINS_DIR=./plugins
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

10
shinobi/.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
config/*
custom_autoload/*
database/*
plugins/*
video/*
!config/.gitkeep
!custom_autoload/.gitkeep
!database/.gitkeep
!plugins/.gitkeep
!video/.gitkeep

View File

View File

View File

@ -0,0 +1,28 @@
version: '3.7'
services:
# https://hub.docker.com/r/shinobisystems/shinobi
# https://gitlab.com/Shinobi-Systems/Shinobi/-/tree/dev/Docker
shinobi:
image: shinobisystems/shinobi
container_name: shinobi
ports:
- "${WEB_PORT}:8080/tcp"
#- "443:443/tcp"
#- "21:21/tcp"
#- "25:25/tcp"
volumes:
- "${SHM_PATH}:/dev/shm/streams:rw"
- "${CONFIG_DIR}:/config:rw"
- "${CUSTOM_AUTOLOAD_DIR}:/home/Shinobi/libs/customAutoLoad:rw"
- "${DB_DIR}:/var/lib/mysql:rw"
- "${VIDEOS_DIR}:/home/Shinobi/videos:rw"
- "${PLUGINS_DIR}:/home/Shinobi/plugins:rw"
- "/etc/localtime:/etc/localtime:ro"
env_file: .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"

0
shinobi/plugins/.gitkeep Normal file
View File

0
shinobi/video/.gitkeep Normal file
View File