From 1745274498c652a6b113f9baacaa3b8d8fea4c94 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 20 Oct 2021 03:28:48 +0300 Subject: [PATCH] shinobi. Initial configuration added. --- shinobi/.env.dist | 13 +++++++++++++ shinobi/.gitignore | 10 ++++++++++ shinobi/custom_autoload/.gitkeep | 0 shinobi/database/.gitkeep | 0 shinobi/docker-compose.yml | 28 ++++++++++++++++++++++++++++ shinobi/plugins/.gitkeep | 0 shinobi/video/.gitkeep | 0 7 files changed, 51 insertions(+) create mode 100644 shinobi/.env.dist create mode 100644 shinobi/.gitignore create mode 100644 shinobi/custom_autoload/.gitkeep create mode 100644 shinobi/database/.gitkeep create mode 100644 shinobi/docker-compose.yml create mode 100644 shinobi/plugins/.gitkeep create mode 100644 shinobi/video/.gitkeep diff --git a/shinobi/.env.dist b/shinobi/.env.dist new file mode 100644 index 0000000..4ff1abc --- /dev/null +++ b/shinobi/.env.dist @@ -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 diff --git a/shinobi/.gitignore b/shinobi/.gitignore new file mode 100644 index 0000000..9d9ff9c --- /dev/null +++ b/shinobi/.gitignore @@ -0,0 +1,10 @@ +config/* +custom_autoload/* +database/* +plugins/* +video/* +!config/.gitkeep +!custom_autoload/.gitkeep +!database/.gitkeep +!plugins/.gitkeep +!video/.gitkeep \ No newline at end of file diff --git a/shinobi/custom_autoload/.gitkeep b/shinobi/custom_autoload/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/shinobi/database/.gitkeep b/shinobi/database/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/shinobi/docker-compose.yml b/shinobi/docker-compose.yml new file mode 100644 index 0000000..76ab006 --- /dev/null +++ b/shinobi/docker-compose.yml @@ -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}" diff --git a/shinobi/plugins/.gitkeep b/shinobi/plugins/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/shinobi/video/.gitkeep b/shinobi/video/.gitkeep new file mode 100644 index 0000000..e69de29