Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avin/laravel-apache-docker
https://github.com/avin/laravel-apache-docker
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/avin/laravel-apache-docker
- Owner: avin
- Created: 2014-11-03T23:35:10.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-13T20:46:45.000Z (about 10 years ago)
- Last Synced: 2023-02-26T16:32:02.816Z (over 1 year ago)
- Language: Shell
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
About
=========It's docker created for develope laravel application under original linux environment.
Usage
=========#### Simple:
```sh
docker run -d -v /local-development/laravel:/var/www/laravel --name='laravel' -p 80:80 carcinogen75/laravel-apache
```#### With mysql support:
```sh
docker run --name mysql -e MYSQL_ROOT_PASSWORD="laravel" -e MYSQL_DATABASE="laravel" -d mysqldocker run -d -v /mnt/hgfs/test/laravel:/var/www/laravel --name='laravel' -p 80:80 --link mysql:db carcinogen75/laravel-apache
```Then edit app/config/database.php
```php
'mysql' => array(
'driver' => 'mysql',
'host' => 'db',
'database' => 'laravel',
'username' => 'root',
'password' => 'laravel',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
```