This is based on the official Shinobi docker image.
This uses a docker-compose setup where the Shinobi image and the MariaDB is not in the same image. This keeps things easy to maintain and swap the database out.
The database can even be on a separate server machine, or not even dockerised.
The hosted Shinobi Docker image is built from this repository.
- Shinobi & MariaDB image are two separate containers.
- You can easily swap out MariaDB for another DB image, such as MySQL, or change the MariaDB version.
- You can even decide to have a DB sitting directly on a physical machine, rather then as a container.
- Multi-arch builds, which means the Shinobi image is compatible with different CPU architectures.
- Such as ARM used by Raspberry Pis, etc.
PHP My Adminis included, so you can manage the data in your database, simply by browsing tohttp://xxx.xxx.xxx.xxx:8888. This gives you an easy way to export/import your Shinobi database via a GUI!
docker-composeshould already be installed.
-
Clone the Repo and enter the
docker-shinobidirectory.git clone https://github.com/deltoss/ShinobiDocker.git ShinobiDocker && cd ShinobiDocker
-
Spark one up.
docker-compose up -d
-
Open your computer's IP address in your web browser on port
8080. Open the superuser panel to create an account.Web Address : http://xxx.xxx.xxx.xxx:8080/super Username : admin@shinobi.video Password : admin -
After account creation head on over to the main
Web Addressand start using Shinobi!http://xxx.xxx.xxx.xxx:8080 -
Enjoy!
Raspberry Pi 3 & 4 uses the ARMv7 32-bit architecture. This Shinobi image supports ARMv7 architecture, however the official MariaDB docker image does not. At time of writing, it only supports ARM64
Thus, you could either make your own image, and build it to support ARMv7, or use a non-official MariaDB image which supports ARMv7.
To change both the MariaDB image & the PHPMyAdmin image. To do this, you can simply change the values for the following keys in the .env file:
MARIADB_IMAGEPMA_IMAGE
For example, change this:
MARIADB_IMAGE=mariadb:latest
# ...
PMA_IMAGE=phpmyadmin/phpmyadmin:latestTo this:
MARIADB_IMAGE=yobasystems/alpine-mariadb:latest
# ...
PMA_IMAGE=jackgruber/phpmyadmin:latestyobasystems/alpine-mariadb and jackgruber/phpmyadmin are third-party images which supports ARMv7.