ajifatur/faturdocker
最新稳定版本:v1.0.1
Composer 安装命令:
composer require ajifatur/faturdocker
包简介
Project that containerizing project
README 文档
README
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.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-18