This is a simplified docker image and docker-compose, based on https://gitlab.com/Shinobi-Systems/ShinobiDocker.
This diverges from upstream in a few ways:
Create the .env
file and change/populate it if needed:
cp env.example .env
Note: .env
is used here instead of env_file
s due to how compose uses variables. In order to use MYSQL_USER
and MYSQL_PASSWORD
in the mysql container healthcheck, these have to be declared within the compose environment (.env). Then to keep the compose file DRY, these are pulled out into the .env
file then referenced in the environment
blocks for both containers.
Start containers with:
docker-compose up