ajifatur/faturdocker

Project that containerizing project

v1.0.1 2024-12-18 04:14 UTC

This package is auto-updated.

Last update: 2024-12-18 04:57:58 UTC


README

Total Downloads Latest Stable Version License WakaTime

Prerequisite

  • Laravel >= 10

Installation

Download From Composer:

Run this script into your CLI:

composer require ajifatur/faturdocker

Configuration:

Add this script into config/app.php file in providers section:

Ajifatur\FaturHelper\FaturDockerServiceProvider::class,

Run this script into your CLI every after install or update the faturdocker:

php artisan faturdocker:install

Edit docker/mysql/init/create_databases.sql file if you want to change or add database as you want.

Edit database configuration in .env file:

## DB_HOST is filled with mysql-db' container name in `docker-compose.yml`
## DB_PASSWORD is filled with MYSQL_PASSWORD in `docker-compose.yml`
DB_HOST="faturdocker-mysql"
DB_PASSWORD=secret

Run this script into your CLI:

docker-compose build
docker-compose up -d

Additional:

Add this into .gitignore file to ignore files or directories in your Git:

/docker
docker-compose.yml
DockerFile

Enjoy!

Open http://localhost:9000 because the web server is on 9000 port.