Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
31793a3c
Commit
31793a3c
authored
May 07, 2016
by
Mahmoud Zalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general updates to the readme file
parent
5d84c648
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
40 deletions
+52
-40
README.md
README.md
+52
-40
No files found.
README.md
View file @
31793a3c
...
...
@@ -25,11 +25,11 @@ It's like Laravel Homestead but for Docker instead of Vagrant.
-
[
Delete all existing Containers
](
#Delete-all-existing-Containers
)
-
[
Build/Re-build Containers
](
#Build-Re-build-Containers
)
-
[
Use Redis
](
#Use-Redis
)
-
[
Use custom Domain
](
Use-custom-Domain
)
-
[
Change the PHP Version
](
#Change-the-PHP-Version
)
-
[
Add/Remove a Docker Container
](
#AddRemove-a-Docker-Container
)
-
[
Add more Software's (Docker Images)
](
#Add-Docker-Images
)
-
[
Edit a Docker Container
](
#Edit-a-Docker-Container
)
-
[
Edit default container configuration
](
#Edit-Container
)
-
[
Use custom Domain
](
Use-custom-Domain
)
-
[
View the Log files
](
#View-the-Log-files
)
-
[
Enter a Container (SSH into a running Container)
](
#Enter-Container
)
-
[
Edit a Docker Image
](
#Edit-a-Docker-Image
)
...
...
@@ -245,39 +245,7 @@ composer require predis/predis:^1.0
5 - You can manually test it from Laravel with this code:
```
php
\Cache
::
store
(
'redis'
)
->
put
(
'laradock'
,
'awesome'
,
10
);
```
<br>
<a
name=
"Use-custom-Domain"
></a>
#### Use custom Domain (instead of the Docker IP)
Assuming your custom domain is
`laravel.dev`
and your current
`Docker-IP`
is
`xxx.xxx.xxx.xxx`
.
1 - Open your
`/etc/hosts`
file and map your
`Docker IP`
to the
`laravel.dev`
domain, by adding the following:
```
bash
xxx.xxx.xxx.xxx laravel.dev
```
2 - Open your Laravel's
`.env`
file and replace the
`127.0.0.1`
default values with your
`{Docker-IP}`
.
<br>
Example:
```
env
DB_HOST=xxx.xxx.xxx.xxx
```
3 - Open your browser and visit
`{http://laravel.dev}`
Optionally you can define the server name in the nginx config file, like this:
```
server_name laravel.dev;
\Cache
::
store
(
'redis'
)
->
put
(
'LaraDock'
,
'Awesome'
,
10
);
```
...
...
@@ -306,6 +274,8 @@ Supported Versions:
For more details visit the
[
official PHP docker images
](
https://hub.docker.com/_/php/
)
.
<br>
<a
name=
"Add-Docker-Images"
></a>
#### Add more Software's (Docker Images)
...
...
@@ -315,19 +285,61 @@ To add an image (software), just edit the `docker-compose.yml` and add your cont
<br>
<a
name=
"Edit-a-Docker-Container"
></a>
#### Edit a Docker Container (change Ports or Volumes)
To modify a container you can simply open the
`docker-compose.yml`
and change everything you want.
<a
name=
"Edit-Container"
></a>
#### Edit default container configuration
Open the
`docker-compose.yml`
and change anything you want.
Examples:
Example: if you want to set the MySQL port to 3333, just replace the default port with yours:
Change MySQL Database Name:
```
yml
environment
:
MYSQL_DATABASE
:
laradock
```
Change Redis defaut port to 1111:
```
yml
ports
:
-
"
3333:3306
"
-
"
1111:6379
"
```
<br>
<a
name=
"Use-custom-Domain"
></a>
#### Use custom Domain (instead of the Docker IP)
Assuming your custom domain is
`laravel.dev`
and your current
`Docker-IP`
is
`xxx.xxx.xxx.xxx`
.
1 - Open your
`/etc/hosts`
file and map your
`Docker IP`
to the
`laravel.dev`
domain, by adding the following:
```
bash
xxx.xxx.xxx.xxx laravel.dev
```
2 - Open your Laravel's
`.env`
file and replace the
`127.0.0.1`
default values with your
`{Docker-IP}`
.
<br>
Example:
```
env
DB_HOST=xxx.xxx.xxx.xxx
```
3 - Open your browser and visit
`{http://laravel.dev}`
Optionally you can define the server name in the nginx config file, like this:
```
server_name laravel.dev;
```
<br>
<a
name=
"View-the-Log-files"
></a>
#### View the Log files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment