You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2 - Enter the laradock folder and run this command:
112
+
2 - Enter the laradock folder and run this command:
111
113
112
114
```shell
113
115
docker-compose up -d nginx mysql redis beanstalkd
@@ -188,12 +190,14 @@ That's it! enjoy :)
188
190
- PHP7-CLI
189
191
- Composer
190
192
- Git
193
+
- Linuxbrew
191
194
- Node
192
195
- Gulp
193
196
- SQLite
194
197
- xDebug
195
198
- Envoy
196
199
- Vim
200
+
- Yarn
197
201
- ... Many other supported tools are not documented. (Will be updated soon)
198
202
199
203
>If you can't find your Software, build it yourself and add it to this list. Contributions are welcomed :)
@@ -316,7 +320,7 @@ Note: In this case the folder structure will be like this:
316
320
- myProject
317
321
```
318
322
319
-
2 - Edit the `docker-compose.yml` file to map to your project directory once you have it (example: `- ../myProject:/var/www`).
323
+
2 - Edit the `docker-compose.yml` file to map to your project directory once you have it (example: `- ../myProject:/var/www`).
320
324
321
325
3 - Stop and re-run your docker-compose command for the changes to take place.
322
326
@@ -409,7 +413,8 @@ You can select your own combination of Containers form the list below:
409
413
```bash
410
414
docker-compose exec workspace bash
411
415
```
412
-
Alternatively, for Windows Powershell users: execute the following command to enter any running container:
416
+
417
+
Alternativey, for Windows Powershell users: execute the following command to enter any running container:
413
418
414
419
```bash
415
420
docker exec -it {workspace-container-id} bash
@@ -798,7 +803,7 @@ To control the behavior of xDebug (in the `php-fpm` Container), you can run the
798
803
<a name="LaraDock-for-Production"></a>
799
804
### Prepare LaraDock for Production
800
805
801
-
It's recommended for production to create a custom `docker-compose.yml` file. For that reason, LaraDock is shipped with `production-docker-compose.yml` which should contain only the containers you are planning to run on production (usage exampe: `docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...`).
806
+
It's recommended for production to create a custom `docker-compose.yml` file. For that reason, LaraDock is shipped with `production-docker-compose.yml` which should contain only the containers you are planning to run on production (usage exampe: `docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...`).
802
807
803
808
Note: The Database (MySQL/MariaDB/...) ports should not be forwarded on production, because Docker will automatically publish the port on the host, which is quite insecure, unless specifically told not to. So make sure to remove these lines:
804
809
@@ -1213,15 +1218,15 @@ docker-compose up -d rethinkdb
1213
1218
1214
1219
```php
1215
1220
'connections' => [
1216
-
1221
+
1217
1222
'rethinkdb'=> [
1218
1223
'name'=>'rethinkdb',
1219
1224
'driver'=>'rethinkdb',
1220
1225
'host'=> env('DB_HOST', 'rethinkdb'),
1221
1226
'port'=> env('DB_PORT', 28015),
1222
-
'database'=> env('DB_DATABASE', 'test'),
1227
+
'database'=> env('DB_DATABASE', 'test'),
1223
1228
]
1224
-
1229
+
1225
1230
// ...
1226
1231
1227
1232
],
@@ -1319,7 +1324,7 @@ Make sure you [change the timezone](#Change-the-timezone) if you don't want to u
1319
1324
<br>
1320
1325
<a name="Workspace-ssh"></a>
1321
1326
### Access workspace via ssh
1322
-
1327
+
1323
1328
You can access the `workspace` container through `localhost:2222` by setting the `INSTALL_WORKSPACE_SSH` build argument to `true`.
1324
1329
1325
1330
To change the default forwarded port for ssh:
@@ -1378,7 +1383,7 @@ The default username and password for the root mysql user are `root` and `root `
1378
1383
Modify the `mysql/my.cnf` file to set your port number, `1234` is used as an example.
1379
1384
1380
1385
```
1381
-
[mysqld]
1386
+
[mysqld]
1382
1387
port=1234
1383
1388
```
1384
1389
@@ -1524,6 +1529,45 @@ It should be like this:
1524
1529
1525
1530
1526
1531
1532
+
<br>
1533
+
<a name="Install-Linuxbrew"></a>
1534
+
### Install Linuxbrew
1535
+
1536
+
Linuxbrew is a package manager forLinux. It is the Linux version of MacOS Homebrew and can be found [here](http://linuxbrew.sh). To install Linuxbrewin the Workspace container:
1537
+
1538
+
1 - Open the `docker-compose.yml` file
1539
+
1540
+
2 - Search for the `INSTALL_LINUXBREW` argument under the Workspace Container and set it to `true`
1541
+
1542
+
It should be like this:
1543
+
1544
+
```yml
1545
+
workspace:
1546
+
build:
1547
+
context: ./workspace
1548
+
args:
1549
+
- INSTALL_LINUXBREW=true
1550
+
...
1551
+
```
1552
+
1553
+
3 - Re-build the container `docker-compose build workspace`
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
<br>
1560
+
<a name="Common-Aliases"></a>
1561
+
<br>
1562
+
### Common Terminal Aliases
1563
+
When you start your docker container, Laradock will copy the `aliases.sh` file located in the `laradock/workspace` directory and add sourcing to the container `~/.bashrc` file.
1564
+
1565
+
You are free to modify the `aliases.sh` as you see fit, adding your own aliases (or functionmacros) to suit your requirements.
1566
+
1567
+
1568
+
1569
+
1570
+
1527
1571
<br>
1528
1572
<a name="Install-Aerospike-Extension"></a>
1529
1573
### Install Aerospike extension
@@ -1659,14 +1703,20 @@ Make sure the ports for the services that you are trying to run (22, 80, 443, 33
1659
1703
1660
1704
#### I get Nginx error 404 Not Found on Windows.
1661
1705
1662
-
1. Go to docker Settings on your Windows machine.
1706
+
1. Go to docker Settings on your Windows machine.
1663
1707
2. Click on the `Shared Drives` tab and check the drive that contains your project files.
1664
1708
3. Enter your windows username and password.
1665
1709
4. Go to the `reset` tab and click restart docker.
1666
1710
1667
1711
1668
1712
1669
1713
1714
+
#### The time in my services does not match the current time
1715
+
1716
+
1. Make sure you've [changed the timezone](#Change-the-timezone).
1717
+
2. Stop and rebuild the containers (`docker-compose up -d --build <services>`)
1718
+
1719
+
1670
1720
1671
1721
1672
1722
#### I get Mysql connection refused
@@ -1695,7 +1745,7 @@ Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requ
1695
1745
3. Upgrade LaraDock to `v4.*.*` (`git pull origin master`)
1696
1746
4. Use LaraDock as you used to do: `docker-compose up -d nginx mysql`.
1697
1747
1698
-
**Note:** If you face any problem with the last step above: rebuild all your containers
1748
+
**Note:** If you face any problem with the last step above: rebuild all your containers
0 commit comments