Skip to main content
Version: 2.7.0

Docker installation

info

For docker installation, you need to have Docker and Docker Compose installed on your machine. You can find the installation instructions for your operating system on the Docker website.

Docker installation is the recommended way to install BiznisBox. It is easy to set up and allows you to run BiznisBox in a containerized environment. This means that you can run BiznisBox on any machine that has Docker installed, without worrying about the underlying operating system or dependencies.

Installation is done in a few simple steps:

docker pull ghcr.io/biznisbox/biznisbox:latest

This command will pull the latest version of BiznisBox from the Docker registry. You can also specify a specific version by replacing latest with the version number.

docker run -d -p 80:80 ghcr.io/biznisbox/biznisbox:latest

This command will run BiznisBox in a detached mode and map port 80 of the container to port 80 of your host machine. You can also specify a different port by replacing 80 with the desired port number.

You can also attach a volume to the container to persist data. This is useful if you want to keep your data even if you stop or remove the container. You can do this by adding the -v option to the docker run command:

docker run -d -p 80:80 -v /path/to/data:/var/www/html/storage ghcr.io/biznisbox/biznisbox:latest

Available volumes are:

  • /var/www/html/storage - this is the default storage location for BiznisBox. You can use this volume to persist your data.

Environment variables can be set using the -e option. For example, if you want to set the APP_KEY environment variable, you can do this:

docker run -d -p 80:80 -e APP_KEY=your_app_key ghcr.io/biznisbox/biznisbox:latest

Available environment variables are:

  • APP_KEY - this is the application key used for encryption. You can generate a new key by running the following command in the container:
php artisan key:generate --show
  • DB_CONNECTION - this is the database connection type. The default value is mysql. You can change this to pgsql if you want to use PostgreSQL.
  • DB_HOST - this is the database host. The default value is db. You can change this to the IP address or hostname of your database server.
  • DB_PORT - this is the database port. The default value is 3306 for MySQL and 5432 for PostgreSQL.
  • DB_DATABASE - this is the name of the database. The default value is biznisbox. You can change this to the name of your database.
  • DB_USERNAME - this is the database username. The default value is root. You can change this to the username of your database user.
  • DB_PASSWORD - this is the database password. The default value is root. You can change this to the password of your database user.