james.xue / laravel-docker-compose
Create application laravel for docker-compose
Fund package maintenance!
xiaoxuan6.github.io/images/donate/alipayimg.jpg
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 2
Type:project
Requires
- php: >=7.3
- james.xue/search: ^0.51.0
- symfony/finder: ^5.4
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-04 16:17:19 UTC
README
Create Project
composer create-project james.xue/laravel-docker-compose
Update docker .env
修改 docker
中 mysql
配置 env
, 需要同步到项目 env
中,需执行:
composer env
Run
启动 docker
docker-compose up -d --build
访问页面 curl http://127.0.0.1
, 如果能正常表示部署成功,否则失败。
Run migrate
执行数据库迁移
make migrate
Docker Redis
如果使用 redis
容器,需修改 docker-compose.yml
将 redis
服务打开并重启 docker
License
MIT