Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byhbt/laravel-docker
Setup environment for Laravel Development
https://github.com/byhbt/laravel-docker
docker-compose laravel laravel-docker-compose
Last synced: about 6 hours ago
JSON representation
Setup environment for Laravel Development
- Host: GitHub
- URL: https://github.com/byhbt/laravel-docker
- Owner: byhbt
- Created: 2019-04-07T04:08:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T06:53:23.000Z (almost 2 years ago)
- Last Synced: 2023-03-01T17:37:23.028Z (over 1 year ago)
- Topics: docker-compose, laravel, laravel-docker-compose
- Language: PHP
- Size: 230 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Laravel Docker
- Adminer: it's simple than PHPMyAdmin.
But because of IPV6 problem, so I use version *4.2.5* https://github.com/TimWolla/docker-adminer/issues/40## How to use
Step 1:
Install docker and docker-compose to your pc.
Step 2:
Clone code repository then install dependencies:
```
git clone
npm install
composer update
```Build docker images
```
docker-compose build
docker-compose up -d
``````bash
chmod -R 777 storage
```Running php artisan:
```bash
docker-compose exec php php artisan migrate
```## Access the app and services
Application Homepage
```bash
http://localhost:8989
```Adminer
```bash
http://localhost:8990
```Username: root
Password: secretYou can edit these info in the **docker-compose.yml**
## FAQ
1. File permission problem:
Ref: [If you are running Docker on Linux, the files created are owned by root.](https://docs.docker.com/compose/django/)```bash
sudo chown -R $USER:$USER .
```## References:
https://qiita.com/dyoshikawa/items/63a974b5aee488b080f8
## Contributing
Free to make pull request.