Skip to content

ajifatur/faturdocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaturHelper

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages