Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snails8/_laravel-test-docker
PHP 7.4 nginx 1.18 mysql 8.0
https://github.com/snails8/_laravel-test-docker
Last synced: 9 days ago
JSON representation
PHP 7.4 nginx 1.18 mysql 8.0
- Host: GitHub
- URL: https://github.com/snails8/_laravel-test-docker
- Owner: Snails8
- Created: 2020-08-04T08:49:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T09:41:43.000Z (about 2 years ago)
- Last Synced: 2024-12-07T15:04:48.390Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-laravel-sample
# install laravel
$ docker-compose exec app composer create-project --prefer-dist "laravel/laravel=6.*" .
# another
$ docker-compose exec app ash
$ composer install
$ cp .env.example .env
$ php artisan key:generate
$ php artisan migrate
$ php artisan -V
# confirm
$ docker-compose exec app php -v$ docker-compose exec web nginx -v
$ docker-compose exec db mysql -V
# mysql error confirmation
$ docker-compose exec db bash -c 'mysql -uroot -psecret'
mysql> show databases;
mysql> SELECT Host, User, plugin FROM mysql.user;
mysql> show grants for 'phper'@'%';