Skip to main content

Instalação Shinobi Docker

Link: https://gitlab.com/Shinobi-Systems/ShinobiDocker   git clone https://gitlab.com/Shinobi-Systems/ShinobiDocker.git

Install Shinobi with Docker

2024-05-07

https://shinobi.video https://docs.shinobi.video/installation/docker

Quick Install

  1. Run this in terminal.
    bash <(curl -s https://gitlab.com/Shinobi-Systems/Shinobi-Installer/raw/master/shinobi-docker.sh)

Advanced Install

  1. Download this repository and enter it.
    • If you do not have Docker installed run sh INSTALL/docker.sh.
  2. Review and modify the docker-compose.yml file.
    • Leave it as-is for default setup.
  3. Run the preparation and starter script.
    bash setup_and_run.sh

Once Installed

You will be asked if you want to use the included database, default is Yes. Once complete open port 8080 of your Docker host in a web browser.

The following tables offer a breakdown of the configurations that control how the shinobi and shinobi-sql services are set up and interact within your Docker environment. Adjustments can be made to these values directly in the associated docker-compose files to modify the behavior of the deployment as needed.

docker-compose-sql.yml : shinobi-sql 
Service Environment Variables

VariableDescriptionDefault Value
MYSQL_ROOT_PASSWORDThe password for the MySQL root user.rootpassword
MYSQL_DATABASEThe name of the database to create.ccio
MYSQL_USERThe username for the database.majesticflame
MYSQL_PASSWORDThe password for the database user.1234


docker-compose-main.yml : shinobi 
Service Build Arguments and Environment Variables

Build Arguments

ArgumentDescriptionDefault Value
SHINOBI_BRANCHThe branch of the Shinobi git repository to clone during the build process.dev

Environment Variables

VariableDescriptionDefault Value
HOMEThe home directory path within the container./home/Shinobi
DB_HOSTHostname of the MySQL database server.shinobi-sql
DB_USERUsername to connect to the MySQL database.majesticflame
DB_PASSWORDPassword to connect to the MySQL database.1234
DB_DATABASEName of the MySQL database to use.ccio
SHINOBI_UPDATEWhether to pull updates from git when the container starts.false


Script Failing? Run this.

apt install dos2unix -y && dos2unix entrypoint.sh && chmod +x entrypoint.sh && dos2unix setup_and_run.sh && chmod +x setup_and_run.sh && bash setup_and_run.sh