# Instalação Shinobi Docker Link: [https://gitlab.com/Shinobi-Systems/ShinobiDocker](https://gitlab.com/Shinobi-Systems/ShinobiDocker) git clone [https://gitlab.com/Shinobi-Systems/ShinobiDocker.git](https://gitlab.com/Shinobi-Systems/ShinobiDocker.git) ### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#install-shinobi-with-docker)Install Shinobi with Docker #### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#2024-05-07)2024-05-07 [https://shinobi.video](https://shinobi.video/) [https://docs.shinobi.video/installation/docker](https://docs.shinobi.video/installation/docker) ### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#quick-install)Quick Install 1. Run this in terminal. bash <(curl -s [https://gitlab.com/Shinobi-Systems/Shinobi-Installer/raw/master/shinobi-docker.sh)](https://gitlab.com/Shinobi-Systems/Shinobi-Installer/raw/master/shinobi-docker.sh)) #### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#advanced-install)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 ### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#once-installed)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. #### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#docker-compose-sqlyml--shinobi-sql-service-environment-variables)`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`
#### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#docker-compose-mainyml--shinobi-service-build-arguments-and-environment-variables) `docker-compose-main.yml` : `shinobi` Service Build Arguments and Environment Variables #### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#build-arguments)Build Arguments
ArgumentDescriptionDefault Value
SHINOBI\_BRANCHThe branch of the Shinobi git repository to clone during the build process.`dev`
#### [](https://gitlab.com/Shinobi-Systems/ShinobiDocker#environment-variables)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`**