From e5fa629a64b568b364ca59de634522d7f794a4a0 Mon Sep 17 00:00:00 2001
From: Mahmoud Zalt Your contribution is more than welcome. If you have questions about how to use LaraDock, please direct your questions to the discussion on Gitter. If you believe your question could help others, then consider opening an Issue (it will be labeled as Question). If you find a bug in the source code or a mistake in the documentation, you can help us by
submitting an Issue. Even better you can submit a Pull Request with a fix. You can request a new feature by submitting an Issue (it will be labeled as Feature Suggestion). If you would like to implement a new feature then consider submitting a Pull Request. Create folder with the software name. Add the software in the Open the software (container) folder. Make sure to update the Before you submit your issue search the archive, maybe your question was already answered. If your issue appears to be a bug, and hasn't been reported, open a new issue.
+ If your issue appears to be a bug, and hasn’t been reported, open a new issue.
Help us to maximize the effort we can spend fixing issues and adding new
features, by not reporting duplicate issues. Always Test everything and make sure its working:
-### Happy Coding :)
\ No newline at end of file
+### Happy Coding :)
diff --git a/docs/_settings/content/documentation/index.md b/docs/_settings/content/documentation/index.md
index ab4f46f6..46d220c6 100644
--- a/docs/_settings/content/documentation/index.md
+++ b/docs/_settings/content/documentation/index.md
@@ -1,7 +1,7 @@
---
title: Documentation
type: index
-weight: 20
+weight: 3
---
@@ -1308,15 +1308,15 @@ Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requ
## Improve speed on MacOS
Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.
-
+
> How to share files using NFS (d4m-nfs)
[d4m-nfs](https://github.com/IFSight/d4m-nfs) automatically mount NFS volume instead of osxfs one.
1) Update the Docker [File Sharing] preferences:
-Click on the Docker Icon > Preferences > (remove everything form the list except `/tmp`).
-
+Click on the Docker Icon > Preferences > (remove everything form the list except `/tmp`).
+
2) Restart Docker.
3) Clone the [d4m-nfs](https://github.com/IFSight/d4m-nfs) repository to your `home` directory.
@@ -1354,7 +1354,7 @@ docker-compose up -d nginx mysql
-## Common Problems
+## Common Problems
*Here's a list of the common problems you might face, and the possible solutions.*
diff --git a/docs/_settings/content/getting-started/index.md b/docs/_settings/content/getting-started/index.md
index 3dc17f52..5b8e23cd 100644
--- a/docs/_settings/content/getting-started/index.md
+++ b/docs/_settings/content/getting-started/index.md
@@ -1,13 +1,11 @@
---
-date: 2017
-title: Getting started
-weight: 10
+title: Getting Started
+type: index
+weight: 2
---
-
-
## Requirements
- [Git](https://git-scm.com/downloads)
@@ -16,8 +14,6 @@ weight: 10
-
-
## Installation
Choose the setup the best suits your needs.
@@ -114,8 +110,6 @@ Do the same for each project `project2.conf`, `project3.conf`,...
-
-
## Usage
**Read Before starting:**
@@ -183,12 +177,3 @@ DB_HOST=mysql
If you need a special support. Contact me, more details in the [Help & Questions](#Help) section.
-
-
-
-
-
-
-
-
-
diff --git a/docs/_settings/content/help/index.md b/docs/_settings/content/help/index.md
index 871347c6..9c31979d 100644
--- a/docs/_settings/content/help/index.md
+++ b/docs/_settings/content/help/index.md
@@ -1,7 +1,7 @@
---
title: Help & Questions
type: index
-weight: 40
+weight: 5
---
Join the chat room on [Gitter](https://gitter.im/LaraDock/laradock) and get help and support from the community.
diff --git a/docs/_settings/content/index.md b/docs/_settings/content/index.md
index d9487b2e..f6c636f0 100644
--- a/docs/_settings/content/index.md
+++ b/docs/_settings/content/index.md
@@ -1,7 +1,7 @@
---
-title: Welcome to Laradock
+title: Overview
type: index
-weight: 0
+weight: 1
---
LaraDock strives to make the PHP development experience easier and faster.
diff --git a/docs/_settings/content/license/index.md b/docs/_settings/content/license/index.md
index eac7757e..d65e5abc 100644
--- a/docs/_settings/content/license/index.md
+++ b/docs/_settings/content/license/index.md
@@ -1,7 +1,7 @@
---
title: License
type: index
-weight: 60
+weight: 7
---
[MIT License](https://github.com/laradock/laradock/blob/master/LICENSE) (MIT)
diff --git a/docs/_settings/content/related-projects/index.md b/docs/_settings/content/related-projects/index.md
index cdb2296a..e0327a2c 100644
--- a/docs/_settings/content/related-projects/index.md
+++ b/docs/_settings/content/related-projects/index.md
@@ -1,7 +1,7 @@
---
title: Related Projects
type: index
-weight: 30
+weight: 4
---
diff --git a/docs/contributing/index.html b/docs/contributing/index.html
index deb14fa6..287932a7 100644
--- a/docs/contributing/index.html
+++ b/docs/contributing/index.html
@@ -180,9 +180,9 @@
-
+
- Introduction
+ Overview
@@ -198,9 +198,9 @@
-
+
- Getting started
+ Getting Started
@@ -336,26 +336,26 @@
-Guidelines
+Guidelines
Got a Question or Problem?
+Got a Question or Problem?
Found an Issue?
+Found an Issue?
Want a Feature?
+Want a Feature?
Coding Guidelines
+Coding Guidelines
-Support new Software
+Support new Software
-Readme
.Edit existing Software
+Edit existing Software
-Readme
in case you made any changes.Issue/PR Submission Guidelines
+Issue/PR Submission Guidelines
-Submitting an Issue
+Submitting an Issue
Before Submitting a Pull Request (PR)
+Before Submitting a Pull Request (PR)
Consider the following guidelines:
Search GitHub for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.
Search GitHub for an open or closed Pull Request that relates to your submission. You don’t want to duplicate effort.
Make your changes in a new git branch:
@@ -454,7 +454,7 @@ git push origin my-fix-branch -fWARNING. Squashing or reverting commits and forced push thereafter may remove GitHub comments on code that were previously made by you and others in your commits.
-After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
@@ -483,7 +483,7 @@ from the main (upstream) repository:Note: If ./xdebugPhpFpm
doesn't execute and gives Permission Denied
error the problem can be that file xdebugPhpFpm
doesn't have execution access. This can be fixed by running chmod
command with desired access permissions.
Note: If ./xdebugPhpFpm
doesn’t execute and gives Permission Denied
error the problem can be that file xdebugPhpFpm
doesn’t have execution access. This can be fixed by running chmod
command with desired access permissions.
1 - Open the docker-compose.yml
file
@@ -636,7 +636,7 @@ xdebug.remote_connect_back=1
4 - Re-build the containers docker-compose build workspace
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 example: docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...
).
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 example: docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...
).
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:
+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:
ports:
- "3306:3306"
@@ -659,16 +659,16 @@ xdebug.remote_connect_back=1
-Setup Laravel and Docker on Digital Ocean
+Setup Laravel and Docker on Digital Ocean
-Full Guide Here
+Full Guide Here
-Install Laravel from a Docker Container
+Install Laravel from a Docker Container
1 - First you need to enter the Workspace Container.
@@ -708,7 +708,7 @@ xdebug.remote_connect_back=1
-Run Artisan Commands
+Run Artisan Commands
You can run artisan commands and many other Terminal commands from the Workspace container.
@@ -727,7 +727,7 @@ xdebug.remote_connect_back=1
docker-compose exec workspace bash
-Add --user=laradock
(example docker-compose exec --user=laradock workspace bash
) to have files created as your host's user.
+Add --user=laradock
(example docker-compose exec --user=laradock workspace bash
) to have files created as your host’s user.
4 - Run anything you want :)
@@ -743,7 +743,7 @@ xdebug.remote_connect_back=1
-Run Laravel Queue Worker
+Run Laravel Queue Worker
1 - First add php-worker
container. It will be similar as like PHP-FPM Container.
@@ -768,19 +768,19 @@ b) add a new service container by simply copy-paste this section below PHP-FPM c
-Use Redis
+Use Redis
1 - First make sure you run the Redis Container (redis
) with the docker-compose up
command.
docker-compose up -d redis
-2 - Open your Laravel's .env
file and set the REDIS_HOST
to redis
+2 - Open your Laravel’s .env
file and set the REDIS_HOST
to redis
REDIS_HOST=redis
-If you don't find the REDIS_HOST
variable in your .env
file. Go to the database configuration file config/database.php
and replace the default 127.0.0.1
IP with redis
for Redis like this:
+If you don’t find the REDIS_HOST
variable in your .env
file. Go to the database configuration file config/database.php
and replace the default 127.0.0.1
IP with redis
for Redis like this:
'redis' => [
'cluster' => false,
@@ -811,7 +811,7 @@ SESSION_DRIVER=redis
-Use Mongo
+Use Mongo
1 - First install mongo
in the Workspace and the PHP-FPM Containers:
@@ -869,7 +869,7 @@ e) set it to true
],
-5 - Open your Laravel's .env
file and update the following variables:
+5 - Open your Laravel’s .env
file and update the following variables:
- set the
DB_HOST
to your mongo
.
@@ -895,7 +895,7 @@ e) set it to true
-Use PhpMyAdmin
+Use PhpMyAdmin
1 - Run the phpMyAdmin Container (phpmyadmin
) with the docker-compose up
command. Example:
@@ -911,7 +911,7 @@ docker-compose up -d mariadb phpmyadmin
-Use PgAdmin
+Use PgAdmin
1 - Run the pgAdmin Container (pgadmin
) with the docker-compose up
command. Example:
@@ -923,7 +923,7 @@ docker-compose up -d mariadb phpmyadmin
-Use Beanstalkd
+Use Beanstalkd
1 - Run the Beanstalkd Container:
@@ -960,7 +960,7 @@ b. set the queue host to beanstalkd : QUEUE_HOST=beanstalkd
-Use ElasticSearch
+Use ElasticSearch
1 - Run the ElasticSearch Container (elasticsearch
) with the docker-compose up
command:
@@ -969,7 +969,7 @@ b. set the queue host to beanstalkd : QUEUE_HOST=beanstalkd
2 - Open your browser and visit the localhost on port 9200: http://localhost:9200
-Install ElasticSearch Plugin
+Install ElasticSearch Plugin
1 - Install the ElasticSearch plugin like delete-by-query.
@@ -984,7 +984,7 @@ b. set the queue host to beanstalkd : QUEUE_HOST=beanstalkd
-Use Selenium
+Use Selenium
1 - Run the Selenium Container (selenium
) with the docker-compose up
command. Example:
@@ -996,7 +996,7 @@ b. set the queue host to beanstalkd : QUEUE_HOST=beanstalkd
-Use RethinkDB
+Use RethinkDB
The RethinkDB is an open-source Database for Real-time Web (RethinkDB).
A package (Laravel RethinkDB) is being developed and was released a version for Laravel 5.2 (experimental).
@@ -1025,7 +1025,7 @@ A package (Laravel RethinkD
],
-4 - Open your Laravel's .env
file and update the following variables:
4 - Open your Laravel’s .env
file and update the following variables:
DB_CONNECTION
to your rethinkdb
.To install CodeIgniter 3 on LaraDock all you have to do is the following simple steps:
@@ -1053,12 +1053,12 @@ A package (Laravel RethinkD -To change the timezone for the workspace
container, modify the TZ
build argument in the Docker Compose file to one in the TZ database.
You can add your cron jobs to workspace/crontab/root
after the php artisan
line.
Make sure you change the timezone if you don't want to use the default (UTC).
+Make sure you change the timezone if you don’t want to use the default (UTC).
-You can access the workspace
container through localhost:2222
by setting the INSTALL_WORKSPACE_SSH
build argument to true
.
You can forward the MySQL/MariaDB port to your host by making sure these lines are added to the mysql
or mariadb
section of the docker-compose.yml
or in your environment specific Compose file.
The default username and password for the root MySQL user are root
and root
.
Modify the mysql/my.cnf
file to set your port number, 1234
is used as an example.
Assuming your custom domain is laravel.dev
Enabling Global Composer Install during the build for the container allows you to get your composer requirements installed and available in the container after the build is done.
@@ -1190,7 +1190,7 @@ port=1234 -Prestissimo is a plugin for composer which enables parallel install functionality.
@@ -1209,7 +1209,7 @@ port=1234 -To install NVM and NodeJS in the Workspace container
@@ -1232,7 +1232,7 @@ port=1234 -Yarn is a new package manager for JavaScript. It is so faster than npm, which you can find here.To install NodeJS and Yarn in the Workspace container:
@@ -1256,7 +1256,7 @@ port=1234 -Linuxbrew is a package manager for Linux. It is the Linux version of MacOS Homebrew and can be found here. To install Linuxbrew in the Workspace container:
@@ -1280,7 +1280,7 @@ port=1234When 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.
1 - First install aerospike
in the Workspace and the PHP-FPM Containers:
@@ -1324,7 +1324,7 @@ e) set it to true
1 - Open the docker-compose.yml
file
@@ -1345,21 +1345,21 @@ e) set it to true
4 - Re-build the containers docker-compose build workspace
Remote debug Laravel web and phpunit tests.
-true
-Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requires upgrading LaraDock from v3.* to v4.*:
@@ -1384,12 +1384,12 @@ e) set it totrue
Note: If you face any problem with the last step above: rebuild all your containers
docker-compose build --no-cache
-"Warning Containers Data might be lost!"
Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.
@@ -1424,7 +1424,7 @@ e) set it totrue
~/d4m-nfs/d4m-nfs.sh
-That's it! Run your containers.. Example:
+That’s it! Run your containers.. Example:
docker-compose up -d nginx mysql
@@ -1434,13 +1434,13 @@ e) set it to true
-Here's a list of the common problems you might face, and the possible solutions.
+Here’s a list of the common problems you might face, and the possible solutions.
Run the following command from the Laravel root directory:
@@ -1449,19 +1449,19 @@ e) set it totrue
Use http://127.0.0.1
instead of http://localhost
in your browser.
address already in use
or port is already allocated
address already in use
or port is already allocated
Make sure the ports for the services that you are trying to run (22, 80, 443, 3306, etc.) are not being used already by other programs on the host, such as a built in apache
/httpd
service or other development tools you have installed.
true
docker-compose up -d --build <services>
)This error sometimes happens because your Laravel application isn't running on the container localhost IP (Which is 127.0.0.1). Steps to fix it:
+This error sometimes happens because your Laravel application isn’t running on the container localhost IP (Which is 127.0.0.1). Steps to fix it:
true