Compare commits
268 Commits
Author | SHA1 | Date | |
---|---|---|---|
b0831240b1 | |||
37dee56bb7 | |||
2b11fc2299 | |||
754ca4cd4f | |||
10e3dc16d2 | |||
e23c6dae90 | |||
96c1d7c59c | |||
c574943e16 | |||
3226206267 | |||
63543b890a | |||
b58f859eff | |||
170a1efeb1 | |||
50e3d1667f | |||
269732d8ea | |||
a11206d4ba | |||
cb78a6c3d6 | |||
662280c139 | |||
68dd2fd019 | |||
c193c5d03b | |||
4efb5b43c6 | |||
3d2eb81cd5 | |||
a8d7937889 | |||
98c9fdff24 | |||
f05512fd1d | |||
fc460f9497 | |||
1fd55d98e1 | |||
4f5746f2a7 | |||
3d90a806fa | |||
cf9abcd5b8 | |||
e1036185ae | |||
d1af24736b | |||
236665d7d3 | |||
c340d851d3 | |||
38545cfffd | |||
bf19ecffcb | |||
6fa6d02360 | |||
e588f261f8 | |||
5d5545ec9e | |||
d152050e29 | |||
a0da2c0ea0 | |||
2e86243d88 | |||
6b61c7d454 | |||
3881a5d66d | |||
69b223a370 | |||
894cb6ea27 | |||
b81e3e8f15 | |||
7d49f9b820 | |||
9dad1586af | |||
d60178f598 | |||
5d74e10b08 | |||
40422ab4b0 | |||
b35a23d89e | |||
3445b5b1b6 | |||
8315a3872d | |||
6abea8746c | |||
09c5ad273c | |||
99b8a45f3b | |||
4f416da26b | |||
53b73798d3 | |||
c6e9b1ed5d | |||
4973dd93be | |||
9096737aa7 | |||
3429681f2c | |||
d4c727bb2d | |||
1ae104167a | |||
8869b22a1d | |||
1650af04cd | |||
bdcc2adf3f | |||
570be592bb | |||
d94de05fd4 | |||
69c180d2e8 | |||
134911843a | |||
d31ccbd268 | |||
2bbe39cf4a | |||
4588685e97 | |||
4b2ddfad20 | |||
516b148dae | |||
0c53eadf34 | |||
3e61554625 | |||
6054c2d250 | |||
5589a12b9d | |||
e2384e2722 | |||
d077085595 | |||
53f1032975 | |||
875ec23ade | |||
cee9de7ed1 | |||
badad156e1 | |||
8e89725381 | |||
2219177eac | |||
baf29b1223 | |||
5c0933d19a | |||
8de9eca8ae | |||
d172180660 | |||
9f78b17fd1 | |||
f5e33fb396 | |||
9ae6e45dda | |||
94d88e91c5 | |||
8b4901ce57 | |||
08086be4c5 | |||
f2805bca52 | |||
033e1b8721 | |||
9e290ffddb | |||
6ada2f1b91 | |||
c6e393f5ce | |||
4e443cec09 | |||
528b60eb17 | |||
aedc7c8438 | |||
ec4ccb4a20 | |||
de6040a14d | |||
e0e4616ae0 | |||
c00fe5d7e0 | |||
30cf27e011 | |||
dcec8a46a8 | |||
1c7e2e7d85 | |||
1d6583e97e | |||
1cf5bcde62 | |||
db40c67f75 | |||
e10ba9fa9f | |||
a42a295951 | |||
0678415663 | |||
73a3745cc3 | |||
bed0fd9bdb | |||
3f1d4b70a6 | |||
218ffe641e | |||
be39e93ea2 | |||
783c9321c9 | |||
c62ce7d36f | |||
8ee2229c84 | |||
735647bdf7 | |||
f61535427c | |||
0d41c3d65e | |||
cbd3cf7c20 | |||
d505871faf | |||
9c14954ff4 | |||
fd0cbff16c | |||
246814874c | |||
1250668267 | |||
faa42d8651 | |||
ab1d5bae95 | |||
7f27073a4e | |||
1a80385a48 | |||
c88e690bb4 | |||
c1de398acc | |||
73f7c88122 | |||
f7b94ac599 | |||
ff39e6045d | |||
07ebd5f69b | |||
36fcc6674e | |||
37ed904f1a | |||
7a343f168f | |||
0ac0166068 | |||
048b55186e | |||
94c6240586 | |||
178d7e1505 | |||
082a73ee33 | |||
25c2768557 | |||
1d918a71d8 | |||
9e3f8dd43d | |||
164b699f24 | |||
c63bf5ea07 | |||
46fcb9e09c | |||
603010cbd5 | |||
d95b52b7db | |||
a7503ce3f3 | |||
48710f19c3 | |||
0983cc98fe | |||
6be81f05c2 | |||
84b742315a | |||
8317fbde5c | |||
b45f395996 | |||
59dfacee13 | |||
a6e0338245 | |||
f610aa63d1 | |||
966a84fa39 | |||
356dc36fd5 | |||
c112fdffc1 | |||
fa9ac1e471 | |||
3f13aa4f50 | |||
474504f1d3 | |||
ca45806aaa | |||
4947dfaad1 | |||
9cb902a819 | |||
89ff840880 | |||
df40020eea | |||
7ca8aef0d0 | |||
a37ba5c477 | |||
d0c0a13e28 | |||
39767cc038 | |||
ba8f911d64 | |||
97c9fbf469 | |||
f5b3c95068 | |||
e5fa629a64 | |||
8e8020e8b0 | |||
edb32f5dd1 | |||
cc22684420 | |||
eab4f7c88f | |||
f91ffcfd20 | |||
b995b3692e | |||
0ddafaf362 | |||
86031105be | |||
ee481a2a26 | |||
770a9779ca | |||
cdaa344321 | |||
7b542618f0 | |||
6440ca841a | |||
fac84cd45b | |||
21a83bd5a3 | |||
f333982598 | |||
00550d328c | |||
e8bb2b29fd | |||
ffdb35dc6a | |||
cf34c4ed32 | |||
f7d915256b | |||
8f44a0800b | |||
9348dd95a0 | |||
37508bb3ca | |||
c3f5dfa741 | |||
6288935884 | |||
c5e2e7e1e2 | |||
e9d4e5579e | |||
5d2761bc92 | |||
43b9515b61 | |||
a94f08920a | |||
b52dcd4a19 | |||
4c8e09526d | |||
a80ef301a9 | |||
fbc71b5a22 | |||
ad5883cdfd | |||
f9fe45cb75 | |||
a8120a1c46 | |||
6c55f47fd4 | |||
f1cd4bb0e2 | |||
53146df5d6 | |||
14f6dffe99 | |||
721e04370f | |||
b569765f82 | |||
1c9596dd80 | |||
c59dea3745 | |||
460b24f7ee | |||
2fc3919598 | |||
978dd425b9 | |||
1b8726458f | |||
3557f508d0 | |||
1ce802f2cc | |||
f0eda43906 | |||
343a950adc | |||
0218ef6b9f | |||
33e8e91e49 | |||
e78b3ff799 | |||
13bdfa119d | |||
0eea7a639a | |||
f2db21f339 | |||
b10108a9b5 | |||
dd3e88fba9 | |||
860af556e2 | |||
586a21086f | |||
d76f9e7722 | |||
79ce978527 | |||
944639b248 | |||
2728a99986 | |||
5bb515751a | |||
ea148943ed | |||
97f882e4c7 | |||
aabe504c24 | |||
b401c517b2 | |||
d89a944e22 | |||
48f8f3c02d | |||
4030cc2f26 |
@ -9,4 +9,4 @@ charset = utf-8
|
|||||||
|
|
||||||
[{Dockerfile,docker-compose.yml}]
|
[{Dockerfile,docker-compose.yml}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 2
|
||||||
|
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
/logs
|
/logs
|
||||||
/data
|
/data
|
||||||
.env
|
.env
|
||||||
|
/.project
|
140
CONTRIBUTING.md
@ -1,140 +0,0 @@
|
|||||||
# Contributing to LaraDock
|
|
||||||
|
|
||||||
Your contribution is more than welcome. Let's keep LaraDock amazing.
|
|
||||||
|
|
||||||
|
|
||||||
### Got a Question or Problem?
|
|
||||||
|
|
||||||
If you have questions about how to use LaraDock, please direct your questions to the discussion on [Gitter](https://gitter.im/LaraDock/laradock). If you believe your question could help others, then consider opening an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Question).
|
|
||||||
|
|
||||||
### Found an Issue?
|
|
||||||
If you find a bug in the source code or a mistake in the documentation, you can help us by
|
|
||||||
submitting an [Issue](https://github.com/laradock/laradock/issues). Even better you can submit a Pull Request with a fix.
|
|
||||||
|
|
||||||
### Want a Feature?
|
|
||||||
You can request a new feature by submitting an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Feature Suggestion). If you would like to implement a new feature then consider submitting a Pull Request.
|
|
||||||
|
|
||||||
|
|
||||||
## Coding Guidelines
|
|
||||||
|
|
||||||
### Support new Software
|
|
||||||
|
|
||||||
* Create folder with the software name.
|
|
||||||
|
|
||||||
* Add a `Dockerfile`, write your code there.
|
|
||||||
|
|
||||||
* You may add additional files in the software folder.
|
|
||||||
|
|
||||||
* Add the software to the `docker-compose.yml` file.
|
|
||||||
|
|
||||||
* Make sure you follow our commenting style.
|
|
||||||
|
|
||||||
* Add the software in the `Readme`.
|
|
||||||
|
|
||||||
### Edit existing Software
|
|
||||||
|
|
||||||
* Open the software (container) folder.
|
|
||||||
|
|
||||||
* Edit the files you want to update.
|
|
||||||
|
|
||||||
* **Note:** If you want to edit the base image of the `Workspace` or the `php-fpm` Containers,
|
|
||||||
you need to edit their Dockerfiles from their Github repositories. For more info read their Dockerfiles comment on the LaraDock repository.
|
|
||||||
|
|
||||||
* Make sure to update the `Readme` incase you made any changes.
|
|
||||||
|
|
||||||
## Issue/PR Submission Guidelines
|
|
||||||
|
|
||||||
### Submitting an Issue
|
|
||||||
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.
|
|
||||||
Help us to maximize the effort we can spend fixing issues and adding new
|
|
||||||
features, by not reporting duplicate issues.
|
|
||||||
|
|
||||||
|
|
||||||
### Before Submitting a Pull Request (PR)
|
|
||||||
|
|
||||||
Always Test everything and make sure its working:
|
|
||||||
|
|
||||||
- Pull the latest updates (or fork of you don’t have permission)
|
|
||||||
- Before editing anything:
|
|
||||||
- Test building the container (docker-compose build --no-cache container-name) build with no cache first.
|
|
||||||
- Test running the container with some other containers in real app and see of everything is working fine.
|
|
||||||
- Now edit the container (edit section by section and test rebuilding the container after every edited section)
|
|
||||||
- Testing building the container (docker-compose build container-name) with no errors.
|
|
||||||
- Test it in real App.
|
|
||||||
|
|
||||||
|
|
||||||
### Submitting a PR
|
|
||||||
Consider the following guidelines:
|
|
||||||
|
|
||||||
* Search [GitHub](https://github.com/LaraDock/laradock/pulls) 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:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git checkout -b my-fix-branch master
|
|
||||||
```
|
|
||||||
* Commit your changes using a descriptive commit message.
|
|
||||||
|
|
||||||
* Push your branch to GitHub:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git push origin my-fix-branch
|
|
||||||
```
|
|
||||||
|
|
||||||
* In GitHub, send a pull request to `laradock:master`.
|
|
||||||
* If we suggest changes then:
|
|
||||||
* Make the required updates.
|
|
||||||
* Commit your changes to your branch (e.g. `my-fix-branch`).
|
|
||||||
* Push the changes to your GitHub repository (this will update your Pull Request).
|
|
||||||
|
|
||||||
> If the PR gets too outdated we may ask you to rebase and force push to update the PR:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git rebase master -i
|
|
||||||
git push origin my-fix-branch -f
|
|
||||||
```
|
|
||||||
|
|
||||||
*WARNING. 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 PR is merged
|
|
||||||
|
|
||||||
After your pull request is merged, you can safely delete your branch and pull the changes
|
|
||||||
from the main (upstream) repository:
|
|
||||||
|
|
||||||
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git push origin --delete my-fix-branch
|
|
||||||
```
|
|
||||||
|
|
||||||
* Check out the master branch:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git checkout master -f
|
|
||||||
```
|
|
||||||
|
|
||||||
* Delete the local branch:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git branch -D my-fix-branch
|
|
||||||
```
|
|
||||||
|
|
||||||
* Update your master with the latest upstream version:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git pull --ff upstream master
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
|
||||||
### Happy Coding :)
|
|
91
DOCUMENTATION/_settings/config.toml
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
baseurl = "http://laradock.io/"
|
||||||
|
languageCode = "en-us"
|
||||||
|
publishDir = "../../docs"
|
||||||
|
title = "Laradock"
|
||||||
|
theme = "hugo-material-docs"
|
||||||
|
metadataformat = "yaml"
|
||||||
|
canonifyurls = true
|
||||||
|
# Enable Google Analytics by entering your tracking id
|
||||||
|
googleAnalytics = "UA-37514928-9"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
# General information
|
||||||
|
author = "Mahmoud Zalt"
|
||||||
|
description = "Laradock documentations."
|
||||||
|
copyright = ""
|
||||||
|
|
||||||
|
# Repository
|
||||||
|
provider = ""
|
||||||
|
repo_url = ""
|
||||||
|
|
||||||
|
version = ""
|
||||||
|
logo = ""
|
||||||
|
favicon = ""
|
||||||
|
|
||||||
|
permalink = "#"
|
||||||
|
|
||||||
|
# Custom assets
|
||||||
|
custom_css = []
|
||||||
|
custom_js = []
|
||||||
|
|
||||||
|
# Syntax highlighting theme
|
||||||
|
highlight_css = ""
|
||||||
|
|
||||||
|
[params.palette]
|
||||||
|
primary = "deep-purple"
|
||||||
|
accent = "purple"
|
||||||
|
|
||||||
|
[params.font]
|
||||||
|
text = "Doctarine"
|
||||||
|
code = "Source Code Pro"
|
||||||
|
|
||||||
|
[social]
|
||||||
|
twitter = ""
|
||||||
|
github = "laradock/laradock"
|
||||||
|
email = ""
|
||||||
|
|
||||||
|
# ------- MENU START -----------------------------------------
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Introduction"
|
||||||
|
url = "introduction/"
|
||||||
|
weight = 1
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Getting Started"
|
||||||
|
url = "getting-started/"
|
||||||
|
weight = 2
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Documentation"
|
||||||
|
url = "documentation/"
|
||||||
|
weight = 3
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Related Projects"
|
||||||
|
url = "related-projects/"
|
||||||
|
weight = 4
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Help & Questions"
|
||||||
|
url = "help/"
|
||||||
|
weight = 5
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Contributing"
|
||||||
|
url = "contributing/"
|
||||||
|
weight = 6
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "License"
|
||||||
|
url = "license/"
|
||||||
|
weight = 7
|
||||||
|
|
||||||
|
# ------- MENU END -----------------------------------------
|
||||||
|
|
||||||
|
[blackfriday]
|
||||||
|
smartypants = true
|
||||||
|
fractions = true
|
||||||
|
smartDashes = true
|
||||||
|
plainIDAnchors = true
|
||||||
|
|
164
DOCUMENTATION/_settings/content/contributing/index.md
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
---
|
||||||
|
title: Contributing
|
||||||
|
type: index
|
||||||
|
weight: 6
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Your contribution is more than welcome.
|
||||||
|
|
||||||
|
## I have a Question/Problem
|
||||||
|
|
||||||
|
If you have questions about how to use Laradock, please direct your questions to the discussion on [Gitter](https://gitter.im/Laradock/laradock). If you believe your question could help others, then consider opening an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as `Question`) And you can still seek help on Gitter for it.
|
||||||
|
|
||||||
|
## I found an Issue
|
||||||
|
If have an issue or you found a typo in the documentation, you can help us by
|
||||||
|
opnening an [Issue](https://github.com/laradock/laradock/issues).
|
||||||
|
|
||||||
|
**Steps to do before opening an Issue:**
|
||||||
|
|
||||||
|
1. Before you submit your issue search the archive, maybe your question was already answered couple hours ago (search in the closed Issues as well).
|
||||||
|
|
||||||
|
2. Decide if the Issue belongs to this project or to [Docker](https://github.com/docker) itself! or even the tool you are using such as Nginx or MongoDB...
|
||||||
|
|
||||||
|
If your issue appears to be a bug, and hasn't been reported, then open a new issue.
|
||||||
|
|
||||||
|
*This Help us to maximize the effort we can spend fixing issues and adding new
|
||||||
|
features, by not reporting duplicate issues.*
|
||||||
|
|
||||||
|
|
||||||
|
## I want a Feature
|
||||||
|
You can request a new feature by submitting an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as `Feature Suggestion`). If you would like to implement a new feature then consider submitting a Pull Request yourself.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## I want to update the Documentation (Site)
|
||||||
|
|
||||||
|
Laradock uses [Hugo](https://gohugo.io/) as website generator tool, with the [Material Docs theme](http://themes.gohugo.io/theme/material-docs/). You might need to check their docs quickly.
|
||||||
|
|
||||||
|
|
||||||
|
1. Install [Hugo](https://gohugo.io/) on your machine (easy thing).
|
||||||
|
2. Open the `DOCUMENTATION/_settings/content` and search for the markdown file you want to edit (every folder represents a section in the menu).
|
||||||
|
3. Delete the `/docs` folder from the root.
|
||||||
|
4. When you finish editing, run the `hugo` command to generate the HTML docs (in the `/docs`).
|
||||||
|
|
||||||
|
### To Host the website locally
|
||||||
|
Go to `DOCUMENTATION/_settings` in your terminal and run `hugo serve` to host the website locally.
|
||||||
|
|
||||||
|
### Edit the sidebar
|
||||||
|
To add a new section to the sidebar or edit existing one, you need to edit this file `DOCUMENTATION/_settings/config.toml`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## How to support new Software (Add new Container)
|
||||||
|
|
||||||
|
* Create folder with the software name.
|
||||||
|
|
||||||
|
* Add a `Dockerfile`, write your code there.
|
||||||
|
|
||||||
|
* You may add additional files in the software folder.
|
||||||
|
|
||||||
|
* Add the software to the `docker-compose.yml` file.
|
||||||
|
|
||||||
|
* Make sure you follow our commenting style.
|
||||||
|
|
||||||
|
* Add the software in the `Documentation`.
|
||||||
|
|
||||||
|
## Edit existing Software (Edit a Container)
|
||||||
|
|
||||||
|
* Open the software (container) folder.
|
||||||
|
|
||||||
|
* Edit the files you want to update.
|
||||||
|
|
||||||
|
* **Note:** If you want to edit the base image of the `Workspace` or the `php-fpm` Containers,
|
||||||
|
you need to edit their Docker-files from their GitHub repositories. For more info read their Dockerfiles comment on the Laradock repository.
|
||||||
|
|
||||||
|
* Make sure to update the `Documentation` in case you made any changes.
|
||||||
|
|
||||||
|
|
||||||
|
## Pull Request
|
||||||
|
|
||||||
|
### 1. Before Submitting a Pull Request (PR)
|
||||||
|
|
||||||
|
Always Test everything and make sure its working:
|
||||||
|
|
||||||
|
- Pull the latest updates (or fork of you don’t have permission)
|
||||||
|
- Before editing anything:
|
||||||
|
- Test building the container (docker-compose build --no-cache container-name) build with no cache first.
|
||||||
|
- Test running the container with some other containers in real app and see of everything is working fine.
|
||||||
|
- Now edit the container (edit section by section and test rebuilding the container after every edited section)
|
||||||
|
- Testing building the container (docker-compose build container-name) with no errors.
|
||||||
|
- Test it in a real App if possible.
|
||||||
|
|
||||||
|
|
||||||
|
### 2. Submitting a PR
|
||||||
|
Consider the following guidelines:
|
||||||
|
|
||||||
|
* Search [GitHub](https://github.com/laradock/laradock/pulls) for an open or closed Pull Request that relates to your submission. You don't want to duplicate efforts.
|
||||||
|
|
||||||
|
* Make your changes in a new git branch:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git checkout -b my-fix-branch master
|
||||||
|
```
|
||||||
|
* Commit your changes using a descriptive commit message.
|
||||||
|
|
||||||
|
* Push your branch to GitHub:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git push origin my-fix-branch
|
||||||
|
```
|
||||||
|
|
||||||
|
* In GitHub, send a pull request to `laradock:master`.
|
||||||
|
* If we suggest changes then:
|
||||||
|
* Make the required updates.
|
||||||
|
* Commit your changes to your branch (e.g. `my-fix-branch`).
|
||||||
|
* Push the changes to your GitHub repository (this will update your Pull Request).
|
||||||
|
|
||||||
|
> If the PR gets too outdated we may ask you to rebase and force push to update the PR:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git rebase master -i
|
||||||
|
git push origin my-fix-branch -f
|
||||||
|
```
|
||||||
|
|
||||||
|
*WARNING. 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.*
|
||||||
|
|
||||||
|
|
||||||
|
### 3. After your PR is merged
|
||||||
|
|
||||||
|
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
|
||||||
|
|
||||||
|
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git push origin --delete my-fix-branch
|
||||||
|
```
|
||||||
|
|
||||||
|
* Check out the master branch:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git checkout master -f
|
||||||
|
```
|
||||||
|
|
||||||
|
* Delete the local branch:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git branch -D my-fix-branch
|
||||||
|
```
|
||||||
|
|
||||||
|
* Update your master with the latest upstream version:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git pull --ff upstream master
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
#### Happy Coding :)
|
1479
DOCUMENTATION/_settings/content/documentation/index.md
Normal file
211
DOCUMENTATION/_settings/content/getting-started/index.md
Normal file
@ -0,0 +1,211 @@
|
|||||||
|
---
|
||||||
|
title: Getting Started
|
||||||
|
type: index
|
||||||
|
weight: 2
|
||||||
|
---
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- [Git](https://git-scm.com/downloads)
|
||||||
|
- [Docker](https://www.docker.com/products/docker/) `>= 1.12`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Choose the setup the best suits your needs.
|
||||||
|
|
||||||
|
- [A) Setup for Single Project](#A)
|
||||||
|
- [A.1) Already have a PHP project](#A1)
|
||||||
|
- [A.2) Don't have a PHP project yet](#A2)
|
||||||
|
- [B) Setup for Multiple Projects](#B)
|
||||||
|
|
||||||
|
|
||||||
|
<a name="A"></a>
|
||||||
|
### A) Setup for Single Project
|
||||||
|
> (Follow these steps if you want a separate Docker environment for each project)
|
||||||
|
|
||||||
|
|
||||||
|
<a name="A1"></a>
|
||||||
|
### A.1) Already have a PHP project:
|
||||||
|
|
||||||
|
1 - Clone laradock on your project root directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git submodule add https://github.com/Laradock/laradock.git
|
||||||
|
```
|
||||||
|
|
||||||
|
**Notes:**
|
||||||
|
|
||||||
|
- If you are not using Git yet for your project, you can use `git clone` instead of `git submodule `.
|
||||||
|
|
||||||
|
- Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. [Check this](/documentation/#keep-track-of-your-laradock-changes)
|
||||||
|
|
||||||
|
|
||||||
|
Your folder structure should look like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
+ project-a
|
||||||
|
+ laradock-a
|
||||||
|
+ project-b
|
||||||
|
+ laradock-b
|
||||||
|
```
|
||||||
|
|
||||||
|
(It's important to rename the folders differently in each project.)
|
||||||
|
|
||||||
|
> **Now jump to the [Usage](#Usage) section.**
|
||||||
|
|
||||||
|
<a name="A2"></a>
|
||||||
|
### A.2) Don't have a PHP project yet:
|
||||||
|
|
||||||
|
1 - Clone this repository anywhere on your machine:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/laradock/laradock.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Your folder structure should look like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
+ laradock
|
||||||
|
+ project-z
|
||||||
|
```
|
||||||
|
|
||||||
|
2 - Edit your web server sites configuration.
|
||||||
|
|
||||||
|
**In case of NGINX:** open `nginx/sites/default.conf` and change the `root` from `/var/www/public` to `/var/www/{my-project-folder-name}/public`.
|
||||||
|
|
||||||
|
*Or you can keep `default.conf` as it is, and create a separate config `my-site.conf` file for it.*
|
||||||
|
|
||||||
|
**In case of Apache:** :P
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
> **Now jump to the [Usage](#Usage) section.**
|
||||||
|
|
||||||
|
|
||||||
|
<a name="B"></a>
|
||||||
|
### B) Setup for Multiple Projects:
|
||||||
|
> (Follow these steps if you want a single Docker environment for all your project)
|
||||||
|
|
||||||
|
1 - Clone this repository anywhere on your machine (similar to [Steps A.2. from above](#A2)):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/laradock/laradock.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Your folder structure should look like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
+ laradock
|
||||||
|
+ project-1
|
||||||
|
+ project-2
|
||||||
|
```
|
||||||
|
|
||||||
|
2 - Go to `nginx/sites` and create config files to point to different project directory when visiting different domains.
|
||||||
|
|
||||||
|
Laradock by default includes `project-1.conf` and `project-2.conf` as working samples.
|
||||||
|
|
||||||
|
3 - change the default names `project-n`:
|
||||||
|
|
||||||
|
You can rename the config files, project folders and domains as you like, just make sure the `root` in the config files, is pointing to the correct project folder name.
|
||||||
|
|
||||||
|
4 - Add the domains to the **hosts** files.
|
||||||
|
|
||||||
|
```
|
||||||
|
127.0.0.1 project-1.dev
|
||||||
|
127.0.0.1 project-2.dev
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Now jump to the [Usage](#Usage) section.**
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="Usage"></a>
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
**Read Before starting:**
|
||||||
|
|
||||||
|
If you are using **Docker Toolbox** (VM), do one of the following:
|
||||||
|
|
||||||
|
- Upgrade to Docker [Native](https://www.docker.com/products/docker) for Mac/Windows (Recommended). Check out [Upgrading Laradock](/documentation/#upgrading-laradock)
|
||||||
|
- Use Laradock v3.\*. Visit the [LaraDock-ToolBox](https://github.com/laradock/laradock/tree/LaraDock-ToolBox) branch. *(outdated)*
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
>**Warning:** If you used an older version of Laradock it's highly recommended to rebuild the containers you need to use [see how you rebuild a container](#Build-Re-build-Containers) in order to prevent as much errors as possible.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
1 - Enter the laradock folder and rename `env-example` to `.env`
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cp env-example .env
|
||||||
|
```
|
||||||
|
|
||||||
|
You can edit the `.env` file to chose which software's you want to be installed in your environment. You can always refer to the `docker-compose.yml` file to see how those variables are been used.
|
||||||
|
|
||||||
|
|
||||||
|
2 - Build the enviroment and run it using `docker-compose`
|
||||||
|
|
||||||
|
In this example we'll see how to run NGINX (web server) and MySQL (database engine) to host a PHP Web Scripts:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d nginx mysql
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note**: The `workspace` and `php-fpm` will run automatically in most of the cases, so no need to specify them in the `up` command. If you couldn't find them running then you need specify them as follow: `docker-compose up -d nginx php-fpm mysql workspace`.
|
||||||
|
|
||||||
|
|
||||||
|
You can select your own combination of containers form the list below:
|
||||||
|
|
||||||
|
> `nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `rabbitmq`, `beanstalkd-console`, `workspace`, `phpmyadmin`, `adminer`, `aerospike`, `pgadmin`, `elasticsearch`, `rethinkdb`, `postgres-postgis`, `certbot`, `mailhog`, `minio` and more...!
|
||||||
|
|
||||||
|
*(Please note that sometimes we forget to update the docs, so check the `docker-compose.yml` file to see an updated list of all available containers).*
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
3 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, ...)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose exec workspace bash
|
||||||
|
```
|
||||||
|
|
||||||
|
*Alternatively, for Windows PowerShell users: execute the following command to enter any running container:*
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker exec -it {workspace-container-id} bash
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note:** You can add `--user=laradock` to have files created as your host's user. Example:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker-compose exec --user=laradock workspace bash
|
||||||
|
```
|
||||||
|
|
||||||
|
*You can change the PUID (User id) and PGID (group id) variables from the `.env` file)*
|
||||||
|
|
||||||
|
<br>
|
||||||
|
4 - Update your project configurations to use the database host
|
||||||
|
|
||||||
|
Open your PHP project's `.env` file or whichever configuration file you are reading from, and set the database host `DB_HOST` to `mysql`:
|
||||||
|
|
||||||
|
```env
|
||||||
|
DB_HOST=mysql
|
||||||
|
```
|
||||||
|
|
||||||
|
*If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).*
|
||||||
|
|
||||||
|
<br>
|
||||||
|
5 - Open your browser and visit your localhost address `http://localhost/`. If you followed the multiple projects setup, you can visit `http://project-1.dev/` and `http://project-2.dev/`. But first don't
|
||||||
|
|
||||||
|
|
9
DOCUMENTATION/_settings/content/help/index.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
title: Help & Questions
|
||||||
|
type: index
|
||||||
|
weight: 5
|
||||||
|
---
|
||||||
|
|
||||||
|
Join the chat room on [Gitter](https://gitter.im/Laradock/laradock) and get help and support from the community.
|
||||||
|
|
||||||
|
You can as well can open an [issue](https://github.com/laradock/laradock/issues) on Github (will be labeled as Question) and discuss it with people on [Gitter](https://gitter.im/Laradock/laradock).
|
5
DOCUMENTATION/_settings/content/index.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: Welcome
|
||||||
|
type: index
|
||||||
|
weight: 0
|
||||||
|
---
|
207
DOCUMENTATION/_settings/content/introduction/index.md
Normal file
@ -0,0 +1,207 @@
|
|||||||
|
---
|
||||||
|
title: Introduction
|
||||||
|
type: index
|
||||||
|
weight: 1
|
||||||
|
---
|
||||||
|
|
||||||
|
Laradock strives to make the PHP development experience easier and faster.
|
||||||
|
|
||||||
|
It contains pre-packaged Docker Images that provides you a wonderful *development* environment without requiring you to install PHP, NGINX, MySQL, Redis, and any other software on your machines.
|
||||||
|
|
||||||
|
Laradock is configured to run Laravel Apps by default, and it can be modified to run all kinds of PHP Apps (Symfony, CodeIgniter, WordPress, Drupal...).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Quick Overview
|
||||||
|
|
||||||
|
Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL`, `Redis` and `beanstalkd`:
|
||||||
|
|
||||||
|
1 - Clone Laradock inside your PHP project:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone https://github.com/Laradock/laradock.git
|
||||||
|
```
|
||||||
|
|
||||||
|
2 - Enter the laradock folder and rename `env-example` to `.env`.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cp env-example .env
|
||||||
|
```
|
||||||
|
|
||||||
|
3 - Run your containers:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker-compose up -d nginx mysql redis beanstalkd
|
||||||
|
```
|
||||||
|
|
||||||
|
3 - Open your project's `.env` file and set the following:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
DB_HOST=mysql
|
||||||
|
REDIS_HOST=redis
|
||||||
|
QUEUE_HOST=beanstalkd
|
||||||
|
```
|
||||||
|
|
||||||
|
4 - Open your browser and visit localhost: `http://localhost`.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
That's it! enjoy :)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="what-is-docker"></a>
|
||||||
|
## What is Docker?
|
||||||
|
|
||||||
|
[Docker](https://www.docker.com) is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of [operating-system-level virtualization](https://en.wikipedia.org/wiki/Operating-system-level_virtualization) on Linux, Mac OS and Windows.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="why-docker-not-vagrant"></a>
|
||||||
|
## Why Docker not Vagrant!?
|
||||||
|
|
||||||
|
[Vagrant](https://www.vagrantup.com) creates Virtual Machines in minutes while Docker creates Virtual Containers in seconds.
|
||||||
|
|
||||||
|
Instead of providing a full Virtual Machines, like you get with Vagrant, Docker provides you **lightweight** Virtual Containers, that share the same kernel and allow to safely execute independent processes.
|
||||||
|
|
||||||
|
In addition to the speed, Docker gives tons of features that cannot be achieved with Vagrant.
|
||||||
|
|
||||||
|
Most importantly Docker can run on Development and on Production (same environment everywhere). While Vagrant is designed for Development only, (so you have to re-provision your server on Production every time).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="laradock-vs-homestead"></a>
|
||||||
|
## Laradock VS Homestead (For Laravel Developers)
|
||||||
|
|
||||||
|
> Laradock It's like Laravel Homestead but for Docker instead of Vagrant.
|
||||||
|
|
||||||
|
Laradock and [Homestead](https://laravel.com/docs/master/homestead) both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System).
|
||||||
|
|
||||||
|
- Homestead is a tool that controls Vagrant for you (using Homestead special commands). And Vagrant manages your Virtual Machine.
|
||||||
|
|
||||||
|
- Laradock is a tool that controls Docker for you (using Docker & Docker Compose official commands). And Docker manages your Virtual Containers.
|
||||||
|
|
||||||
|
Running a virtual container is much faster than running a full virtual Machine. Thus **Laradock is much faster than Homestead**.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="Demo"></a>
|
||||||
|
## Demo Video
|
||||||
|
|
||||||
|
What's better than a **Demo Video**:
|
||||||
|
|
||||||
|
- Laradock [v4.*](https://www.youtube.com/watch?v=TQii1jDa96Y)
|
||||||
|
- Laradock [v2.*](https://www.youtube.com/watch?v=-DamFMczwDA)
|
||||||
|
- Laradock [v0.3](https://www.youtube.com/watch?v=jGkyO6Is_aI)
|
||||||
|
- Laradock [v0.1](https://www.youtube.com/watch?v=3YQsHe6oF80)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="features"></a>
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Easy switch between PHP versions: 7.0, 5.6, 5.5...
|
||||||
|
- Choose your favorite database engine: MySQL, Postgres, MariaDB...
|
||||||
|
- Run your own combination of software: Memcached, HHVM, Beanstalkd...
|
||||||
|
- Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI...
|
||||||
|
- Easy to customize any container, with simple edit to the `Dockerfile`.
|
||||||
|
- All Images extends from an official base Image. (Trusted base Images).
|
||||||
|
- Pre-configured NGINX for Laravel.
|
||||||
|
- Easy to apply configurations inside containers.
|
||||||
|
- Clean and well structured Dockerfiles (`Dockerfile`).
|
||||||
|
- Latest version of the Docker Compose file (`docker-compose`).
|
||||||
|
- Everything is visible and editable.
|
||||||
|
- Fast Images Builds.
|
||||||
|
- More to come every week..
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="Supported-Containers"></a>
|
||||||
|
## Supported Software (Containers)
|
||||||
|
|
||||||
|
- **Database Engines:**
|
||||||
|
- MySQL
|
||||||
|
- MariaDB
|
||||||
|
- MongoDB
|
||||||
|
- Neo4j
|
||||||
|
- RethinkDB
|
||||||
|
- PostgreSQL
|
||||||
|
- Postgres Postgis
|
||||||
|
- **Cache Engines:**
|
||||||
|
- Redis
|
||||||
|
- Memcached
|
||||||
|
- Aerospike
|
||||||
|
- **PHP Servers:**
|
||||||
|
- NGINX
|
||||||
|
- Apache2
|
||||||
|
- Caddy
|
||||||
|
- **PHP Compilers:**
|
||||||
|
- PHP-FPM
|
||||||
|
- HHVM
|
||||||
|
- **Message Queuing Systems:**
|
||||||
|
- Beanstalkd
|
||||||
|
- Beanstalkd Console
|
||||||
|
- RabbitMQ
|
||||||
|
- RabbitMQ Console
|
||||||
|
- **Tools:**
|
||||||
|
- PhpMyAdmin
|
||||||
|
- Adminer
|
||||||
|
- PgAdmin
|
||||||
|
- ElasticSearch
|
||||||
|
- Selenium
|
||||||
|
- Certbot
|
||||||
|
- Mailhog
|
||||||
|
- Minio
|
||||||
|
- Workspace
|
||||||
|
- PHP7-CLI
|
||||||
|
- Composer
|
||||||
|
- Git
|
||||||
|
- Linuxbrew
|
||||||
|
- Node
|
||||||
|
- Gulp
|
||||||
|
- SQLite
|
||||||
|
- xDebug
|
||||||
|
- Envoy
|
||||||
|
- Deployer
|
||||||
|
- Vim
|
||||||
|
- Yarn
|
||||||
|
- ... Many other supported tools are not documented. (Will be updated soon)
|
||||||
|
|
||||||
|
>If you can't find your Software, build it yourself and add it to this list. Contributions are welcomed :)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="Chat"></a>
|
||||||
|
## Chat with us
|
||||||
|
|
||||||
|
You are welcome to join our chat room on Gitter.
|
||||||
|
|
||||||
|
[](https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
7
DOCUMENTATION/_settings/content/license/index.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: License
|
||||||
|
type: index
|
||||||
|
weight: 7
|
||||||
|
---
|
||||||
|
|
||||||
|
[MIT License](https://github.com/laradock/laradock/blob/master/LICENSE) (MIT)
|
18
DOCUMENTATION/_settings/content/related-projects/index.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
title: Related Projects
|
||||||
|
type: index
|
||||||
|
weight: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
Laradock related projects:
|
||||||
|
|
||||||
|
* [Laradock CLI](https://github.com/lorinlee/laradock-cli) by [LorinLee](https://github.com/lorinlee)
|
||||||
|
* [Laradock Env](https://github.com/bagart/laradock_env) by [BAGArt](https://github.com/bagart)
|
||||||
|
* [Klaradock](https://github.com/poyhsiao/Klaradock) by [Kim Hsiao](https://github.com/poyhsiao)
|
||||||
|
* [Ansible Laradock Kubernetes](https://github.com/sifat-rahim/ansible-laradock-kubernetes) by [Sifat Rahim](https://github.com/sifat-rahim)
|
||||||
|
These Docker Compose projects have piqued our interest:
|
||||||
|
* [MageDock](https://github.com/ojhaujjwal/magedock) by [Ujjwal Ojha](https://github.com/ojhaujjwal)
|
||||||
|
* [RubyDev-Dock](https://github.com/scudelletti/rubydev-dock) by [Diogo Scudelletti](https://github.com/scudelletti)
|
||||||
|
* [NoDock](https://github.com/Osedea/nodock) by [Osedea](https://github.com/Osedea)
|
||||||
|
|
||||||
|
If you want your project listed here, please open an issue.
|
0
DOCUMENTATION/_settings/static/.gitkeep
Normal file
1
DOCUMENTATION/_settings/static/CNAME
Normal file
@ -0,0 +1 @@
|
|||||||
|
laradock.io
|
@ -0,0 +1,29 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
### 11th May 2016
|
||||||
|
|
||||||
|
#### Add templates for section lists
|
||||||
|
|
||||||
|
Sections such as www.example.com/foo/ will now be rendered with a list of all pages that are part of this section. The list shows the pages' title and a summary of their content.
|
||||||
|
|
||||||
|
[Show me the diff](https://github.com/digitalcraftsman/hugo-material-docs/commit/1f8393a8d4ce1b8ee3fc7d87be05895c12810494)
|
||||||
|
|
||||||
|
### 22nd March 2016
|
||||||
|
|
||||||
|
#### Changing setup for Google Analytics
|
||||||
|
|
||||||
|
Formerly, the tracking id for Google Analytics was set like below:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[params]
|
||||||
|
google_analytics = ["UA-XXXXXXXX-X", "auto"]
|
||||||
|
```
|
||||||
|
|
||||||
|
Now the theme uses Hugo's own Google Analytics config option. The variable moved outside the scope of `params` and the setup requires only the tracking id as a string:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
googleAnalytics = "UA-XXXXXXXX-X"
|
||||||
|
```
|
||||||
|
|
||||||
|
[Show me the diff](https://github.com/digitalcraftsman/hugo-material-docs/commit/fa10c8eef935932426d46b662a51f29a5e0d48e2)
|
20
DOCUMENTATION/_settings/themes/hugo-material-docs/LICENSE.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Copyright (c) 2016 Digitalcraftsman <digitalcraftsman@protonmail.com><br>
|
||||||
|
Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to
|
||||||
|
deal in the Software without restriction, including without limitation the
|
||||||
|
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
IN THE SOFTWARE.
|
40
DOCUMENTATION/_settings/themes/hugo-material-docs/README.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Material Docs
|
||||||
|
|
||||||
|
A material design theme for [Hugo](https://gohugo.io).
|
||||||
|
|
||||||
|
[](https://digitalcraftsman.github.io/hugo-material-docs/)
|
||||||
|
|
||||||
|
## Quick start
|
||||||
|
|
||||||
|
Install with `git`:
|
||||||
|
|
||||||
|
|
||||||
|
git clone https://github.com/digitalcraftsman/hugo-material-docs.git themes/hugo-material-docs
|
||||||
|
|
||||||
|
|
||||||
|
Next, take a look in the `exampleSite` folder at. This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation.
|
||||||
|
|
||||||
|
Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
|
||||||
|
|
||||||
|
Hugo includes a development server, so you can view your changes as you go -
|
||||||
|
very handy. Spin it up with the following command:
|
||||||
|
|
||||||
|
``` sh
|
||||||
|
hugo server
|
||||||
|
```
|
||||||
|
|
||||||
|
Now you can go to [localhost:1313](http://localhost:1313) and the Material
|
||||||
|
theme should be visible. For detailed installation instructions visit the [demo](http://themes.gohugo.io/theme/material-docs/).
|
||||||
|
|
||||||
|
Noteworthy changes of this theme are listed in the [changelog](https://github.com/digitalcraftsman/hugo-material-docs/blob/master/CHANGELOG.md).
|
||||||
|
|
||||||
|
## Acknowledgements
|
||||||
|
|
||||||
|
A big thank you to [Martin Donath](https://github.com/squidfunk). He created the original [Material theme](https://github.com/squidfunk/mkdocs-material) for Hugo's companion [MkDocs](http://www.mkdocs.org/). This port wouldn't be possible without him.
|
||||||
|
|
||||||
|
Furthermore, thanks to [Steve Francia](https://gihub.com/spf13) for creating Hugo and the [awesome community](https://github.com/spf13/hugo/graphs/contributors) around the project.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
The theme is released under the MIT license. Read the [license](https://github.com/digitalcraftsman/hugo-material-docs/blob/master/LICENSE.md) for more information.
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
---
|
After Width: | Height: | Size: 246 KiB |
BIN
DOCUMENTATION/_settings/themes/hugo-material-docs/images/tn.png
Normal file
After Width: | Height: | Size: 84 KiB |
@ -0,0 +1,57 @@
|
|||||||
|
{{ partial "head" . }}
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
{{ partial "header" . }}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
{{ partial "drawer" . }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>Pages in {{ .Title | singularize }}</h1>
|
||||||
|
|
||||||
|
{{ range .Data.Pages }}
|
||||||
|
<a href="{{ .Permalink }}" title="{{ .Title }}">
|
||||||
|
<h2>{{ .Title }}</h2>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
{{ printf "%s" .Summary | markdownify }}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
{{ with .Site.Params.copyright }}
|
||||||
|
© {{ $.Now.Format "2006" }} {{ . }} –
|
||||||
|
{{ end }}
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{{ partial "footer_js" . }}
|
@ -0,0 +1,57 @@
|
|||||||
|
{{ partial "head" . }}
|
||||||
|
|
||||||
|
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
|
||||||
|
{{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}}
|
||||||
|
{{ .Scratch.Set "repo_id" $repo_id }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
{{ partial "header" . }}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
{{ partial "drawer" . }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
{{ with .Site.Params.copyright }}
|
||||||
|
© {{ $.Now.Format "2006" }} {{ . }} –
|
||||||
|
{{ end }}
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
{{ partial "footer" . }}
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{{ partial "footer_js" . }}
|
@ -0,0 +1,61 @@
|
|||||||
|
{{ partial "head" . }}
|
||||||
|
|
||||||
|
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
|
||||||
|
{{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}}
|
||||||
|
{{ .Scratch.Set "repo_id" $repo_id }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
{{ partial "header" . }}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
{{ partial "drawer" . }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
{{ range where .Site.Pages "Type" "index" }}
|
||||||
|
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
{{ with .Site.Params.copyright }}
|
||||||
|
© {{ $.Now.Format "2006" }} {{ . }} –
|
||||||
|
{{ end }}
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme,
|
||||||
|
by
|
||||||
|
<a href="https://zalt.me">Mahmoud Zalt</a>.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
{{ partial "footer" . }}
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{{ partial "footer_js" . }}
|
@ -0,0 +1,78 @@
|
|||||||
|
<nav aria-label="Navigation">
|
||||||
|
<!--<a href="{{ with .Site.Params.repo_url }}{{ . }}{{ else }}{{ .Site.BaseURL }}{{ end }}" class="project">-->
|
||||||
|
<!--<div class="banner">-->
|
||||||
|
<!--{{ with .Site.Params.logo }}-->
|
||||||
|
<!--<div class="logo">-->
|
||||||
|
<!--<img src="{{ $.Site.BaseURL }}{{ . }}">-->
|
||||||
|
<!--</div>-->
|
||||||
|
<!--{{ end }}-->
|
||||||
|
<!--<div class="name">-->
|
||||||
|
<!--<strong>{{ .Site.Title }} {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{ end }}</strong>-->
|
||||||
|
<!--{{ with .Scratch.Get "repo_id" }}-->
|
||||||
|
<!--<br>-->
|
||||||
|
<!--{{ . }}-->
|
||||||
|
<!--{{ end }}-->
|
||||||
|
<!--</div>-->
|
||||||
|
<!--</div>-->
|
||||||
|
<!--</a>-->
|
||||||
|
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
|
||||||
|
<ul class="repo">
|
||||||
|
<li class="repo-download">
|
||||||
|
<a href="{{ .Site.Params.repo_url }}/archive/master.zip" target="_blank" title="Download" data-action="download">
|
||||||
|
<i class="icon icon-download"></i> Download
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="repo-stars">
|
||||||
|
<a href="{{ .Site.Params.repo_url }}/stargazers" target="_blank" title="Stargazers" data-action="star">
|
||||||
|
<i class="icon icon-star"></i> Stars
|
||||||
|
<span class="count">–</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<hr>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="toc">
|
||||||
|
{{ if gt (len .Site.Menus.main) 0 }}
|
||||||
|
<ul>
|
||||||
|
{{ partial "nav" . }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if isset .Site.Params "author" }}
|
||||||
|
<!--<hr>-->
|
||||||
|
<!--<span class="section">The author</span>-->
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{{ with .Site.Social.twitter }}
|
||||||
|
<li>
|
||||||
|
<a href="https://twitter.com/{{ . }}" target="_blank" title="@{{ . }} on Twitter">
|
||||||
|
@{{ . }} on Twitter
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!--{{ with .Site.Social.github }}-->
|
||||||
|
<!--<li>-->
|
||||||
|
<!--<a href="https://github.com/{{ . }}" target="_blank" title="@{{ . }} on GitHub">-->
|
||||||
|
<!--@{{ . }} on GitHub-->
|
||||||
|
<!--</a>-->
|
||||||
|
<!--</li>-->
|
||||||
|
<!--{{ end }}-->
|
||||||
|
|
||||||
|
{{ with .Site.Social.email }}
|
||||||
|
<li>
|
||||||
|
<a href="mailto:{{ . }}" title="Email of {{ . }}">
|
||||||
|
Contact via email
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
@ -0,0 +1,74 @@
|
|||||||
|
{{ if .IsPage }}
|
||||||
|
{{ if .Prev | or .Next }}
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
{{ if .Prev }}
|
||||||
|
<a href="{{ .Prev.Permalink }}" title="{{ .Prev.Title }}">
|
||||||
|
<span class="direction">
|
||||||
|
Previous
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="button button-previous" role="button" aria-label="Previous">
|
||||||
|
<i class="icon icon-back"></i>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
{{ .Prev.Title }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next">
|
||||||
|
{{ if .Next }}
|
||||||
|
<a href="{{ .Next.Permalink }}" title="{{ .Next.Title }}">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
{{ .Next.Title }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .IsHome }}
|
||||||
|
{{ if gt (len .Site.Pages) 2 }}
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ $title := (index (.Site.Pages.ByDate) 1).Title }}
|
||||||
|
{{ $permalink := (index (.Site.Pages.ByDate) 1).Permalink }}
|
||||||
|
<div class="next">
|
||||||
|
<a href="{{ $permalink }}" title="{{ $title }}">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
{{ $title }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
@ -0,0 +1,91 @@
|
|||||||
|
<script>
|
||||||
|
{{ with .Scratch.Get "repo_id" }}
|
||||||
|
var base_url = '{{ (printf "%s" $.Site.BaseURL) | safeJS }}';
|
||||||
|
var repo_id = '{{ . | safeJS }}';
|
||||||
|
{{ else }}
|
||||||
|
var base_url = '';
|
||||||
|
var repo_id = '';
|
||||||
|
{{ end }}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="{{ "javascripts/application.js" | absURL }}"></script>
|
||||||
|
{{ range .Site.Params.custom_js }}
|
||||||
|
<script src="{{ . | absURL }}"></script>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
{{ "/* Add headers to scrollspy */" | safeJS }}
|
||||||
|
var headers = document.getElementsByTagName("h2");
|
||||||
|
var scrollspy = document.getElementById('scrollspy');
|
||||||
|
|
||||||
|
if(scrollspy) {
|
||||||
|
if(headers.length > 0) {
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.setAttribute("class", "anchor");
|
||||||
|
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", headers[i].innerHTML);
|
||||||
|
a.innerHTML = headers[i].innerHTML;
|
||||||
|
|
||||||
|
li.appendChild(a)
|
||||||
|
scrollspy.appendChild(li);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{{ "/* Add permanent link next to the headers */" | safeJS }}
|
||||||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||||||
|
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("class", "headerlink");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", "Permanent link")
|
||||||
|
a.innerHTML = {{ or .Site.Params.permalink "¶" }};
|
||||||
|
headers[i].appendChild(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{{ with .Site.GoogleAnalytics }}
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){
|
||||||
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
||||||
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
||||||
|
m.parentNode.insertBefore(a,m)
|
||||||
|
})(window, document,
|
||||||
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
/* General initialization */
|
||||||
|
ga('create', '{{ . }}', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
ga('send', 'pageview');
|
||||||
|
/* Track outbound links */
|
||||||
|
var buttons = document.querySelectorAll('a');
|
||||||
|
Array.prototype.map.call(buttons, function(item) {
|
||||||
|
if (item.host != document.location.host) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
var action = item.getAttribute('data-action') || 'follow';
|
||||||
|
ga('send', 'event', 'outbound', action, item.href);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
/* Register handler to log search on blur */
|
||||||
|
var query = document.querySelector('.query');
|
||||||
|
query.addEventListener('blur', function() {
|
||||||
|
if (this.value) {
|
||||||
|
var path = document.location.pathname;
|
||||||
|
ga('send', 'pageview', path + '?q=' + this.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||||||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,79 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<!--[if lt IE 7 ]><html class="no-js ie6"><![endif]-->
|
||||||
|
<!--[if IE 7 ]><html class="no-js ie7"><![endif]-->
|
||||||
|
<!--[if IE 8 ]><html class="no-js ie8"><![endif]-->
|
||||||
|
<!--[if IE 9 ]><html class="no-js ie9"><![endif]-->
|
||||||
|
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
|
||||||
|
|
||||||
|
<head {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
|
<title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
|
||||||
|
{{ .Hugo.Generator }}
|
||||||
|
|
||||||
|
{{ with .Site.Params.description }}
|
||||||
|
<meta name="description" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
{{ with .Site.Params.author }}
|
||||||
|
<meta name="author" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
{{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
|
||||||
|
{{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
|
||||||
|
<link rel="icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Icon';
|
||||||
|
src: url('{{ "fonts/icon.eot?52m981" | absURL }}');
|
||||||
|
src: url('{{ "fonts/icon.eot?#iefix52m981" | absURL }}')
|
||||||
|
format('embedded-opentype'),
|
||||||
|
url('{{ "fonts/icon.woff?52m981" | absURL }}')
|
||||||
|
format('woff'),
|
||||||
|
url('{{ "fonts/icon.ttf?52m981" | absURL }}')
|
||||||
|
format('truetype'),
|
||||||
|
url('{{ "fonts/icon.svg?52m981#icon" | absURL }}')
|
||||||
|
format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="{{ "stylesheets/application.css" | absURL }}">
|
||||||
|
<link rel="stylesheet" href="{{ "stylesheets/temporary.css" | absURL }}">
|
||||||
|
<link rel="stylesheet" href="{{ "stylesheets/palettes.css" | absURL }}">
|
||||||
|
<link rel="stylesheet" href="{{ with .Site.Params.highlight_css }}{{ . | absURL }}{{ else }}{{ "stylesheets/highlight/highlight.css" | absURL }}{{ end }}">
|
||||||
|
|
||||||
|
{{/* set default values if no custom ones are defined */}}
|
||||||
|
{{ $text := or .Site.Params.font.text "Roboto" }}
|
||||||
|
{{ $code := or .Site.Params.font.code "Roboto Mono" }}
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ $text }}:400,700|{{ replace $code " " "+" | safeURL }}">
|
||||||
|
<style>
|
||||||
|
body, input {
|
||||||
|
font-family: '{{ $text }}', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
pre, code {
|
||||||
|
font-family: '{{ $code }}', 'Courier New', 'Courier', monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
{{ range .Site.Params.custom_css }}
|
||||||
|
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||||
|
{{ end }}
|
||||||
|
<script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
|
||||||
|
|
||||||
|
{{ with .RSSLink }}
|
||||||
|
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
|
<link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">
|
@ -0,0 +1,46 @@
|
|||||||
|
<nav aria-label="Header">
|
||||||
|
<div class="bar default">
|
||||||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||||||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
<b>{{ .Site.Title }}</b> <span style="color: rgba(249, 245, 255, 0.63);"> / {{ .Title }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ with .Site.Social.twitter }}
|
||||||
|
<div class="button button-twitter" role="button" aria-label="Twitter">
|
||||||
|
<a href="https://twitter.com/{{ . }}" title="@{{ . }} on Twitter" target="_blank" class="toggle-button icon icon-twitter"></a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with .Site.Social.github }}
|
||||||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||||||
|
<a style="padding: 0px; font-size:40px" href="https://github.com/{{ . }}" title="@{{ . }} on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||||||
|
</div>
|
||||||
|
<p style="font-size: 18px; padding: 8px">Github</p>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- TODO: disabled until Hugo supports the generation of a content index natively
|
||||||
|
<div class="button button-search" role="button" aria-label="Search">
|
||||||
|
<label class="toggle-button icon icon-search" title="Search" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
|
</div>
|
||||||
|
<div class="bar search">
|
||||||
|
<div class="button button-close" role="button" aria-label="Close">
|
||||||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="field">
|
||||||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||||||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
@ -0,0 +1,19 @@
|
|||||||
|
{{ $currentNode := . }}
|
||||||
|
|
||||||
|
{{ range .Site.Menus.main.ByWeight }}
|
||||||
|
|
||||||
|
{{ $.Scratch.Set "currentMenuEntry" . }}
|
||||||
|
<li>
|
||||||
|
{{ if .HasChildren }}
|
||||||
|
<span class="section">{{ .Name | title }}</span>
|
||||||
|
<ul>
|
||||||
|
{{ range .Children }}
|
||||||
|
{{ $.Scratch.Set "currentMenuEntry" . }}
|
||||||
|
{{ partial "nav_link" $currentNode }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
{{ partial "nav_link" $currentNode }}
|
||||||
|
{{ end }}
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
@ -0,0 +1,13 @@
|
|||||||
|
{{ $currentMenuEntry := .Scratch.Get "currentMenuEntry" }}
|
||||||
|
{{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }}
|
||||||
|
|
||||||
|
|
||||||
|
<a {{ if $isCurrent }}class="current"{{ end }} title="{{ $currentMenuEntry.Name }}" href="{{ $currentMenuEntry.URL | relURL}}">
|
||||||
|
{{ $currentMenuEntry.Pre }}
|
||||||
|
{{ $currentMenuEntry.Name }}
|
||||||
|
</a>
|
||||||
|
|
||||||
|
{{ if $isCurrent }}
|
||||||
|
<ul id="scrollspy">
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
@ -0,0 +1,4 @@
|
|||||||
|
<div class="admonition note">
|
||||||
|
<p class="admonition-title">{{ .Get "title" }}</p>
|
||||||
|
<p>{{ printf "%s" .Inner | markdownify }}</p>
|
||||||
|
</div>
|
@ -0,0 +1,4 @@
|
|||||||
|
<div class="admonition warning">
|
||||||
|
<p class="admonition-title">{{ .Get "title" }}</p>
|
||||||
|
<p>{{ printf "%s" .Inner | markdownify }}</p>
|
||||||
|
</div>
|
BIN
DOCUMENTATION/_settings/themes/hugo-material-docs/static/fonts/icon.eot
Executable file
22
DOCUMENTATION/_settings/themes/hugo-material-docs/static/fonts/icon.svg
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>Generated by IcoMoon</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="icon" horiz-adv-x="1024">
|
||||||
|
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||||
|
<missing-glyph horiz-adv-x="1024" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||||
|
<glyph unicode="" glyph-name="search" d="M661.333 341.334h-33.92l-11.733 11.733c41.813 48.427 66.987 111.36 66.987 180.267 0 153.173-124.16 277.333-277.333 277.333s-277.333-124.16-277.333-277.333 124.16-277.333 277.333-277.333c68.907 0 131.84 25.173 180.267 66.773l11.733-11.733v-33.707l213.333-212.907 63.573 63.573-212.907 213.333zM405.333 341.334c-106.027 0-192 85.973-192 192s85.973 192 192 192 192-85.973 192-192-85.973-192-192-192z" />
|
||||||
|
<glyph unicode="" glyph-name="arrow-back" d="M853.333 469.334h-519.253l238.293 238.293-60.373 60.373-341.333-341.333 341.333-341.333 60.373 60.373-238.293 238.293h519.253v85.333z" />
|
||||||
|
<glyph unicode="" glyph-name="chevron-right" d="M426.667 682.667l-60.373-60.373 195.627-195.627-195.627-195.627 60.373-60.373 256 256z" />
|
||||||
|
<glyph unicode="" glyph-name="close" d="M810.667 664.96l-60.373 60.373-238.293-238.293-238.293 238.293-60.373-60.373 238.293-238.293-238.293-238.293 60.373-60.373 238.293 238.293 238.293-238.293 60.373 60.373-238.293 238.293z" />
|
||||||
|
<glyph unicode="" glyph-name="menu" d="M128 170.667h768v85.333h-768v-85.333zM128 384h768v85.333h-768v-85.333zM128 682.667v-85.333h768v85.333h-768z" />
|
||||||
|
<glyph unicode="" glyph-name="arrow-forward" d="M512 768l-60.373-60.373 238.293-238.293h-519.253v-85.333h519.253l-238.293-238.293 60.373-60.373 341.333 341.333z" />
|
||||||
|
<glyph unicode="" glyph-name="twitter" d="M1024 744.249c-37.676-16.708-78.164-28.002-120.66-33.080 43.372 26 76.686 67.17 92.372 116.23-40.596-24.078-85.556-41.56-133.41-50.98-38.32 40.83-92.922 66.34-153.346 66.34-116.022 0-210.088-94.058-210.088-210.078 0-16.466 1.858-32.5 5.44-47.878-174.6 8.764-329.402 92.4-433.018 219.506-18.084-31.028-28.446-67.116-28.446-105.618 0-72.888 37.088-137.192 93.46-174.866-34.438 1.092-66.832 10.542-95.154 26.278-0.020-0.876-0.020-1.756-0.020-2.642 0-101.788 72.418-186.696 168.522-206-17.626-4.8-36.188-7.372-55.348-7.372-13.538 0-26.698 1.32-39.528 3.772 26.736-83.46 104.32-144.206 196.252-145.896-71.9-56.35-162.486-89.934-260.916-89.934-16.958 0-33.68 0.994-50.116 2.94 92.972-59.61 203.402-94.394 322.042-94.394 386.422 0 597.736 320.124 597.736 597.744 0 9.108-0.206 18.168-0.61 27.18 41.056 29.62 76.672 66.62 104.836 108.748z" />
|
||||||
|
<glyph unicode="" glyph-name="github" d="M512.008 926.025c-282.738 0-512.008-229.218-512.008-511.998 0-226.214 146.704-418.132 350.136-485.836 25.586-4.738 34.992 11.11 34.992 24.632 0 12.204-0.48 52.542-0.696 95.324-142.448-30.976-172.504 60.41-172.504 60.41-23.282 59.176-56.848 74.916-56.848 74.916-46.452 31.778 3.51 31.124 3.51 31.124 51.4-3.61 78.476-52.766 78.476-52.766 45.672-78.27 119.776-55.64 149.004-42.558 4.588 33.086 17.852 55.68 32.506 68.464-113.73 12.942-233.276 56.85-233.276 253.032 0 55.898 20.004 101.574 52.76 137.428-5.316 12.9-22.854 64.972 4.952 135.5 0 0 43.006 13.752 140.84-52.49 40.836 11.348 84.636 17.036 128.154 17.234 43.502-0.198 87.336-5.886 128.256-17.234 97.734 66.244 140.656 52.49 140.656 52.49 27.872-70.528 10.35-122.6 5.036-135.5 32.82-35.856 52.694-81.532 52.694-137.428 0-196.654-119.778-239.95-233.79-252.624 18.364-15.89 34.724-47.046 34.724-94.812 0-68.508-0.596-123.644-0.596-140.508 0-13.628 9.222-29.594 35.172-24.566 203.322 67.776 349.842 259.626 349.842 485.768 0 282.78-229.234 511.998-511.992 511.998z" />
|
||||||
|
<glyph unicode="" glyph-name="download" d="M810.667 554.667h-170.667v256h-256v-256h-170.667l298.667-298.667 298.667 298.667zM213.333 170.667v-85.333h597.333v85.333h-597.333z" />
|
||||||
|
<glyph unicode="" glyph-name="star" d="M512 201.814l263.68-159.147-69.973 299.947 232.96 201.813-306.773 26.027-119.893 282.88-119.893-282.88-306.773-26.027 232.96-201.813-69.973-299.947z" />
|
||||||
|
<glyph unicode="" glyph-name="warning" d="M554 340.667v172h-84v-172h84zM554 170.667v86h-84v-86h84zM42 42.667l470 810 470-810h-940z" />
|
||||||
|
<glyph unicode="" glyph-name="hint" d="M614 682.667h240v-426h-300l-16 84h-240v-298h-84v726h384z" />
|
||||||
|
</font></defs></svg>
|
After Width: | Height: | Size: 4.3 KiB |
BIN
DOCUMENTATION/_settings/themes/hugo-material-docs/static/fonts/icon.ttf
Executable file
BIN
DOCUMENTATION/_settings/themes/hugo-material-docs/static/fonts/icon.woff
Executable file
After Width: | Height: | Size: 254 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 145 KiB |
@ -0,0 +1,105 @@
|
|||||||
|
/*
|
||||||
|
* overwrite the current primary color of the
|
||||||
|
* theme that is used as fallback in codeblocks
|
||||||
|
*/
|
||||||
|
.article pre code {
|
||||||
|
color: rgba(0, 0, 0, 0.8) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
HIGHLIGHT.JS THEME
|
||||||
|
|
||||||
|
tweaked version of the Github theme
|
||||||
|
*/
|
||||||
|
|
||||||
|
.hljs {
|
||||||
|
display:block;
|
||||||
|
overflow-x:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-comment,
|
||||||
|
.hljs-quote {
|
||||||
|
color:#998;
|
||||||
|
font-style:italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-keyword,
|
||||||
|
.hljs-selector-tag,
|
||||||
|
.hljs-subst {
|
||||||
|
color:#333;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-number,
|
||||||
|
.hljs-literal,
|
||||||
|
.hljs-variable,
|
||||||
|
.hljs-template-variable,
|
||||||
|
.hljs-tag .hljs-attr {
|
||||||
|
color:teal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-string,
|
||||||
|
.hljs-doctag {
|
||||||
|
color:#d14;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-title,
|
||||||
|
.hljs-section,
|
||||||
|
.hljs-selector-id {
|
||||||
|
color:#900;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-subst {
|
||||||
|
font-weight:400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-type,
|
||||||
|
.hljs-class .hljs-title {
|
||||||
|
color:#458;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-tag,
|
||||||
|
.hljs-name,
|
||||||
|
.hljs-attribute {
|
||||||
|
color:navy;
|
||||||
|
font-weight:400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-regexp,
|
||||||
|
.hljs-link {
|
||||||
|
color:#009926;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-symbol,
|
||||||
|
.hljs-bullet {
|
||||||
|
color:#990073;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-built_in,
|
||||||
|
.hljs-builtin-name {
|
||||||
|
color:#0086b3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-meta {
|
||||||
|
color:#999;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-deletion {
|
||||||
|
background:#fdd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-addition {
|
||||||
|
background:#dfd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-emphasis {
|
||||||
|
font-style:italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-strong {
|
||||||
|
font-weight:700;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
/* This file only exists (temporarily) until the
|
||||||
|
custom styling can be replaced with the
|
||||||
|
implementation of the upstream project.
|
||||||
|
*/
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
padding: 0 20px;
|
||||||
|
margin: 0 0 20px;
|
||||||
|
font-size: inherit;
|
||||||
|
border-left: 5px solid #eee;
|
||||||
|
}
|
18
DOCUMENTATION/_settings/themes/hugo-material-docs/theme.toml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name = "Material Docs"
|
||||||
|
license = "MIT"
|
||||||
|
licenselink = "https://github.com/digitalcraftsman/hugo-material-docs/blob/master/LICENSE.md"
|
||||||
|
description = "A material design theme for documentations."
|
||||||
|
homepage = "https://github.com/digitalcraftsman/hugo-material-docs"
|
||||||
|
tags = ["material", "documentation", "docs", "google analytics", "responsive"]
|
||||||
|
features = ["", ""]
|
||||||
|
min_version = 0.15
|
||||||
|
|
||||||
|
[author]
|
||||||
|
name = "Digitalcraftsman"
|
||||||
|
homepage = "https://github.com/digitalcraftsman"
|
||||||
|
|
||||||
|
# If porting an existing theme
|
||||||
|
[original]
|
||||||
|
name = "Martin Donath"
|
||||||
|
homepage = "http://struct.cc/"
|
||||||
|
repo = "https://github.com/squidfunk/mkdocs-material"
|
22
README-zh.md
@ -67,7 +67,7 @@ LaraDock努力简化创建开发环境过程。
|
|||||||
|
|
||||||
1. 将LaraDock放到你的Laravel项目中:
|
1. 将LaraDock放到你的Laravel项目中:
|
||||||
<br>
|
<br>
|
||||||
`git clone https://github.com/LaraDock/laradock.git`.
|
`git clone https://github.com/laradock/laradock.git`.
|
||||||
2. 进入LaraDock目录,然后运行这些容器。
|
2. 进入LaraDock目录,然后运行这些容器。
|
||||||
<br>
|
<br>
|
||||||
`docker-compose up -d nginx mysql redis`
|
`docker-compose up -d nginx mysql redis`
|
||||||
@ -153,7 +153,7 @@ Homestead 是一个工具,为你控制虚拟机(使用Homestead特殊命令)。V
|
|||||||
## 演示视频
|
## 演示视频
|
||||||
还有什么比**演示视频**好:
|
还有什么比**演示视频**好:
|
||||||
|
|
||||||
- LaraDock v4.0 (即将到来的...)
|
- LaraDock [v4.0](https://www.youtube.com/watch?v=TQii1jDa96Y)
|
||||||
- LaraDock [v2.2](https://www.youtube.com/watch?v=-DamFMczwDA)
|
- LaraDock [v2.2](https://www.youtube.com/watch?v=-DamFMczwDA)
|
||||||
- LaraDock [v0.3](https://www.youtube.com/watch?v=jGkyO6Is_aI)
|
- LaraDock [v0.3](https://www.youtube.com/watch?v=jGkyO6Is_aI)
|
||||||
- LaraDock [v0.1](https://www.youtube.com/watch?v=3YQsHe6oF80)
|
- LaraDock [v0.1](https://www.youtube.com/watch?v=3YQsHe6oF80)
|
||||||
@ -177,7 +177,7 @@ Homestead 是一个工具,为你控制虚拟机(使用Homestead特殊命令)。V
|
|||||||
**A)** 如果你已经有一个Laravel项目,克隆这个仓库在到`Laravel`根目录
|
**A)** 如果你已经有一个Laravel项目,克隆这个仓库在到`Laravel`根目录
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git submodule add https://github.com/LaraDock/laradock.git
|
git submodule add https://github.com/laradock/laradock.git
|
||||||
```
|
```
|
||||||
>如果你不是使用Git管理Laravel项目,您可以使用 `git clone` 而不是`git submodule`。
|
>如果你不是使用Git管理Laravel项目,您可以使用 `git clone` 而不是`git submodule`。
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ git submodule add https://github.com/LaraDock/laradock.git
|
|||||||
**B)** 如果你没有一个Laravel项目,你想Docker安装Laravel,克隆这个源在您的机器任何地方上:
|
**B)** 如果你没有一个Laravel项目,你想Docker安装Laravel,克隆这个源在您的机器任何地方上:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/LaraDock/laradock.git
|
git clone https://github.com/laradock/laradock.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -196,8 +196,8 @@ git clone https://github.com/LaraDock/laradock.git
|
|||||||
|
|
||||||
**请在开始之前阅读:**
|
**请在开始之前阅读:**
|
||||||
如果你正在使用**Docker Toolbox** (VM),选择以下任何一个方法:
|
如果你正在使用**Docker Toolbox** (VM),选择以下任何一个方法:
|
||||||
- 更新到Docker [Native](https://www.docker.com/products/docker) Mac/Windows版本 (建议). 查看 [Upgrading Laradock](#upgrading-laradock)
|
- 更新到Docker [Native](https://www.docker.com/products/docker) Mac/Windows版本 (建议). 查看 [Upgrading LaraDock](#upgrading-laradock)
|
||||||
- 使用 LaraDock v3.* (访问 `LaraDock-ToolBox` [分支](https://github.com/LaraDock/laradock/tree/LaraDock-ToolBox)).
|
- 使用 LaraDock v3.* (访问 `LaraDock-ToolBox` [分支](https://github.com/laradock/laradock/tree/LaraDock-ToolBox)).
|
||||||
如果您使用的是**Docker Native**(Mac / Windows版本)甚至是Linux版本,通常可以继续阅读这个文档,LaraDock v4以上版本将仅支持**Docker Native**。
|
如果您使用的是**Docker Native**(Mac / Windows版本)甚至是Linux版本,通常可以继续阅读这个文档,LaraDock v4以上版本将仅支持**Docker Native**。
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@ -469,7 +469,7 @@ composer create-project laravel/laravel my-cool-app "5.2.*"
|
|||||||
系统默认LaraDock假定Laravel应用在LaraDock的父级目录中
|
系统默认LaraDock假定Laravel应用在LaraDock的父级目录中
|
||||||
By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder.
|
By default LaraDock assumes the Laravel application is living in the parent directory of the laradock folder.
|
||||||
|
|
||||||
自新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下:
|
更新Laravel应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
application:
|
application:
|
||||||
@ -720,7 +720,7 @@ docker-compose build php
|
|||||||
#### B) 切换版本 PHP `7.0` 或 `5.6` 到 PHP `5.5`
|
#### B) 切换版本 PHP `7.0` 或 `5.6` 到 PHP `5.5`
|
||||||
我们已不在本地支持PHP5.5,但是你按照以下步骤获取:
|
我们已不在本地支持PHP5.5,但是你按照以下步骤获取:
|
||||||
|
|
||||||
1 - 克隆 `https://github.com/LaraDock/php-fpm`.
|
1 - 克隆 `https://github.com/laradock/php-fpm`.
|
||||||
|
|
||||||
3 - 重命名 `Dockerfile-56` 为 `Dockerfile-55`.
|
3 - 重命名 `Dockerfile-56` 为 `Dockerfile-55`.
|
||||||
|
|
||||||
@ -938,7 +938,7 @@ sudo chmod -R 777 storage bootstrap/cache
|
|||||||
## 贡献
|
## 贡献
|
||||||
这个小项目是由一个有一个全职工作和很多的职责的人建立的,所以如果你喜欢这个项目,并且发现它需要一个bug修复或支持或新软件或升级任何容器,或其他任何. . 你是非常欢迎,欢迎毫不不犹豫地贡献吧:)
|
这个小项目是由一个有一个全职工作和很多的职责的人建立的,所以如果你喜欢这个项目,并且发现它需要一个bug修复或支持或新软件或升级任何容器,或其他任何. . 你是非常欢迎,欢迎毫不不犹豫地贡献吧:)
|
||||||
|
|
||||||
#### 阅读我们的 [贡献说明](https://github.com/LaraDock/laradock/blob/master/CONTRIBUTING.md)
|
#### 阅读我们的 [贡献说明](https://github.com/laradock/laradock/blob/master/CONTRIBUTING.md)
|
||||||
|
|
||||||
<a name="Help"></a>
|
<a name="Help"></a>
|
||||||
## 帮助 & 问题
|
## 帮助 & 问题
|
||||||
@ -957,8 +957,8 @@ Docker或Laravel的特别帮助,你可以在[Codementor.io](https://www.codeme
|
|||||||
|
|
||||||
**优秀的人:**
|
**优秀的人:**
|
||||||
|
|
||||||
- [Contributors](https://github.com/LaraDock/laradock/graphs/contributors)
|
- [Contributors](https://github.com/laradock/laradock/graphs/contributors)
|
||||||
- [Supporters](https://github.com/LaraDock/laradock/issues?utf8=%E2%9C%93&q=)
|
- [Supporters](https://github.com/laradock/laradock/issues?utf8=%E2%9C%93&q=)
|
||||||
|
|
||||||
|
|
||||||
## 许可证
|
## 许可证
|
||||||
|
9
adminer/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM adminer:latest
|
||||||
|
|
||||||
|
MAINTAINER Patrick Artounian <partounian@gmail.com>
|
||||||
|
|
||||||
|
# Add volume for sessions to allow session persistence
|
||||||
|
VOLUME /sessions
|
||||||
|
|
||||||
|
# We expose Adminer on port 8080 (Adminer's default)
|
||||||
|
EXPOSE 8080
|
@ -6,11 +6,13 @@ ARG PHP_SOCKET=php-fpm:9000
|
|||||||
|
|
||||||
ENV WEB_PHP_SOCKET=$PHP_SOCKET
|
ENV WEB_PHP_SOCKET=$PHP_SOCKET
|
||||||
|
|
||||||
ENV WEB_DOCUMENT_ROOT=/var/www/public
|
ENV WEB_DOCUMENT_ROOT=/var/www/
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
WORKDIR /var/www/public
|
WORKDIR /var/www/
|
||||||
|
|
||||||
|
ADD vhost.conf /etc/apache2/sites-enabled/vhost.conf
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
|
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
|
||||||
|
|
||||||
|
3
apache2/sites/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*.conf
|
||||||
|
!default.conf
|
||||||
|
!default.apache.conf
|
16
apache2/sites/default.apache.conf
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName laradock.dev
|
||||||
|
DocumentRoot /var/www/html/
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
|
||||||
|
<Directory "/var/www/html/">
|
||||||
|
AllowOverride All
|
||||||
|
<IfVersion < 2.4>
|
||||||
|
Allow from all
|
||||||
|
</IfVersion>
|
||||||
|
<IfVersion >= 2.4>
|
||||||
|
Require all granted
|
||||||
|
</IfVersion>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
</VirtualHost>
|
16
apache2/sites/sample.conf.example
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName sample.dev
|
||||||
|
DocumentRoot /var/www/sample/public/
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
|
||||||
|
<Directory "/var/www/sample/public/">
|
||||||
|
AllowOverride All
|
||||||
|
<IfVersion < 2.4>
|
||||||
|
Allow from all
|
||||||
|
</IfVersion>
|
||||||
|
<IfVersion >= 2.4>
|
||||||
|
Require all granted
|
||||||
|
</IfVersion>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
</VirtualHost>
|
1
apache2/vhost.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
Include /etc/apache2/sites-available/*.conf
|
@ -4,6 +4,10 @@ root /var/www/public
|
|||||||
fastcgi / php-fpm:9000 php {
|
fastcgi / php-fpm:9000 php {
|
||||||
index index.php
|
index index.php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# To handle .html extensions with laravel change ext to
|
||||||
|
# ext / .html
|
||||||
|
|
||||||
rewrite {
|
rewrite {
|
||||||
r .*
|
r .*
|
||||||
ext /
|
ext /
|
||||||
@ -16,3 +20,9 @@ errors /var/log/caddy/error.log
|
|||||||
# Uncomment to enable TLS (HTTPS)
|
# Uncomment to enable TLS (HTTPS)
|
||||||
# Change the first list to listen on port 443 when enabling TLS
|
# Change the first list to listen on port 443 when enabling TLS
|
||||||
#tls self_signed
|
#tls self_signed
|
||||||
|
|
||||||
|
# To use Lets encrpt tls with a DNS provider uncomment these
|
||||||
|
# lines and change the provider as required
|
||||||
|
#tls {
|
||||||
|
# dns cloudflare
|
||||||
|
#}
|
||||||
|
@ -2,7 +2,7 @@ FROM alpine:3.4
|
|||||||
|
|
||||||
MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
|
MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
|
||||||
|
|
||||||
ENV caddy_version=0.9.3
|
ENV caddy_version=0.9.5
|
||||||
|
|
||||||
LABEL caddy_version="$caddy_version" architecture="amd64"
|
LABEL caddy_version="$caddy_version" architecture="amd64"
|
||||||
|
|
||||||
@ -12,13 +12,13 @@ RUN apk update \
|
|||||||
|
|
||||||
RUN curl --silent --show-error --fail --location \
|
RUN curl --silent --show-error --fail --location \
|
||||||
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
|
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
|
||||||
"https://github.com/mholt/caddy/releases/download/v$caddy_version/caddy_linux_amd64.tar.gz" \
|
"https://caddyserver.com/download/build?os=linux&arch=amd64&features=cloudflare%2Cdigitalocean%2Cdnsimple%2Cdyn%2Cgooglecloud%2Clinode%2Croute53" \
|
||||||
| tar --no-same-owner -C /usr/bin/ -xz caddy_linux_amd64 \
|
| tar --no-same-owner -C /usr/bin/ -xz caddy \
|
||||||
&& mv /usr/bin/caddy_linux_amd64 /usr/bin/caddy \
|
&& mv /usr/bin/caddy /usr/bin/caddy \
|
||||||
&& chmod 0755 /usr/bin/caddy
|
&& chmod 0755 /usr/bin/caddy
|
||||||
|
|
||||||
EXPOSE 80 443 2015
|
EXPOSE 80 443 2015
|
||||||
|
|
||||||
WORKDIR /var/www/public
|
WORKDIR /var/www/public
|
||||||
|
|
||||||
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]
|
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]
|
10
certbot/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM phusion/baseimage:latest
|
||||||
|
|
||||||
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
|
COPY run-certbot.sh /root/certbot/run-certbot.sh
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y letsencrypt
|
||||||
|
|
||||||
|
ENTRYPOINT bash -c "bash /root/certbot/run-certbot.sh && sleep infinity"
|
0
certbot/letsencrypt/.gitkeep
Normal file
0
certbot/letsencrypt/.well-known/.gitkeep
Normal file
6
certbot/run-certbot.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
letsencrypt certonly --webroot -w /var/www/letsencrypt -d "$CN" --agree-tos --email "$EMAIL" --non-interactive --text
|
||||||
|
|
||||||
|
cp /etc/letsencrypt/archive/"$CN"/cert1.pem /var/certs/cert1.pem
|
||||||
|
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/privkey1.pem
|
@ -5,340 +5,553 @@ services:
|
|||||||
### Applications Code Container #############################
|
### Applications Code Container #############################
|
||||||
|
|
||||||
applications:
|
applications:
|
||||||
image: tianon/true
|
image: tianon/true
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/var/www
|
- ${APPLICATION}:/var/www
|
||||||
# - ../sample/:/var/www/sample
|
|
||||||
|
|
||||||
### Workspace Utilities Container ###########################
|
### Workspace Utilities Container ###########################
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
build:
|
build:
|
||||||
context: ./workspace
|
context: ./workspace
|
||||||
args:
|
args:
|
||||||
- INSTALL_XDEBUG=false
|
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
|
||||||
- INSTALL_MONGO=false
|
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
|
||||||
- INSTALL_NODE=false
|
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
|
||||||
- INSTALL_YARN=false
|
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
|
||||||
- INSTALL_DRUSH=false
|
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
|
||||||
- INSTALL_AEROSPIKE_EXTENSION=false
|
- INSTALL_DRUSH=${WORKSPACE_INSTALL_DRUSH}
|
||||||
- INSTALL_V8JS_EXTENSION=false
|
- INSTALL_AEROSPIKE_EXTENSION=${WORKSPACE_INSTALL_AEROSPIKE_EXTENSION}
|
||||||
- COMPOSER_GLOBAL_INSTALL=false
|
- INSTALL_V8JS_EXTENSION=${WORKSPACE_INSTALL_INSTALL_V8JS_EXTENSION}
|
||||||
- INSTALL_WORKSPACE_SSH=false
|
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
||||||
- PUID=1000
|
- INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
|
||||||
- PGID=1000
|
- INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
|
||||||
- NODE_VERSION=stable
|
- INSTALL_DEPLOYER=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
|
||||||
- YARN_VERSION=latest
|
- INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
|
||||||
- TZ=UTC
|
- INSTALL_MC=${WORKSPACE_INSTALL_MC}
|
||||||
volumes_from:
|
- PUID=${WORKSPACE_PUID}
|
||||||
- applications
|
- PGID=${WORKSPACE_PGID}
|
||||||
extra_hosts:
|
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
||||||
# IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
|
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
||||||
- "dockerhost:10.0.75.1"
|
- TZ=${WORKSPACE_TIMEZONE}
|
||||||
ports:
|
volumes_from:
|
||||||
- "2222:22"
|
- applications
|
||||||
tty: true
|
extra_hosts:
|
||||||
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
|
ports:
|
||||||
|
- "${WORKSPACE_SSH_PORT}:22"
|
||||||
|
tty: true
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### PHP-FPM Container #######################################
|
### PHP-FPM Container #######################################
|
||||||
|
|
||||||
php-fpm:
|
php-fpm:
|
||||||
build:
|
build:
|
||||||
context: ./php-fpm
|
context: ./php-fpm
|
||||||
args:
|
args:
|
||||||
- INSTALL_XDEBUG=false
|
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
|
||||||
- INSTALL_SOAP=false
|
- INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP}
|
||||||
- INSTALL_MONGO=false
|
- INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
|
||||||
- INSTALL_ZIP_ARCHIVE=false
|
- INSTALL_ZIP_ARCHIVE=${PHP_FPM_INSTALL_ZIP_ARCHIVE}
|
||||||
- INSTALL_MEMCACHED=false
|
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
||||||
- INSTALL_OPCACHE=false
|
- INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS}
|
||||||
- INSTALL_AEROSPIKE_EXTENSION=false
|
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
|
||||||
- CODEIGNITER=false
|
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
|
||||||
dockerfile: Dockerfile-70
|
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
|
||||||
volumes_from:
|
- INSTALL_AEROSPIKE_EXTENSION=${PHP_FPM_INSTALL_AEROSPIKE_EXTENSION}
|
||||||
- applications
|
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
||||||
expose:
|
- INSTALL_TOKENIZER=${PHP_FPM_INSTALL_TOKENIZER}
|
||||||
- "9000"
|
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
|
||||||
links:
|
dockerfile: ${PHP_FPM_DOCKER_FILE}
|
||||||
- workspace
|
volumes_from:
|
||||||
extra_hosts:
|
- applications
|
||||||
# IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
|
expose:
|
||||||
- "dockerhost:10.0.75.1"
|
- "9000"
|
||||||
environment:
|
depends_on:
|
||||||
# IMPORTANT: Set the Remote Interpreter entry matching name to `laravel`
|
- workspace
|
||||||
- PHP_IDE_CONFIG=serverName=laravel
|
extra_hosts:
|
||||||
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
|
environment:
|
||||||
|
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### PHP Worker Container #####################################
|
||||||
|
php-worker:
|
||||||
|
build:
|
||||||
|
context: ./php-worker
|
||||||
|
volumes_from:
|
||||||
|
- applications
|
||||||
|
depends_on:
|
||||||
|
- workspace
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Nginx Server Container ##################################
|
### Nginx Server Container ##################################
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
build:
|
build:
|
||||||
context: ./nginx
|
context: ./nginx
|
||||||
args:
|
args:
|
||||||
- PHP_UPSTREAM=php-fpm
|
- PHP_UPSTREAM=php-fpm
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs/nginx/:/var/log/nginx
|
- ${NGINX_HOST_LOG_PATH}:/var/log/nginx
|
||||||
- ./nginx/sites/:/etc/nginx/sites-available
|
- ${NGINX_SITES_PATH}:/etc/nginx/sites-available
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "${NGINX_HOST_HTTP_PORT}:80"
|
||||||
- "443:443"
|
- "${NGINX_HOST_HTTPS_PORT}:443"
|
||||||
links:
|
depends_on:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### Apache Server Container #################################
|
### Apache Server Container #################################
|
||||||
|
|
||||||
apache2:
|
apache2:
|
||||||
build:
|
build:
|
||||||
context: ./apache2
|
context: ./apache2
|
||||||
args:
|
args:
|
||||||
- PHP_SOCKET=php-fpm:9000
|
- PHP_SOCKET=${PHP_SOCKET}
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs/apache2:/var/log/apache2
|
- ${APACHE_HOST_LOG_PATH}:/var/log/apache2
|
||||||
ports:
|
- ./apache2/sites:/etc/apache2/sites-available
|
||||||
- "80:80"
|
ports:
|
||||||
- "443:443"
|
- "${APACHE_HOST_HTTP_PORT}:80"
|
||||||
links:
|
- "${APACHE_HOST_HTTPS_PORT}:443"
|
||||||
- php-fpm
|
depends_on:
|
||||||
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### HHVM Container ##########################################
|
### HHVM Container ##########################################
|
||||||
|
|
||||||
hhvm:
|
hhvm:
|
||||||
build: ./hhvm
|
build: ./hhvm
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
expose:
|
expose:
|
||||||
- "9000"
|
- "9000"
|
||||||
links:
|
depends_on:
|
||||||
- workspace
|
- workspace
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### Minio Container #########################################
|
||||||
|
|
||||||
|
minio:
|
||||||
|
build: ./minio
|
||||||
|
volumes:
|
||||||
|
- minio:/export
|
||||||
|
ports:
|
||||||
|
- "${MINIO_PORT}:9000"
|
||||||
|
environment:
|
||||||
|
- MINIO_ACCESS_KEY=access
|
||||||
|
- MINIO_SECRET_KEY=secretkey
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
### MySQL Container #########################################
|
### MySQL Container #########################################
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
build:
|
build:
|
||||||
context: ./mysql
|
context: ./mysql
|
||||||
args:
|
args:
|
||||||
- MYSQL_DATABASE=homestead
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
- MYSQL_USER=homestead
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
- MYSQL_PASSWORD=secret
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||||
- MYSQL_ROOT_PASSWORD=root
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- mysql:/var/lib/mysql
|
- mysql:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "${MYSQL_PORT}:3306"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### MSSQL Container #########################################
|
||||||
|
|
||||||
|
mssql:
|
||||||
|
build:
|
||||||
|
context: ./mssql
|
||||||
|
environment:
|
||||||
|
- MSSQL_DATABASE=${MSSQL_DATABASE}
|
||||||
|
- SA_PASSWORD=${MSSQL_PASSWORD}
|
||||||
|
- ACCEPT_EULA=Y
|
||||||
|
volumes:
|
||||||
|
- mssql:/var/opt/mssql
|
||||||
|
ports:
|
||||||
|
- "${MSSQL_PORT}:1433"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### MariaDB Container #######################################
|
### MariaDB Container #######################################
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
build: ./mariadb
|
build: ./mariadb
|
||||||
volumes:
|
volumes:
|
||||||
- mysql:/var/lib/mysql
|
- mariadb:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "${MARIADB_PORT}:3306"
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: homestead
|
- MYSQL_DATABASE=${MARIADB_DATABASE}
|
||||||
MYSQL_USER: homestead
|
- MYSQL_USER=${MARIADB_USER}
|
||||||
MYSQL_PASSWORD: secret
|
- MYSQL_PASSWORD=${MARIADB_PASSWORD}
|
||||||
MYSQL_ROOT_PASSWORD: root
|
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### PostgreSQL Container ####################################
|
### PostgreSQL Container ####################################
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
build: ./postgres
|
build: ./postgres
|
||||||
volumes:
|
volumes:
|
||||||
- postgres:/var/lib/postgresql/data
|
- postgres:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "${POSTGRES_PORT}:5432"
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: homestead
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
POSTGRES_USER: homestead
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
POSTGRES_PASSWORD: secret
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### PostgreSQL PostGis Container ############################
|
### PostgreSQL PostGis Container ############################
|
||||||
|
|
||||||
postgres-postgis:
|
postgres-postgis:
|
||||||
build: ./postgres-postgis
|
build: ./postgres-postgis
|
||||||
volumes:
|
volumes:
|
||||||
- postgres:/var/lib/postgresql/data
|
- postgres:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "${POSTGRES_PORT}:5432"
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: homestead
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
POSTGRES_USER: homestead
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
POSTGRES_PASSWORD: secret
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Neo4j Container #########################################
|
### Neo4j Container #########################################
|
||||||
|
|
||||||
neo4j:
|
neo4j:
|
||||||
build: ./neo4j
|
build: ./neo4j
|
||||||
ports:
|
ports:
|
||||||
- "7474:7474"
|
- "7474:7474"
|
||||||
- "1337:1337"
|
- "1337:1337"
|
||||||
environment:
|
environment:
|
||||||
- NEO4J_AUTH=homestead:secret
|
- NEO4J_AUTH=default:secret
|
||||||
volumes:
|
volumes:
|
||||||
- neo4j:/var/lib/neo4j/data
|
- neo4j:/var/lib/neo4j/data
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### MongoDB Container #######################################
|
### MongoDB Container #######################################
|
||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
build: ./mongo
|
build: ./mongo
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- mongo:/data/db
|
- mongo:/data/db
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### RethinkDB Container #######################################
|
||||||
|
|
||||||
|
rethinkdb:
|
||||||
|
build: ./rethinkdb
|
||||||
|
ports:
|
||||||
|
- "8090:8080"
|
||||||
|
volumes:
|
||||||
|
- rethinkdb:/data/rethinkdb_data
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Redis Container #########################################
|
### Redis Container #########################################
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
build: ./redis
|
build: ./redis
|
||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- redis:/data
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Aerospike c Container ###################################
|
### Aerospike c Container ###################################
|
||||||
|
|
||||||
aerospike:
|
aerospike:
|
||||||
build: ./aerospike
|
build: ./aerospike
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- workspace
|
- workspace
|
||||||
volumes:
|
volumes:
|
||||||
- aerospike:/opt/aerospike/data
|
- aerospike:/opt/aerospike/data
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
- "3001:3001"
|
- "3001:3001"
|
||||||
- "3002:3002"
|
- "3002:3002"
|
||||||
- "3003:3003"
|
- "3003:3003"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Memcached Container #####################################
|
### Memcached Container #####################################
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
build: ./memcached
|
build: ./memcached
|
||||||
volumes:
|
volumes:
|
||||||
- memcached:/var/lib/memcached
|
- memcached:/var/lib/memcached
|
||||||
ports:
|
ports:
|
||||||
- "11211:11211"
|
- "${MEMCACHED_HOST_PORT}:11211"
|
||||||
links:
|
depends_on:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Beanstalkd Container ####################################
|
### Beanstalkd Container ####################################
|
||||||
|
|
||||||
beanstalkd:
|
beanstalkd:
|
||||||
build: ./beanstalkd
|
build: ./beanstalkd
|
||||||
ports:
|
ports:
|
||||||
- "11300:11300"
|
- "${BEANSTALKD_HOST_PORT}:11300"
|
||||||
privileged: true
|
privileged: true
|
||||||
links:
|
depends_on:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### RabbitMQ Container ######################################
|
### RabbitMQ Container ######################################
|
||||||
|
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
build: ./rabbitmq
|
build: ./rabbitmq
|
||||||
ports:
|
ports:
|
||||||
- "5672:5672"
|
- "${RABBITMQ_NODE_HOST_PORT}:5672"
|
||||||
- "15671:15671"
|
- "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672"
|
||||||
- "8080:15672"
|
- "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671"
|
||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
RABBITMQ_DEFAULT_USER: guest
|
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
|
||||||
RABBITMQ_DEFAULT_PASS: guest
|
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
|
||||||
links:
|
depends_on:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Beanstalkd Console Container ############################
|
### Beanstalkd Console Container ############################
|
||||||
|
|
||||||
beanstalkd-console:
|
beanstalkd-console:
|
||||||
build: ./beanstalkd-console
|
build: ./beanstalkd-console
|
||||||
ports:
|
ports:
|
||||||
- "2080:2080"
|
- "2080:2080"
|
||||||
links:
|
depends_on:
|
||||||
- beanstalkd
|
- beanstalkd
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Caddy Server Container ##################################
|
### Caddy Server Container ##################################
|
||||||
|
|
||||||
caddy:
|
caddy:
|
||||||
build: ./caddy
|
build: ./caddy
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "2015:2015"
|
- "2015:2015"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
volumes:
|
volumes:
|
||||||
- ./caddy/Caddyfile:/etc/Caddyfile
|
- ./caddy/Caddyfile:/etc/Caddyfile
|
||||||
- ./logs/caddy:/var/log/caddy
|
- ./logs/caddy:/var/log/caddy
|
||||||
links:
|
- caddy:/root/.caddy
|
||||||
- php-fpm
|
depends_on:
|
||||||
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### phpMyAdmin Container ####################################
|
### phpMyAdmin Container ####################################
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
build: ./phpmyadmin
|
build: ./phpmyadmin
|
||||||
environment:
|
environment:
|
||||||
PMA_ARBITRARY: 1
|
- PMA_ARBITRARY=1
|
||||||
MYSQL_USER: homestead
|
- MYSQL_USER=${PMA_USER}
|
||||||
MYSQL_PASSWORD: secret
|
- MYSQL_PASSWORD=${PMA_PASSWORD}
|
||||||
MYSQL_ROOT_PASSWORD: root
|
- MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "${PMA_PORT}:80"
|
||||||
links:
|
depends_on:
|
||||||
# for mysql container
|
- "${PMA_DB_ENGINE}"
|
||||||
- "mysql:db"
|
networks:
|
||||||
# for mariadb container
|
- frontend
|
||||||
# - "mariadb:db"
|
|
||||||
|
### Adminer Container ####################################
|
||||||
|
|
||||||
|
adminer:
|
||||||
|
build: ./adminer
|
||||||
|
ports:
|
||||||
|
- "${ADM_PORT}:8080"
|
||||||
|
depends_on:
|
||||||
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
### pgAdmin Container #######################################
|
### pgAdmin Container #######################################
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
build: ./pgadmin
|
build: ./pgadmin
|
||||||
ports:
|
ports:
|
||||||
- "5050:5050"
|
- "5050:5050"
|
||||||
links:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
### ElasticSearch Container #################################
|
### ElasticSearch Container #################################
|
||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
build: ./elasticsearch
|
build: ./elasticsearch
|
||||||
volumes:
|
volumes:
|
||||||
- elasticsearch-data:/usr/share/elasticsearch/data
|
- elasticsearch-data:/usr/share/elasticsearch/data
|
||||||
- elasticsearch-pkugins:/usr/share/elasticsearch/data
|
- elasticsearch-plugins:/usr/share/elasticsearch/plugins
|
||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "${ELASTICSEARCH_HOST_HTTP_PORT}:9200"
|
||||||
- "9300:9300"
|
- "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300"
|
||||||
links:
|
depends_on:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
### Volumes Setup ###########################################
|
### Certbot Container ##################################
|
||||||
|
|
||||||
|
certbot:
|
||||||
|
build:
|
||||||
|
context: ./certbot
|
||||||
|
volumes:
|
||||||
|
- ./data/certbot/certs/:/var/certs
|
||||||
|
- ./certbot/letsencrypt/:/var/www/letsencrypt
|
||||||
|
environment:
|
||||||
|
- CN="fake.domain.com"
|
||||||
|
- EMAIL="fake.email@gmail.com"
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
### Mailhog Container #########################################
|
||||||
|
|
||||||
|
mailhog:
|
||||||
|
build: ./mailhog
|
||||||
|
ports:
|
||||||
|
- "1025:1025"
|
||||||
|
- "8025:8025"
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
### Selenium Container ########################################
|
||||||
|
|
||||||
|
selenium:
|
||||||
|
build: ./selenium
|
||||||
|
ports:
|
||||||
|
- "${SELENIUM_PORT}:4444"
|
||||||
|
volumes:
|
||||||
|
- /dev/shm:/dev/shm
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
### Varnish Proxy 1 ##########################################
|
||||||
|
|
||||||
|
proxy:
|
||||||
|
build: ./varnish
|
||||||
|
expose:
|
||||||
|
- ${VARNISH_PORT}
|
||||||
|
environment:
|
||||||
|
- VARNISH_CONFIG=${VARNISH_CONFIG}
|
||||||
|
- CACHE_SIZE=${VARNISH_PROXY1_CACHE_SIZE}
|
||||||
|
- VARNISHD_PARAMS=${VARNISHD_PARAMS}
|
||||||
|
- VARNISH_PORT=${VARNISH_PORT}
|
||||||
|
- BACKEND_HOST=${VARNISH_PROXY1_BACKEND_HOST}
|
||||||
|
- BACKEND_PORT=${VARNISH_BACKEND_PORT}
|
||||||
|
- VARNISH_SERVER=${VARNISH_PROXY1_SERVER}
|
||||||
|
links:
|
||||||
|
- workspace
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
### Varnish Proxy 2 ##########################################
|
||||||
|
|
||||||
|
proxy2:
|
||||||
|
build: ./varnish
|
||||||
|
expose:
|
||||||
|
- ${VARNISH_PORT}
|
||||||
|
environment:
|
||||||
|
- VARNISH_CONFIG=${VARNISH_CONFIG}
|
||||||
|
- CACHE_SIZE=${VARNISH_PROXY2_CACHE_SIZE}
|
||||||
|
- VARNISHD_PARAMS=${VARNISHD_PARAMS}
|
||||||
|
- VARNISH_PORT=${VARNISH_PORT}
|
||||||
|
- BACKEND_HOST=${VARNISH_PROXY2_BACKEND_HOST}
|
||||||
|
- BACKEND_PORT=${VARNISH_BACKEND_PORT}
|
||||||
|
- VARNISH_SERVER=${VARNISH_PROXY2_SERVER}
|
||||||
|
links:
|
||||||
|
- workspace
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
### Balancer Haproxy ##########################################
|
||||||
|
|
||||||
|
balancer:
|
||||||
|
build: ./haproxy
|
||||||
|
ports:
|
||||||
|
- "${HAPROXY_HOST_HTTP_PORT}:8085"
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
links:
|
||||||
|
- proxy
|
||||||
|
- proxy2
|
||||||
|
|
||||||
|
### Networks Setup ############################################
|
||||||
|
|
||||||
|
networks:
|
||||||
|
frontend:
|
||||||
|
driver: "bridge"
|
||||||
|
backend:
|
||||||
|
driver: "bridge"
|
||||||
|
|
||||||
|
### Volumes Setup #############################################
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mysql:
|
mysql:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
postgres:
|
mssql:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
memcached:
|
postgres:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
redis:
|
memcached:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
neo4j:
|
redis:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
mariadb:
|
neo4j:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
mongo:
|
mariadb:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
phpmyadmin:
|
mongo:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
aerospike:
|
minio:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
caddy:
|
rethinkdb:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
elasticsearch-data:
|
phpmyadmin:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
elasticsearch-pkugins:
|
adminer:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
|
aerospike:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
|
caddy:
|
||||||
|
driver: "local"
|
||||||
|
elasticsearch-data:
|
||||||
|
driver: "local"
|
||||||
|
elasticsearch-plugins:
|
||||||
|
driver: "local"
|
||||||
|
0
docs/.gitkeep
Normal file
1
docs/CNAME
Normal file
@ -0,0 +1 @@
|
|||||||
|
laradock.io
|
642
docs/contributing/index.html
Normal file
@ -0,0 +1,642 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<html class="no-js">
|
||||||
|
|
||||||
|
<head lang="en-us">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
|
<title>Contributing - Laradock</title>
|
||||||
|
<meta name="generator" content="Hugo 0.18.1" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://laradock.io/contributing/">
|
||||||
|
|
||||||
|
<meta name="author" content="Mahmoud Zalt">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://laradock.io/contributing/">
|
||||||
|
<meta property="og:title" content="Laradock">
|
||||||
|
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Laradock">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
<link rel="icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Icon';
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot');
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot')
|
||||||
|
format('embedded-opentype'),
|
||||||
|
url('http://laradock.io/fonts/icon.woff')
|
||||||
|
format('woff'),
|
||||||
|
url('http://laradock.io/fonts/icon.ttf')
|
||||||
|
format('truetype'),
|
||||||
|
url('http://laradock.io/fonts/icon.svg')
|
||||||
|
format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/application.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/temporary.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/palettes.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/highlight/highlight.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Doctarine:400,700|Source+Code+Pro">
|
||||||
|
<style>
|
||||||
|
body, input {
|
||||||
|
font-family: 'Doctarine', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
pre, code {
|
||||||
|
font-family: 'Source Code Pro', 'Courier New', 'Courier', monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/modernizr.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="palette-primary-deep-purple palette-accent-purple">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
<nav aria-label="Header">
|
||||||
|
<div class="bar default">
|
||||||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||||||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
<b>Laradock</b> <span style="color: rgba(249, 245, 255, 0.63);"> / Contributing</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||||||
|
<a style="padding: 0px; font-size:40px" href="https://github.com/laradock/laradock" title="@laradock/laradock on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||||||
|
</div>
|
||||||
|
<p style="font-size: 18px; padding: 8px">Github</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="bar search">
|
||||||
|
<div class="button button-close" role="button" aria-label="Close">
|
||||||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="field">
|
||||||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||||||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
<nav aria-label="Navigation">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="toc">
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Introduction" href="http://laradock.io/introduction/">
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Getting Started" href="http://laradock.io/getting-started/">
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Documentation" href="http://laradock.io/documentation/">
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Related Projects" href="http://laradock.io/related-projects/">
|
||||||
|
|
||||||
|
Related Projects
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Help & Questions" href="http://laradock.io/help/">
|
||||||
|
|
||||||
|
Help & Questions
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="current" title="Contributing" href="http://laradock.io/contributing/">
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="scrollspy">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="License" href="http://laradock.io/license/">
|
||||||
|
|
||||||
|
License
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>Contributing </h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>Your contribution is more than welcome.</p>
|
||||||
|
|
||||||
|
<h2 id="i-have-a-question-problem">I have a Question/Problem</h2>
|
||||||
|
|
||||||
|
<p>If you have questions about how to use Laradock, please direct your questions to the discussion on <a href="https://gitter.im/Laradock/laradock">Gitter</a>. If you believe your question could help others, then consider opening an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as <code>Question</code>) And you can still seek help on Gitter for it.</p>
|
||||||
|
|
||||||
|
<h2 id="i-found-an-issue">I found an Issue</h2>
|
||||||
|
|
||||||
|
<p>If have an issue or you found a typo in the documentation, you can help us by
|
||||||
|
opnening an <a href="https://github.com/laradock/laradock/issues">Issue</a>.</p>
|
||||||
|
|
||||||
|
<p><strong>Steps to do before opening an Issue:</strong></p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li><p>Before you submit your issue search the archive, maybe your question was already answered couple hours ago (search in the closed Issues as well).</p></li>
|
||||||
|
|
||||||
|
<li><p>Decide if the Issue belongs to this project or to <a href="https://github.com/docker">Docker</a> itself! or even the tool you are using such as Nginx or MongoDB…</p></li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p>If your issue appears to be a bug, and hasn’t been reported, then open a new issue.</p>
|
||||||
|
|
||||||
|
<p><em>This Help us to maximize the effort we can spend fixing issues and adding new
|
||||||
|
features, by not reporting duplicate issues.</em></p>
|
||||||
|
|
||||||
|
<h2 id="i-want-a-feature">I want a Feature</h2>
|
||||||
|
|
||||||
|
<p>You can request a new feature by submitting an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as <code>Feature Suggestion</code>). If you would like to implement a new feature then consider submitting a Pull Request yourself.</p>
|
||||||
|
|
||||||
|
<h2 id="i-want-to-update-the-documentation-site">I want to update the Documentation (Site)</h2>
|
||||||
|
|
||||||
|
<p>Laradock uses <a href="https://gohugo.io/">Hugo</a> as website generator tool, with the <a href="http://themes.gohugo.io/theme/material-docs/">Material Docs theme</a>. You might need to check their docs quickly.</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
||||||
|
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
||||||
|
<li>Delete the <code>/docs</code> folder from the root.</li>
|
||||||
|
<li>When you finish editing, run the <code>hugo</code> command to generate the HTML docs (in the <code>/docs</code>).</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
||||||
|
|
||||||
|
<p>Go to <code>DOCUMENTATION/_settings</code> in your terminal and run <code>hugo serve</code> to host the website locally.</p>
|
||||||
|
|
||||||
|
<h3 id="edit-the-sidebar">Edit the sidebar</h3>
|
||||||
|
|
||||||
|
<p>To add a new section to the sidebar or edit existing one, you need to edit this file <code>DOCUMENTATION/_settings/config.toml</code>.</p>
|
||||||
|
|
||||||
|
<h2 id="how-to-support-new-software-add-new-container">How to support new Software (Add new Container)</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Create folder with the software name.</p></li>
|
||||||
|
|
||||||
|
<li><p>Add a <code>Dockerfile</code>, write your code there.</p></li>
|
||||||
|
|
||||||
|
<li><p>You may add additional files in the software folder.</p></li>
|
||||||
|
|
||||||
|
<li><p>Add the software to the <code>docker-compose.yml</code> file.</p></li>
|
||||||
|
|
||||||
|
<li><p>Make sure you follow our commenting style.</p></li>
|
||||||
|
|
||||||
|
<li><p>Add the software in the <code>Documentation</code>.</p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="edit-existing-software-edit-a-container">Edit existing Software (Edit a Container)</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Open the software (container) folder.</p></li>
|
||||||
|
|
||||||
|
<li><p>Edit the files you want to update.</p></li>
|
||||||
|
|
||||||
|
<li><p><strong>Note:</strong> If you want to edit the base image of the <code>Workspace</code> or the <code>php-fpm</code> Containers,
|
||||||
|
you need to edit their Docker-files from their GitHub repositories. For more info read their Dockerfiles comment on the Laradock repository.</p></li>
|
||||||
|
|
||||||
|
<li><p>Make sure to update the <code>Documentation</code> in case you made any changes.</p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="pull-request">Pull Request</h2>
|
||||||
|
|
||||||
|
<h3 id="1-before-submitting-a-pull-request-pr">1. Before Submitting a Pull Request (PR)</h3>
|
||||||
|
|
||||||
|
<p>Always Test everything and make sure its working:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Pull the latest updates (or fork of you don’t have permission)</li>
|
||||||
|
<li>Before editing anything:
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Test building the container (docker-compose build –no-cache container-name) build with no cache first.</li>
|
||||||
|
<li>Test running the container with some other containers in real app and see of everything is working fine.</li>
|
||||||
|
</ul></li>
|
||||||
|
<li>Now edit the container (edit section by section and test rebuilding the container after every edited section)
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Testing building the container (docker-compose build container-name) with no errors.</li>
|
||||||
|
<li>Test it in a real App if possible.</li>
|
||||||
|
</ul></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h3 id="2-submitting-a-pr">2. Submitting a PR</h3>
|
||||||
|
|
||||||
|
<p>Consider the following guidelines:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Search <a href="https://github.com/laradock/laradock/pulls">GitHub</a> for an open or closed Pull Request that relates to your submission. You don’t want to duplicate efforts.</p></li>
|
||||||
|
|
||||||
|
<li><p>Make your changes in a new git branch:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell"> git checkout -b my-fix-branch master
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Commit your changes using a descriptive commit message.</p></li>
|
||||||
|
|
||||||
|
<li><p>Push your branch to GitHub:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git push origin my-fix-branch
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>In GitHub, send a pull request to <code>laradock:master</code>.</p></li>
|
||||||
|
|
||||||
|
<li><p>If we suggest changes then:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Make the required updates.</li>
|
||||||
|
<li>Commit your changes to your branch (e.g. <code>my-fix-branch</code>).</li>
|
||||||
|
<li>Push the changes to your GitHub repository (this will update your Pull Request).</li>
|
||||||
|
</ul></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>If the PR gets too outdated we may ask you to rebase and force push to update the PR:</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git rebase master -i
|
||||||
|
git push origin my-fix-branch -f
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>WARNING. 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.</em></p>
|
||||||
|
|
||||||
|
<h3 id="3-after-your-pr-is-merged">3. After your PR is merged</h3>
|
||||||
|
|
||||||
|
<p>After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git push origin --delete my-fix-branch
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Check out the master branch:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git checkout master -f
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Delete the local branch:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git branch -D my-fix-branch
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Update your master with the latest upstream version:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git pull --ff upstream master
|
||||||
|
</code></pre></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
|
<h4 id="happy-coding">Happy Coding :)</h4>
|
||||||
|
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/help/" title="Help & Questions">
|
||||||
|
<span class="direction">
|
||||||
|
Previous
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="button button-previous" role="button" aria-label="Previous">
|
||||||
|
<i class="icon icon-back"></i>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Help & Questions
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/license/" title="License">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
License
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var base_url = '';
|
||||||
|
var repo_id = '';
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/application.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/* Add headers to scrollspy */
|
||||||
|
var headers = document.getElementsByTagName("h2");
|
||||||
|
var scrollspy = document.getElementById('scrollspy');
|
||||||
|
|
||||||
|
if(scrollspy) {
|
||||||
|
if(headers.length > 0) {
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.setAttribute("class", "anchor");
|
||||||
|
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", headers[i].innerHTML);
|
||||||
|
a.innerHTML = headers[i].innerHTML;
|
||||||
|
|
||||||
|
li.appendChild(a)
|
||||||
|
scrollspy.appendChild(li);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Add permanent link next to the headers */
|
||||||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||||||
|
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("class", "headerlink");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", "Permanent link")
|
||||||
|
a.innerHTML = "#";
|
||||||
|
headers[i].appendChild(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){
|
||||||
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
||||||
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
||||||
|
m.parentNode.insertBefore(a,m)
|
||||||
|
})(window, document,
|
||||||
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-37514928-9', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
var buttons = document.querySelectorAll('a');
|
||||||
|
Array.prototype.map.call(buttons, function(item) {
|
||||||
|
if (item.host != document.location.host) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
var action = item.getAttribute('data-action') || 'follow';
|
||||||
|
ga('send', 'event', 'outbound', action, item.href);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var query = document.querySelector('.query');
|
||||||
|
query.addEventListener('blur', function() {
|
||||||
|
if (this.value) {
|
||||||
|
var path = document.location.pathname;
|
||||||
|
ga('send', 'pageview', path + '?q=' + this.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||||||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
190
docs/contributing/index.xml
Normal file
@ -0,0 +1,190 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Contributings on Laradock</title>
|
||||||
|
<link>http://laradock.io/contributing/index.xml</link>
|
||||||
|
<description>Recent content in Contributings on Laradock</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://laradock.io/contributing/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Contributing</title>
|
||||||
|
<link>http://laradock.io/contributing/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://laradock.io/contributing/</guid>
|
||||||
|
<description>
|
||||||
|
|
||||||
|
<p>Your contribution is more than welcome.</p>
|
||||||
|
|
||||||
|
<h2 id="i-have-a-question-problem">I have a Question/Problem</h2>
|
||||||
|
|
||||||
|
<p>If you have questions about how to use Laradock, please direct your questions to the discussion on <a href="https://gitter.im/Laradock/laradock">Gitter</a>. If you believe your question could help others, then consider opening an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as <code>Question</code>) And you can still seek help on Gitter for it.</p>
|
||||||
|
|
||||||
|
<h2 id="i-found-an-issue">I found an Issue</h2>
|
||||||
|
|
||||||
|
<p>If have an issue or you found a typo in the documentation, you can help us by
|
||||||
|
opnening an <a href="https://github.com/laradock/laradock/issues">Issue</a>.</p>
|
||||||
|
|
||||||
|
<p><strong>Steps to do before opening an Issue:</strong></p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li><p>Before you submit your issue search the archive, maybe your question was already answered couple hours ago (search in the closed Issues as well).</p></li>
|
||||||
|
|
||||||
|
<li><p>Decide if the Issue belongs to this project or to <a href="https://github.com/docker">Docker</a> itself! or even the tool you are using such as Nginx or MongoDB&hellip;</p></li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<p>If your issue appears to be a bug, and hasn&rsquo;t been reported, then open a new issue.</p>
|
||||||
|
|
||||||
|
<p><em>This Help us to maximize the effort we can spend fixing issues and adding new
|
||||||
|
features, by not reporting duplicate issues.</em></p>
|
||||||
|
|
||||||
|
<h2 id="i-want-a-feature">I want a Feature</h2>
|
||||||
|
|
||||||
|
<p>You can request a new feature by submitting an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as <code>Feature Suggestion</code>). If you would like to implement a new feature then consider submitting a Pull Request yourself.</p>
|
||||||
|
|
||||||
|
<h2 id="i-want-to-update-the-documentation-site">I want to update the Documentation (Site)</h2>
|
||||||
|
|
||||||
|
<p>Laradock uses <a href="https://gohugo.io/">Hugo</a> as website generator tool, with the <a href="http://themes.gohugo.io/theme/material-docs/">Material Docs theme</a>. You might need to check their docs quickly.</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
||||||
|
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
||||||
|
<li>Delete the <code>/docs</code> folder from the root.</li>
|
||||||
|
<li>When you finish editing, run the <code>hugo</code> command to generate the HTML docs (in the <code>/docs</code>).</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
||||||
|
|
||||||
|
<p>Go to <code>DOCUMENTATION/_settings</code> in your terminal and run <code>hugo serve</code> to host the website locally.</p>
|
||||||
|
|
||||||
|
<h3 id="edit-the-sidebar">Edit the sidebar</h3>
|
||||||
|
|
||||||
|
<p>To add a new section to the sidebar or edit existing one, you need to edit this file <code>DOCUMENTATION/_settings/config.toml</code>.</p>
|
||||||
|
|
||||||
|
<h2 id="how-to-support-new-software-add-new-container">How to support new Software (Add new Container)</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Create folder with the software name.</p></li>
|
||||||
|
|
||||||
|
<li><p>Add a <code>Dockerfile</code>, write your code there.</p></li>
|
||||||
|
|
||||||
|
<li><p>You may add additional files in the software folder.</p></li>
|
||||||
|
|
||||||
|
<li><p>Add the software to the <code>docker-compose.yml</code> file.</p></li>
|
||||||
|
|
||||||
|
<li><p>Make sure you follow our commenting style.</p></li>
|
||||||
|
|
||||||
|
<li><p>Add the software in the <code>Documentation</code>.</p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="edit-existing-software-edit-a-container">Edit existing Software (Edit a Container)</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Open the software (container) folder.</p></li>
|
||||||
|
|
||||||
|
<li><p>Edit the files you want to update.</p></li>
|
||||||
|
|
||||||
|
<li><p><strong>Note:</strong> If you want to edit the base image of the <code>Workspace</code> or the <code>php-fpm</code> Containers,
|
||||||
|
you need to edit their Docker-files from their GitHub repositories. For more info read their Dockerfiles comment on the Laradock repository.</p></li>
|
||||||
|
|
||||||
|
<li><p>Make sure to update the <code>Documentation</code> in case you made any changes.</p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="pull-request">Pull Request</h2>
|
||||||
|
|
||||||
|
<h3 id="1-before-submitting-a-pull-request-pr">1. Before Submitting a Pull Request (PR)</h3>
|
||||||
|
|
||||||
|
<p>Always Test everything and make sure its working:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Pull the latest updates (or fork of you don’t have permission)</li>
|
||||||
|
<li>Before editing anything:
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Test building the container (docker-compose build &ndash;no-cache container-name) build with no cache first.</li>
|
||||||
|
<li>Test running the container with some other containers in real app and see of everything is working fine.</li>
|
||||||
|
</ul></li>
|
||||||
|
<li>Now edit the container (edit section by section and test rebuilding the container after every edited section)
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Testing building the container (docker-compose build container-name) with no errors.</li>
|
||||||
|
<li>Test it in a real App if possible.</li>
|
||||||
|
</ul></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h3 id="2-submitting-a-pr">2. Submitting a PR</h3>
|
||||||
|
|
||||||
|
<p>Consider the following guidelines:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Search <a href="https://github.com/laradock/laradock/pulls">GitHub</a> for an open or closed Pull Request that relates to your submission. You don&rsquo;t want to duplicate efforts.</p></li>
|
||||||
|
|
||||||
|
<li><p>Make your changes in a new git branch:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell"> git checkout -b my-fix-branch master
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Commit your changes using a descriptive commit message.</p></li>
|
||||||
|
|
||||||
|
<li><p>Push your branch to GitHub:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git push origin my-fix-branch
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>In GitHub, send a pull request to <code>laradock:master</code>.</p></li>
|
||||||
|
|
||||||
|
<li><p>If we suggest changes then:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Make the required updates.</li>
|
||||||
|
<li>Commit your changes to your branch (e.g. <code>my-fix-branch</code>).</li>
|
||||||
|
<li>Push the changes to your GitHub repository (this will update your Pull Request).</li>
|
||||||
|
</ul></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>If the PR gets too outdated we may ask you to rebase and force push to update the PR:</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git rebase master -i
|
||||||
|
git push origin my-fix-branch -f
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>WARNING. 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.</em></p>
|
||||||
|
|
||||||
|
<h3 id="3-after-your-pr-is-merged">3. After your PR is merged</h3>
|
||||||
|
|
||||||
|
<p>After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git push origin --delete my-fix-branch
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Check out the master branch:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git checkout master -f
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Delete the local branch:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git branch -D my-fix-branch
|
||||||
|
</code></pre></li>
|
||||||
|
|
||||||
|
<li><p>Update your master with the latest upstream version:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git pull --ff upstream master
|
||||||
|
</code></pre></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
|
<h4 id="happy-coding">Happy Coding :)</h4>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
1670
docs/documentation/index.html
Normal file
1218
docs/documentation/index.xml
Normal file
BIN
docs/fonts/icon.eot
Executable file
22
docs/fonts/icon.svg
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>Generated by IcoMoon</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="icon" horiz-adv-x="1024">
|
||||||
|
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||||
|
<missing-glyph horiz-adv-x="1024" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||||
|
<glyph unicode="" glyph-name="search" d="M661.333 341.334h-33.92l-11.733 11.733c41.813 48.427 66.987 111.36 66.987 180.267 0 153.173-124.16 277.333-277.333 277.333s-277.333-124.16-277.333-277.333 124.16-277.333 277.333-277.333c68.907 0 131.84 25.173 180.267 66.773l11.733-11.733v-33.707l213.333-212.907 63.573 63.573-212.907 213.333zM405.333 341.334c-106.027 0-192 85.973-192 192s85.973 192 192 192 192-85.973 192-192-85.973-192-192-192z" />
|
||||||
|
<glyph unicode="" glyph-name="arrow-back" d="M853.333 469.334h-519.253l238.293 238.293-60.373 60.373-341.333-341.333 341.333-341.333 60.373 60.373-238.293 238.293h519.253v85.333z" />
|
||||||
|
<glyph unicode="" glyph-name="chevron-right" d="M426.667 682.667l-60.373-60.373 195.627-195.627-195.627-195.627 60.373-60.373 256 256z" />
|
||||||
|
<glyph unicode="" glyph-name="close" d="M810.667 664.96l-60.373 60.373-238.293-238.293-238.293 238.293-60.373-60.373 238.293-238.293-238.293-238.293 60.373-60.373 238.293 238.293 238.293-238.293 60.373 60.373-238.293 238.293z" />
|
||||||
|
<glyph unicode="" glyph-name="menu" d="M128 170.667h768v85.333h-768v-85.333zM128 384h768v85.333h-768v-85.333zM128 682.667v-85.333h768v85.333h-768z" />
|
||||||
|
<glyph unicode="" glyph-name="arrow-forward" d="M512 768l-60.373-60.373 238.293-238.293h-519.253v-85.333h519.253l-238.293-238.293 60.373-60.373 341.333 341.333z" />
|
||||||
|
<glyph unicode="" glyph-name="twitter" d="M1024 744.249c-37.676-16.708-78.164-28.002-120.66-33.080 43.372 26 76.686 67.17 92.372 116.23-40.596-24.078-85.556-41.56-133.41-50.98-38.32 40.83-92.922 66.34-153.346 66.34-116.022 0-210.088-94.058-210.088-210.078 0-16.466 1.858-32.5 5.44-47.878-174.6 8.764-329.402 92.4-433.018 219.506-18.084-31.028-28.446-67.116-28.446-105.618 0-72.888 37.088-137.192 93.46-174.866-34.438 1.092-66.832 10.542-95.154 26.278-0.020-0.876-0.020-1.756-0.020-2.642 0-101.788 72.418-186.696 168.522-206-17.626-4.8-36.188-7.372-55.348-7.372-13.538 0-26.698 1.32-39.528 3.772 26.736-83.46 104.32-144.206 196.252-145.896-71.9-56.35-162.486-89.934-260.916-89.934-16.958 0-33.68 0.994-50.116 2.94 92.972-59.61 203.402-94.394 322.042-94.394 386.422 0 597.736 320.124 597.736 597.744 0 9.108-0.206 18.168-0.61 27.18 41.056 29.62 76.672 66.62 104.836 108.748z" />
|
||||||
|
<glyph unicode="" glyph-name="github" d="M512.008 926.025c-282.738 0-512.008-229.218-512.008-511.998 0-226.214 146.704-418.132 350.136-485.836 25.586-4.738 34.992 11.11 34.992 24.632 0 12.204-0.48 52.542-0.696 95.324-142.448-30.976-172.504 60.41-172.504 60.41-23.282 59.176-56.848 74.916-56.848 74.916-46.452 31.778 3.51 31.124 3.51 31.124 51.4-3.61 78.476-52.766 78.476-52.766 45.672-78.27 119.776-55.64 149.004-42.558 4.588 33.086 17.852 55.68 32.506 68.464-113.73 12.942-233.276 56.85-233.276 253.032 0 55.898 20.004 101.574 52.76 137.428-5.316 12.9-22.854 64.972 4.952 135.5 0 0 43.006 13.752 140.84-52.49 40.836 11.348 84.636 17.036 128.154 17.234 43.502-0.198 87.336-5.886 128.256-17.234 97.734 66.244 140.656 52.49 140.656 52.49 27.872-70.528 10.35-122.6 5.036-135.5 32.82-35.856 52.694-81.532 52.694-137.428 0-196.654-119.778-239.95-233.79-252.624 18.364-15.89 34.724-47.046 34.724-94.812 0-68.508-0.596-123.644-0.596-140.508 0-13.628 9.222-29.594 35.172-24.566 203.322 67.776 349.842 259.626 349.842 485.768 0 282.78-229.234 511.998-511.992 511.998z" />
|
||||||
|
<glyph unicode="" glyph-name="download" d="M810.667 554.667h-170.667v256h-256v-256h-170.667l298.667-298.667 298.667 298.667zM213.333 170.667v-85.333h597.333v85.333h-597.333z" />
|
||||||
|
<glyph unicode="" glyph-name="star" d="M512 201.814l263.68-159.147-69.973 299.947 232.96 201.813-306.773 26.027-119.893 282.88-119.893-282.88-306.773-26.027 232.96-201.813-69.973-299.947z" />
|
||||||
|
<glyph unicode="" glyph-name="warning" d="M554 340.667v172h-84v-172h84zM554 170.667v86h-84v-86h84zM42 42.667l470 810 470-810h-940z" />
|
||||||
|
<glyph unicode="" glyph-name="hint" d="M614 682.667h240v-426h-300l-16 84h-240v-298h-84v726h384z" />
|
||||||
|
</font></defs></svg>
|
After Width: | Height: | Size: 4.3 KiB |
BIN
docs/fonts/icon.ttf
Executable file
BIN
docs/fonts/icon.woff
Executable file
676
docs/getting-started/index.html
Normal file
@ -0,0 +1,676 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<html class="no-js">
|
||||||
|
|
||||||
|
<head lang="en-us">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
|
<title>Getting Started - Laradock</title>
|
||||||
|
<meta name="generator" content="Hugo 0.18.1" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://laradock.io/getting-started/">
|
||||||
|
|
||||||
|
<meta name="author" content="Mahmoud Zalt">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://laradock.io/getting-started/">
|
||||||
|
<meta property="og:title" content="Laradock">
|
||||||
|
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Laradock">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
<link rel="icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Icon';
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot');
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot')
|
||||||
|
format('embedded-opentype'),
|
||||||
|
url('http://laradock.io/fonts/icon.woff')
|
||||||
|
format('woff'),
|
||||||
|
url('http://laradock.io/fonts/icon.ttf')
|
||||||
|
format('truetype'),
|
||||||
|
url('http://laradock.io/fonts/icon.svg')
|
||||||
|
format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/application.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/temporary.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/palettes.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/highlight/highlight.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Doctarine:400,700|Source+Code+Pro">
|
||||||
|
<style>
|
||||||
|
body, input {
|
||||||
|
font-family: 'Doctarine', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
pre, code {
|
||||||
|
font-family: 'Source Code Pro', 'Courier New', 'Courier', monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/modernizr.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="palette-primary-deep-purple palette-accent-purple">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
<nav aria-label="Header">
|
||||||
|
<div class="bar default">
|
||||||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||||||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
<b>Laradock</b> <span style="color: rgba(249, 245, 255, 0.63);"> / Getting Started</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||||||
|
<a style="padding: 0px; font-size:40px" href="https://github.com/laradock/laradock" title="@laradock/laradock on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||||||
|
</div>
|
||||||
|
<p style="font-size: 18px; padding: 8px">Github</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="bar search">
|
||||||
|
<div class="button button-close" role="button" aria-label="Close">
|
||||||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="field">
|
||||||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||||||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
<nav aria-label="Navigation">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="toc">
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Introduction" href="http://laradock.io/introduction/">
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="current" title="Getting Started" href="http://laradock.io/getting-started/">
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="scrollspy">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Documentation" href="http://laradock.io/documentation/">
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Related Projects" href="http://laradock.io/related-projects/">
|
||||||
|
|
||||||
|
Related Projects
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Help & Questions" href="http://laradock.io/help/">
|
||||||
|
|
||||||
|
Help & Questions
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Contributing" href="http://laradock.io/contributing/">
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="License" href="http://laradock.io/license/">
|
||||||
|
|
||||||
|
License
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>Getting Started </h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="requirements">Requirements</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://git-scm.com/downloads">Git</a></li>
|
||||||
|
<li><a href="https://www.docker.com/products/docker/">Docker</a> <code>>= 1.12</code></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="installation">Installation</h2>
|
||||||
|
|
||||||
|
<p>Choose the setup the best suits your needs.</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="#A">A) Setup for Single Project</a>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="#A1">A.1) Already have a PHP project</a></li>
|
||||||
|
<li><a href="#A2">A.2) Don’t have a PHP project yet</a></li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#B">B) Setup for Multiple Projects</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><a name="A"></a></p>
|
||||||
|
|
||||||
|
<h3 id="a-setup-for-single-project">A) Setup for Single Project</h3>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>(Follow these steps if you want a separate Docker environment for each project)</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="A1"></a></p>
|
||||||
|
|
||||||
|
<h3 id="a-1-already-have-a-php-project">A.1) Already have a PHP project:</h3>
|
||||||
|
|
||||||
|
<p>1 - Clone laradock on your project root directory:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">git submodule add https://github.com/Laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><strong>Notes:</strong></p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
||||||
|
|
||||||
|
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="#keep-tracking-Laradock">Check this</a></p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>Your folder structure should look like this:</p>
|
||||||
|
|
||||||
|
<pre><code>+ project-a
|
||||||
|
+ laradock-a
|
||||||
|
+ project-b
|
||||||
|
+ laradock-b
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>(It’s important to rename the folders differently in each project.)</p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="A2"></a></p>
|
||||||
|
|
||||||
|
<h3 id="a-2-don-t-have-a-php-project-yet">A.2) Don’t have a PHP project yet:</h3>
|
||||||
|
|
||||||
|
<p>1 - Clone this repository anywhere on your machine:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">git clone https://github.com/laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Your folder structure should look like this:</p>
|
||||||
|
|
||||||
|
<pre><code>+ laradock
|
||||||
|
+ project-z
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Edit your web server sites configuration.</p>
|
||||||
|
|
||||||
|
<p><strong>In case of NGINX:</strong> open <code>nginx/sites/default.conf</code> and change the <code>root</code> from <code>/var/www/public</code> to <code>/var/www/{my-project-folder-name}/public</code>.</p>
|
||||||
|
|
||||||
|
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
||||||
|
|
||||||
|
<p><strong>In case of Apache:</strong> :P
|
||||||
|
<br></p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="B"></a></p>
|
||||||
|
|
||||||
|
<h3 id="b-setup-for-multiple-projects">B) Setup for Multiple Projects:</h3>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>(Follow these steps if you want a single Docker environment for all your project)</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p>1 - Clone this repository anywhere on your machine (similar to <a href="#A2">Steps A.2. from above</a>):</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">git clone https://github.com/laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Your folder structure should look like this:</p>
|
||||||
|
|
||||||
|
<pre><code>+ laradock
|
||||||
|
+ project-1
|
||||||
|
+ project-2
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Go to <code>nginx/sites</code> and create config files to point to different project directory when visiting different domains.</p>
|
||||||
|
|
||||||
|
<p>Laradock by default includes <code>project-1.conf</code> and <code>project-2.conf</code> as working samples.</p>
|
||||||
|
|
||||||
|
<p>3 - change the default names <code>project-n</code>:</p>
|
||||||
|
|
||||||
|
<p>You can rename the config files, project folders and domains as you like, just make sure the <code>root</code> in the config files, is pointing to the correct project folder name.</p>
|
||||||
|
|
||||||
|
<p>4 - Add the domains to the <strong>hosts</strong> files.</p>
|
||||||
|
|
||||||
|
<pre><code>127.0.0.1 project-1.dev
|
||||||
|
127.0.0.1 project-2.dev
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="Usage"></a></p>
|
||||||
|
|
||||||
|
<h2 id="usage">Usage</h2>
|
||||||
|
|
||||||
|
<p><strong>Read Before starting:</strong></p>
|
||||||
|
|
||||||
|
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="#upgrading-laradock">Upgrading Laradock</a></li>
|
||||||
|
<li>Use Laradock v3.* (Visit the <code>Laradock-ToolBox</code> <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Branch</a>).</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Warning:</strong> If you used an older version of Laradock it’s highly recommended to rebuild the containers you need to use <a href="#Build-Re-build-Containers">see how you rebuild a container</a> in order to prevent as much errors as possible.</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
|
<p>1 - Enter the laradock folder and rename <code>env-example</code> to <code>.env</code></p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">cp env-example .env
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>You can edit the <code>.env</code> file to chose which software’s you want to be installed in your environment. You can always refer to the <code>docker-compose.yml</code> file to see how those variables are been used.</p>
|
||||||
|
|
||||||
|
<p>2 - Build the enviroment and run it using <code>docker-compose</code></p>
|
||||||
|
|
||||||
|
<p>In this example we’ll see how to run NGINX (web server) and MySQL (database engine) to host a PHP Web Scripts:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose up -d nginx mysql
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><strong>Note</strong>: The <code>workspace</code> and <code>php-fpm</code> will run automatically in most of the cases, so no need to specify them in the <code>up</code> command. If you couldn’t find them running then you need specify them as follow: <code>docker-compose up -d nginx php-fpm mysql workspace</code>.</p>
|
||||||
|
|
||||||
|
<p>You can select your own combination of containers form the list below:</p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more…!</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
3 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, …)</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose exec workspace bash
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>Alternatively, for Windows PowerShell users: execute the following command to enter any running container:</em></p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker exec -it {workspace-container-id} bash
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><strong>Note:</strong> You can add <code>--user=laradock</code> to have files created as your host’s user. Example:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">docker-compose exec --user=laradock workspace bash
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>You can change the PUID (User id) and PGID (group id) variables from the <code>.env</code> file)</em></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
4 - Update your project configurations to use the database host</p>
|
||||||
|
|
||||||
|
<p>Open your PHP project’s <code>.env</code> file or whichever configuration file you are reading from, and set the database host <code>DB_HOST</code> to <code>mysql</code>:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-env">DB_HOST=mysql
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>If you want to install Laravel as PHP project, see <a href="#Install-Laravel">How to Install Laravel in a Docker Container</a>.</em></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
5 - Open your browser and visit your localhost address <code>http://localhost/</code>. If you followed the multiple projects setup, you can visit <code>http://project-1.dev/</code> and <code>http://project-2.dev/</code>. But first don’t</p>
|
||||||
|
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/introduction/" title="Introduction">
|
||||||
|
<span class="direction">
|
||||||
|
Previous
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="button button-previous" role="button" aria-label="Previous">
|
||||||
|
<i class="icon icon-back"></i>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Introduction
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/documentation/" title="Documentation">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Documentation
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var base_url = '';
|
||||||
|
var repo_id = '';
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/application.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/* Add headers to scrollspy */
|
||||||
|
var headers = document.getElementsByTagName("h2");
|
||||||
|
var scrollspy = document.getElementById('scrollspy');
|
||||||
|
|
||||||
|
if(scrollspy) {
|
||||||
|
if(headers.length > 0) {
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.setAttribute("class", "anchor");
|
||||||
|
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", headers[i].innerHTML);
|
||||||
|
a.innerHTML = headers[i].innerHTML;
|
||||||
|
|
||||||
|
li.appendChild(a)
|
||||||
|
scrollspy.appendChild(li);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Add permanent link next to the headers */
|
||||||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||||||
|
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("class", "headerlink");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", "Permanent link")
|
||||||
|
a.innerHTML = "#";
|
||||||
|
headers[i].appendChild(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){
|
||||||
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
||||||
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
||||||
|
m.parentNode.insertBefore(a,m)
|
||||||
|
})(window, document,
|
||||||
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-37514928-9', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
var buttons = document.querySelectorAll('a');
|
||||||
|
Array.prototype.map.call(buttons, function(item) {
|
||||||
|
if (item.host != document.location.host) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
var action = item.getAttribute('data-action') || 'follow';
|
||||||
|
ga('send', 'event', 'outbound', action, item.href);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var query = document.querySelector('.query');
|
||||||
|
query.addEventListener('blur', function() {
|
||||||
|
if (this.value) {
|
||||||
|
var path = document.location.pathname;
|
||||||
|
ga('send', 'pageview', path + '?q=' + this.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||||||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
225
docs/getting-started/index.xml
Normal file
@ -0,0 +1,225 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Getting-starteds on Laradock</title>
|
||||||
|
<link>http://laradock.io/getting-started/index.xml</link>
|
||||||
|
<description>Recent content in Getting-starteds on Laradock</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://laradock.io/getting-started/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Getting Started</title>
|
||||||
|
<link>http://laradock.io/getting-started/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://laradock.io/getting-started/</guid>
|
||||||
|
<description>
|
||||||
|
|
||||||
|
<h2 id="requirements">Requirements</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://git-scm.com/downloads">Git</a></li>
|
||||||
|
<li><a href="https://www.docker.com/products/docker/">Docker</a> <code>&gt;= 1.12</code></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h2 id="installation">Installation</h2>
|
||||||
|
|
||||||
|
<p>Choose the setup the best suits your needs.</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="#A">A) Setup for Single Project</a>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="#A1">A.1) Already have a PHP project</a></li>
|
||||||
|
<li><a href="#A2">A.2) Don&rsquo;t have a PHP project yet</a></li>
|
||||||
|
</ul></li>
|
||||||
|
<li><a href="#B">B) Setup for Multiple Projects</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><a name="A"></a></p>
|
||||||
|
|
||||||
|
<h3 id="a-setup-for-single-project">A) Setup for Single Project</h3>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>(Follow these steps if you want a separate Docker environment for each project)</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="A1"></a></p>
|
||||||
|
|
||||||
|
<h3 id="a-1-already-have-a-php-project">A.1) Already have a PHP project:</h3>
|
||||||
|
|
||||||
|
<p>1 - Clone laradock on your project root directory:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">git submodule add https://github.com/Laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><strong>Notes:</strong></p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
||||||
|
|
||||||
|
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="#keep-tracking-Laradock">Check this</a></p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>Your folder structure should look like this:</p>
|
||||||
|
|
||||||
|
<pre><code>+ project-a
|
||||||
|
+ laradock-a
|
||||||
|
+ project-b
|
||||||
|
+ laradock-b
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>(It&rsquo;s important to rename the folders differently in each project.)</p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="A2"></a></p>
|
||||||
|
|
||||||
|
<h3 id="a-2-don-t-have-a-php-project-yet">A.2) Don&rsquo;t have a PHP project yet:</h3>
|
||||||
|
|
||||||
|
<p>1 - Clone this repository anywhere on your machine:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">git clone https://github.com/laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Your folder structure should look like this:</p>
|
||||||
|
|
||||||
|
<pre><code>+ laradock
|
||||||
|
+ project-z
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Edit your web server sites configuration.</p>
|
||||||
|
|
||||||
|
<p><strong>In case of NGINX:</strong> open <code>nginx/sites/default.conf</code> and change the <code>root</code> from <code>/var/www/public</code> to <code>/var/www/{my-project-folder-name}/public</code>.</p>
|
||||||
|
|
||||||
|
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
||||||
|
|
||||||
|
<p><strong>In case of Apache:</strong> :P
|
||||||
|
<br></p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="B"></a></p>
|
||||||
|
|
||||||
|
<h3 id="b-setup-for-multiple-projects">B) Setup for Multiple Projects:</h3>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>(Follow these steps if you want a single Docker environment for all your project)</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p>1 - Clone this repository anywhere on your machine (similar to <a href="#A2">Steps A.2. from above</a>):</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">git clone https://github.com/laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Your folder structure should look like this:</p>
|
||||||
|
|
||||||
|
<pre><code>+ laradock
|
||||||
|
+ project-1
|
||||||
|
+ project-2
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Go to <code>nginx/sites</code> and create config files to point to different project directory when visiting different domains.</p>
|
||||||
|
|
||||||
|
<p>Laradock by default includes <code>project-1.conf</code> and <code>project-2.conf</code> as working samples.</p>
|
||||||
|
|
||||||
|
<p>3 - change the default names <code>project-n</code>:</p>
|
||||||
|
|
||||||
|
<p>You can rename the config files, project folders and domains as you like, just make sure the <code>root</code> in the config files, is pointing to the correct project folder name.</p>
|
||||||
|
|
||||||
|
<p>4 - Add the domains to the <strong>hosts</strong> files.</p>
|
||||||
|
|
||||||
|
<pre><code>127.0.0.1 project-1.dev
|
||||||
|
127.0.0.1 project-2.dev
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="Usage"></a></p>
|
||||||
|
|
||||||
|
<h2 id="usage">Usage</h2>
|
||||||
|
|
||||||
|
<p><strong>Read Before starting:</strong></p>
|
||||||
|
|
||||||
|
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="#upgrading-laradock">Upgrading Laradock</a></li>
|
||||||
|
<li>Use Laradock v3.* (Visit the <code>Laradock-ToolBox</code> <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Branch</a>).</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Warning:</strong> If you used an older version of Laradock it&rsquo;s highly recommended to rebuild the containers you need to use <a href="#Build-Re-build-Containers">see how you rebuild a container</a> in order to prevent as much errors as possible.</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
|
<p>1 - Enter the laradock folder and rename <code>env-example</code> to <code>.env</code></p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">cp env-example .env
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>You can edit the <code>.env</code> file to chose which software&rsquo;s you want to be installed in your environment. You can always refer to the <code>docker-compose.yml</code> file to see how those variables are been used.</p>
|
||||||
|
|
||||||
|
<p>2 - Build the enviroment and run it using <code>docker-compose</code></p>
|
||||||
|
|
||||||
|
<p>In this example we&rsquo;ll see how to run NGINX (web server) and MySQL (database engine) to host a PHP Web Scripts:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose up -d nginx mysql
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><strong>Note</strong>: The <code>workspace</code> and <code>php-fpm</code> will run automatically in most of the cases, so no need to specify them in the <code>up</code> command. If you couldn&rsquo;t find them running then you need specify them as follow: <code>docker-compose up -d nginx php-fpm mysql workspace</code>.</p>
|
||||||
|
|
||||||
|
<p>You can select your own combination of containers form the list below:</p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more&hellip;!</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
3 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, &hellip;)</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose exec workspace bash
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>Alternatively, for Windows PowerShell users: execute the following command to enter any running container:</em></p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker exec -it {workspace-container-id} bash
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><strong>Note:</strong> You can add <code>--user=laradock</code> to have files created as your host&rsquo;s user. Example:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">docker-compose exec --user=laradock workspace bash
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>You can change the PUID (User id) and PGID (group id) variables from the <code>.env</code> file)</em></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
4 - Update your project configurations to use the database host</p>
|
||||||
|
|
||||||
|
<p>Open your PHP project&rsquo;s <code>.env</code> file or whichever configuration file you are reading from, and set the database host <code>DB_HOST</code> to <code>mysql</code>:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-env">DB_HOST=mysql
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><em>If you want to install Laravel as PHP project, see <a href="#Install-Laravel">How to Install Laravel in a Docker Container</a>.</em></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
5 - Open your browser and visit your localhost address <code>http://localhost/</code>. If you followed the multiple projects setup, you can visit <code>http://project-1.dev/</code> and <code>http://project-2.dev/</code>. But first don&rsquo;t</p>
|
||||||
|
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
476
docs/help/index.html
Normal file
@ -0,0 +1,476 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<html class="no-js">
|
||||||
|
|
||||||
|
<head lang="en-us">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
|
<title>Help & Questions - Laradock</title>
|
||||||
|
<meta name="generator" content="Hugo 0.18.1" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://laradock.io/help/">
|
||||||
|
|
||||||
|
<meta name="author" content="Mahmoud Zalt">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://laradock.io/help/">
|
||||||
|
<meta property="og:title" content="Laradock">
|
||||||
|
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Laradock">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
<link rel="icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Icon';
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot');
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot')
|
||||||
|
format('embedded-opentype'),
|
||||||
|
url('http://laradock.io/fonts/icon.woff')
|
||||||
|
format('woff'),
|
||||||
|
url('http://laradock.io/fonts/icon.ttf')
|
||||||
|
format('truetype'),
|
||||||
|
url('http://laradock.io/fonts/icon.svg')
|
||||||
|
format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/application.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/temporary.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/palettes.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/highlight/highlight.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Doctarine:400,700|Source+Code+Pro">
|
||||||
|
<style>
|
||||||
|
body, input {
|
||||||
|
font-family: 'Doctarine', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
pre, code {
|
||||||
|
font-family: 'Source Code Pro', 'Courier New', 'Courier', monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/modernizr.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="palette-primary-deep-purple palette-accent-purple">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
<nav aria-label="Header">
|
||||||
|
<div class="bar default">
|
||||||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||||||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
<b>Laradock</b> <span style="color: rgba(249, 245, 255, 0.63);"> / Help & Questions</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||||||
|
<a style="padding: 0px; font-size:40px" href="https://github.com/laradock/laradock" title="@laradock/laradock on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||||||
|
</div>
|
||||||
|
<p style="font-size: 18px; padding: 8px">Github</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="bar search">
|
||||||
|
<div class="button button-close" role="button" aria-label="Close">
|
||||||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="field">
|
||||||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||||||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
<nav aria-label="Navigation">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="toc">
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Introduction" href="http://laradock.io/introduction/">
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Getting Started" href="http://laradock.io/getting-started/">
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Documentation" href="http://laradock.io/documentation/">
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Related Projects" href="http://laradock.io/related-projects/">
|
||||||
|
|
||||||
|
Related Projects
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="current" title="Help & Questions" href="http://laradock.io/help/">
|
||||||
|
|
||||||
|
Help & Questions
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="scrollspy">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Contributing" href="http://laradock.io/contributing/">
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="License" href="http://laradock.io/license/">
|
||||||
|
|
||||||
|
License
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>Help & Questions </h1>
|
||||||
|
|
||||||
|
<p>Join the chat room on <a href="https://gitter.im/Laradock/laradock">Gitter</a> and get help and support from the community.</p>
|
||||||
|
|
||||||
|
<p>You can as well can open an <a href="https://github.com/laradock/laradock/issues">issue</a> on Github (will be labeled as Question) and discuss it with people on <a href="https://gitter.im/Laradock/laradock">Gitter</a>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/related-projects/" title="Related Projects">
|
||||||
|
<span class="direction">
|
||||||
|
Previous
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="button button-previous" role="button" aria-label="Previous">
|
||||||
|
<i class="icon icon-back"></i>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Related Projects
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/contributing/" title="Contributing">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Contributing
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var base_url = '';
|
||||||
|
var repo_id = '';
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/application.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/* Add headers to scrollspy */
|
||||||
|
var headers = document.getElementsByTagName("h2");
|
||||||
|
var scrollspy = document.getElementById('scrollspy');
|
||||||
|
|
||||||
|
if(scrollspy) {
|
||||||
|
if(headers.length > 0) {
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.setAttribute("class", "anchor");
|
||||||
|
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", headers[i].innerHTML);
|
||||||
|
a.innerHTML = headers[i].innerHTML;
|
||||||
|
|
||||||
|
li.appendChild(a)
|
||||||
|
scrollspy.appendChild(li);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Add permanent link next to the headers */
|
||||||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||||||
|
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("class", "headerlink");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", "Permanent link")
|
||||||
|
a.innerHTML = "#";
|
||||||
|
headers[i].appendChild(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){
|
||||||
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
||||||
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
||||||
|
m.parentNode.insertBefore(a,m)
|
||||||
|
})(window, document,
|
||||||
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-37514928-9', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
var buttons = document.querySelectorAll('a');
|
||||||
|
Array.prototype.map.call(buttons, function(item) {
|
||||||
|
if (item.host != document.location.host) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
var action = item.getAttribute('data-action') || 'follow';
|
||||||
|
ga('send', 'event', 'outbound', action, item.href);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var query = document.querySelector('.query');
|
||||||
|
query.addEventListener('blur', function() {
|
||||||
|
if (this.value) {
|
||||||
|
var path = document.location.pathname;
|
||||||
|
ga('send', 'pageview', path + '?q=' + this.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||||||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
24
docs/help/index.xml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Helps on Laradock</title>
|
||||||
|
<link>http://laradock.io/help/index.xml</link>
|
||||||
|
<description>Recent content in Helps on Laradock</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://laradock.io/help/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Help & Questions</title>
|
||||||
|
<link>http://laradock.io/help/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://laradock.io/help/</guid>
|
||||||
|
<description><p>Join the chat room on <a href="https://gitter.im/Laradock/laradock">Gitter</a> and get help and support from the community.</p>
|
||||||
|
|
||||||
|
<p>You can as well can open an <a href="https://github.com/laradock/laradock/issues">issue</a> on Github (will be labeled as Question) and discuss it with people on <a href="https://gitter.im/Laradock/laradock">Gitter</a>.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
BIN
docs/images/colors.png
Normal file
After Width: | Height: | Size: 254 KiB |
BIN
docs/images/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
docs/images/logo.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
docs/images/screen.png
Normal file
After Width: | Height: | Size: 145 KiB |
2267
docs/index.html
Normal file
1863
docs/index.xml
Normal file
650
docs/introduction/index.html
Normal file
@ -0,0 +1,650 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<html class="no-js">
|
||||||
|
|
||||||
|
<head lang="en-us">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
|
<title>Introduction - Laradock</title>
|
||||||
|
<meta name="generator" content="Hugo 0.18.1" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://laradock.io/introduction/">
|
||||||
|
|
||||||
|
<meta name="author" content="Mahmoud Zalt">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://laradock.io/introduction/">
|
||||||
|
<meta property="og:title" content="Laradock">
|
||||||
|
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Laradock">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
<link rel="icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Icon';
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot');
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot')
|
||||||
|
format('embedded-opentype'),
|
||||||
|
url('http://laradock.io/fonts/icon.woff')
|
||||||
|
format('woff'),
|
||||||
|
url('http://laradock.io/fonts/icon.ttf')
|
||||||
|
format('truetype'),
|
||||||
|
url('http://laradock.io/fonts/icon.svg')
|
||||||
|
format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/application.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/temporary.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/palettes.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/highlight/highlight.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Doctarine:400,700|Source+Code+Pro">
|
||||||
|
<style>
|
||||||
|
body, input {
|
||||||
|
font-family: 'Doctarine', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
pre, code {
|
||||||
|
font-family: 'Source Code Pro', 'Courier New', 'Courier', monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/modernizr.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="palette-primary-deep-purple palette-accent-purple">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
<nav aria-label="Header">
|
||||||
|
<div class="bar default">
|
||||||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||||||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
<b>Laradock</b> <span style="color: rgba(249, 245, 255, 0.63);"> / Introduction</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||||||
|
<a style="padding: 0px; font-size:40px" href="https://github.com/laradock/laradock" title="@laradock/laradock on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||||||
|
</div>
|
||||||
|
<p style="font-size: 18px; padding: 8px">Github</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="bar search">
|
||||||
|
<div class="button button-close" role="button" aria-label="Close">
|
||||||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="field">
|
||||||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||||||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
<nav aria-label="Navigation">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="toc">
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="current" title="Introduction" href="http://laradock.io/introduction/">
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="scrollspy">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Getting Started" href="http://laradock.io/getting-started/">
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Documentation" href="http://laradock.io/documentation/">
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Related Projects" href="http://laradock.io/related-projects/">
|
||||||
|
|
||||||
|
Related Projects
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Help & Questions" href="http://laradock.io/help/">
|
||||||
|
|
||||||
|
Help & Questions
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Contributing" href="http://laradock.io/contributing/">
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="License" href="http://laradock.io/license/">
|
||||||
|
|
||||||
|
License
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>Introduction </h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>Laradock strives to make the PHP development experience easier and faster.</p>
|
||||||
|
|
||||||
|
<p>It contains pre-packaged Docker Images that provides you a wonderful <em>development</em> environment without requiring you to install PHP, NGINX, MySQL, Redis, and any other software on your machines.</p>
|
||||||
|
|
||||||
|
<p>Laradock is configured to run Laravel Apps by default, and it can be modified to run all kinds of PHP Apps (Symfony, CodeIgniter, WordPress, Drupal…).</p>
|
||||||
|
|
||||||
|
<h2 id="quick-overview">Quick Overview</h2>
|
||||||
|
|
||||||
|
<p>Let’s see how easy it is to install <code>NGINX</code>, <code>PHP</code>, <code>Composer</code>, <code>MySQL</code>, <code>Redis</code> and <code>beanstalkd</code>:</p>
|
||||||
|
|
||||||
|
<p>1 - Clone Laradock inside your PHP project:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git clone https://github.com/Laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Enter the laradock folder and rename <code>env-example</code> to <code>.env</code>.</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">cp env-example .env
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>3 - Run your containers:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">docker-compose up -d nginx mysql redis beanstalkd
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>3 - Open your project’s <code>.env</code> file and set the following:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">DB_HOST=mysql
|
||||||
|
REDIS_HOST=redis
|
||||||
|
QUEUE_HOST=beanstalkd
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>4 - Open your browser and visit localhost: <code>http://localhost</code>.</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">That's it! enjoy :)
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><a name="what-is-docker"></a></p>
|
||||||
|
|
||||||
|
<h2 id="what-is-docker">What is Docker?</h2>
|
||||||
|
|
||||||
|
<p><a href="https://www.docker.com">Docker</a> is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of <a href="https://en.wikipedia.org/wiki/Operating-system-level_virtualization">operating-system-level virtualization</a> on Linux, Mac OS and Windows.</p>
|
||||||
|
|
||||||
|
<p><a name="why-docker-not-vagrant"></a></p>
|
||||||
|
|
||||||
|
<h2 id="why-docker-not-vagrant">Why Docker not Vagrant!?</h2>
|
||||||
|
|
||||||
|
<p><a href="https://www.vagrantup.com">Vagrant</a> creates Virtual Machines in minutes while Docker creates Virtual Containers in seconds.</p>
|
||||||
|
|
||||||
|
<p>Instead of providing a full Virtual Machines, like you get with Vagrant, Docker provides you <strong>lightweight</strong> Virtual Containers, that share the same kernel and allow to safely execute independent processes.</p>
|
||||||
|
|
||||||
|
<p>In addition to the speed, Docker gives tons of features that cannot be achieved with Vagrant.</p>
|
||||||
|
|
||||||
|
<p>Most importantly Docker can run on Development and on Production (same environment everywhere). While Vagrant is designed for Development only, (so you have to re-provision your server on Production every time).</p>
|
||||||
|
|
||||||
|
<p><a name="laradock-vs-homestead"></a></p>
|
||||||
|
|
||||||
|
<h2 id="laradock-vs-homestead-for-laravel-developers">Laradock VS Homestead (For Laravel Developers)</h2>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>Laradock It’s like Laravel Homestead but for Docker instead of Vagrant.</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p>Laradock and <a href="https://laravel.com/docs/master/homestead">Homestead</a> both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System).</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Homestead is a tool that controls Vagrant for you (using Homestead special commands). And Vagrant manages your Virtual Machine.</p></li>
|
||||||
|
|
||||||
|
<li><p>Laradock is a tool that controls Docker for you (using Docker & Docker Compose official commands). And Docker manages your Virtual Containers.</p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>Running a virtual container is much faster than running a full virtual Machine. Thus <strong>Laradock is much faster than Homestead</strong>.</p>
|
||||||
|
|
||||||
|
<p><a name="Demo"></a></p>
|
||||||
|
|
||||||
|
<h2 id="demo-video">Demo Video</h2>
|
||||||
|
|
||||||
|
<p>What’s better than a <strong>Demo Video</strong>:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=TQii1jDa96Y">v4.*</a></li>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=-DamFMczwDA">v2.*</a></li>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=jGkyO6Is_aI">v0.3</a></li>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=3YQsHe6oF80">v0.1</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><a name="features"></a></p>
|
||||||
|
|
||||||
|
<h2 id="features">Features</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Easy switch between PHP versions: 7.0, 5.6, 5.5…</li>
|
||||||
|
<li>Choose your favorite database engine: MySQL, Postgres, MariaDB…</li>
|
||||||
|
<li>Run your own combination of software: Memcached, HHVM, Beanstalkd…</li>
|
||||||
|
<li>Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI…</li>
|
||||||
|
<li>Easy to customize any container, with simple edit to the <code>Dockerfile</code>.</li>
|
||||||
|
<li>All Images extends from an official base Image. (Trusted base Images).</li>
|
||||||
|
<li>Pre-configured NGINX for Laravel.</li>
|
||||||
|
<li>Easy to apply configurations inside containers.</li>
|
||||||
|
<li>Clean and well structured Dockerfiles (<code>Dockerfile</code>).</li>
|
||||||
|
<li>Latest version of the Docker Compose file (<code>docker-compose</code>).</li>
|
||||||
|
<li>Everything is visible and editable.</li>
|
||||||
|
<li>Fast Images Builds.</li>
|
||||||
|
<li>More to come every week..</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><a name="Supported-Containers"></a></p>
|
||||||
|
|
||||||
|
<h2 id="supported-software-containers">Supported Software (Containers)</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><strong>Database Engines:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>MySQL</li>
|
||||||
|
<li>MariaDB</li>
|
||||||
|
<li>MongoDB</li>
|
||||||
|
<li>Neo4j</li>
|
||||||
|
<li>RethinkDB</li>
|
||||||
|
<li>PostgreSQL</li>
|
||||||
|
<li>Postgres Postgis</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>Cache Engines:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Redis</li>
|
||||||
|
<li>Memcached</li>
|
||||||
|
<li>Aerospike</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>PHP Servers:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>NGINX</li>
|
||||||
|
<li>Apache2</li>
|
||||||
|
<li>Caddy</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>PHP Compilers:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>PHP-FPM</li>
|
||||||
|
<li>HHVM</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>Message Queuing Systems:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Beanstalkd</li>
|
||||||
|
<li>Beanstalkd Console</li>
|
||||||
|
<li>RabbitMQ</li>
|
||||||
|
<li>RabbitMQ Console</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>Tools:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>PhpMyAdmin</li>
|
||||||
|
<li>PgAdmin</li>
|
||||||
|
<li>ElasticSearch</li>
|
||||||
|
<li>Selenium</li>
|
||||||
|
<li>Certbot</li>
|
||||||
|
<li>Mailhog</li>
|
||||||
|
<li>Minio</li>
|
||||||
|
<li>Workspace
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>PHP7-CLI</li>
|
||||||
|
<li>Composer</li>
|
||||||
|
<li>Git</li>
|
||||||
|
<li>Linuxbrew</li>
|
||||||
|
<li>Node</li>
|
||||||
|
<li>Gulp</li>
|
||||||
|
<li>SQLite</li>
|
||||||
|
<li>xDebug</li>
|
||||||
|
<li>Envoy</li>
|
||||||
|
<li>Deployer</li>
|
||||||
|
<li>Vim</li>
|
||||||
|
<li>Yarn</li>
|
||||||
|
<li>… Many other supported tools are not documented. (Will be updated soon)</li>
|
||||||
|
</ul></li>
|
||||||
|
</ul></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>If you can’t find your Software, build it yourself and add it to this list. Contributions are welcomed :)</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="Chat"></a></p>
|
||||||
|
|
||||||
|
<h2 id="chat-with-us">Chat with us</h2>
|
||||||
|
|
||||||
|
<p>You are welcome to join our chat room on Gitter.</p>
|
||||||
|
|
||||||
|
<p><a href="https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/Laradock/laradock.svg" alt="Gitter" /></a></p>
|
||||||
|
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/getting-started/" title="Getting Started">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Getting Started
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var base_url = '';
|
||||||
|
var repo_id = '';
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/application.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/* Add headers to scrollspy */
|
||||||
|
var headers = document.getElementsByTagName("h2");
|
||||||
|
var scrollspy = document.getElementById('scrollspy');
|
||||||
|
|
||||||
|
if(scrollspy) {
|
||||||
|
if(headers.length > 0) {
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.setAttribute("class", "anchor");
|
||||||
|
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", headers[i].innerHTML);
|
||||||
|
a.innerHTML = headers[i].innerHTML;
|
||||||
|
|
||||||
|
li.appendChild(a)
|
||||||
|
scrollspy.appendChild(li);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Add permanent link next to the headers */
|
||||||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||||||
|
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("class", "headerlink");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", "Permanent link")
|
||||||
|
a.innerHTML = "#";
|
||||||
|
headers[i].appendChild(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){
|
||||||
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
||||||
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
||||||
|
m.parentNode.insertBefore(a,m)
|
||||||
|
})(window, document,
|
||||||
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-37514928-9', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
var buttons = document.querySelectorAll('a');
|
||||||
|
Array.prototype.map.call(buttons, function(item) {
|
||||||
|
if (item.host != document.location.host) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
var action = item.getAttribute('data-action') || 'follow';
|
||||||
|
ga('send', 'event', 'outbound', action, item.href);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var query = document.querySelector('.query');
|
||||||
|
query.addEventListener('blur', function() {
|
||||||
|
if (this.value) {
|
||||||
|
var path = document.location.pathname;
|
||||||
|
ga('send', 'pageview', path + '?q=' + this.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||||||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
214
docs/introduction/index.xml
Normal file
@ -0,0 +1,214 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Introductions on Laradock</title>
|
||||||
|
<link>http://laradock.io/introduction/index.xml</link>
|
||||||
|
<description>Recent content in Introductions on Laradock</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://laradock.io/introduction/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Introduction</title>
|
||||||
|
<link>http://laradock.io/introduction/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://laradock.io/introduction/</guid>
|
||||||
|
<description>
|
||||||
|
|
||||||
|
<p>Laradock strives to make the PHP development experience easier and faster.</p>
|
||||||
|
|
||||||
|
<p>It contains pre-packaged Docker Images that provides you a wonderful <em>development</em> environment without requiring you to install PHP, NGINX, MySQL, Redis, and any other software on your machines.</p>
|
||||||
|
|
||||||
|
<p>Laradock is configured to run Laravel Apps by default, and it can be modified to run all kinds of PHP Apps (Symfony, CodeIgniter, WordPress, Drupal&hellip;).</p>
|
||||||
|
|
||||||
|
<h2 id="quick-overview">Quick Overview</h2>
|
||||||
|
|
||||||
|
<p>Let&rsquo;s see how easy it is to install <code>NGINX</code>, <code>PHP</code>, <code>Composer</code>, <code>MySQL</code>, <code>Redis</code> and <code>beanstalkd</code>:</p>
|
||||||
|
|
||||||
|
<p>1 - Clone Laradock inside your PHP project:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">git clone https://github.com/Laradock/laradock.git
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Enter the laradock folder and rename <code>env-example</code> to <code>.env</code>.</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">cp env-example .env
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>3 - Run your containers:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">docker-compose up -d nginx mysql redis beanstalkd
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>3 - Open your project&rsquo;s <code>.env</code> file and set the following:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">DB_HOST=mysql
|
||||||
|
REDIS_HOST=redis
|
||||||
|
QUEUE_HOST=beanstalkd
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>4 - Open your browser and visit localhost: <code>http://localhost</code>.</p>
|
||||||
|
|
||||||
|
<pre><code class="language-shell">That's it! enjoy :)
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p><a name="what-is-docker"></a></p>
|
||||||
|
|
||||||
|
<h2 id="what-is-docker">What is Docker?</h2>
|
||||||
|
|
||||||
|
<p><a href="https://www.docker.com">Docker</a> is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of <a href="https://en.wikipedia.org/wiki/Operating-system-level_virtualization">operating-system-level virtualization</a> on Linux, Mac OS and Windows.</p>
|
||||||
|
|
||||||
|
<p><a name="why-docker-not-vagrant"></a></p>
|
||||||
|
|
||||||
|
<h2 id="why-docker-not-vagrant">Why Docker not Vagrant!?</h2>
|
||||||
|
|
||||||
|
<p><a href="https://www.vagrantup.com">Vagrant</a> creates Virtual Machines in minutes while Docker creates Virtual Containers in seconds.</p>
|
||||||
|
|
||||||
|
<p>Instead of providing a full Virtual Machines, like you get with Vagrant, Docker provides you <strong>lightweight</strong> Virtual Containers, that share the same kernel and allow to safely execute independent processes.</p>
|
||||||
|
|
||||||
|
<p>In addition to the speed, Docker gives tons of features that cannot be achieved with Vagrant.</p>
|
||||||
|
|
||||||
|
<p>Most importantly Docker can run on Development and on Production (same environment everywhere). While Vagrant is designed for Development only, (so you have to re-provision your server on Production every time).</p>
|
||||||
|
|
||||||
|
<p><a name="laradock-vs-homestead"></a></p>
|
||||||
|
|
||||||
|
<h2 id="laradock-vs-homestead-for-laravel-developers">Laradock VS Homestead (For Laravel Developers)</h2>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>Laradock It&rsquo;s like Laravel Homestead but for Docker instead of Vagrant.</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p>Laradock and <a href="https://laravel.com/docs/master/homestead">Homestead</a> both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System).</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><p>Homestead is a tool that controls Vagrant for you (using Homestead special commands). And Vagrant manages your Virtual Machine.</p></li>
|
||||||
|
|
||||||
|
<li><p>Laradock is a tool that controls Docker for you (using Docker &amp; Docker Compose official commands). And Docker manages your Virtual Containers.</p></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>Running a virtual container is much faster than running a full virtual Machine. Thus <strong>Laradock is much faster than Homestead</strong>.</p>
|
||||||
|
|
||||||
|
<p><a name="Demo"></a></p>
|
||||||
|
|
||||||
|
<h2 id="demo-video">Demo Video</h2>
|
||||||
|
|
||||||
|
<p>What&rsquo;s better than a <strong>Demo Video</strong>:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=TQii1jDa96Y">v4.*</a></li>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=-DamFMczwDA">v2.*</a></li>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=jGkyO6Is_aI">v0.3</a></li>
|
||||||
|
<li>Laradock <a href="https://www.youtube.com/watch?v=3YQsHe6oF80">v0.1</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><a name="features"></a></p>
|
||||||
|
|
||||||
|
<h2 id="features">Features</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Easy switch between PHP versions: 7.0, 5.6, 5.5&hellip;</li>
|
||||||
|
<li>Choose your favorite database engine: MySQL, Postgres, MariaDB&hellip;</li>
|
||||||
|
<li>Run your own combination of software: Memcached, HHVM, Beanstalkd&hellip;</li>
|
||||||
|
<li>Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI&hellip;</li>
|
||||||
|
<li>Easy to customize any container, with simple edit to the <code>Dockerfile</code>.</li>
|
||||||
|
<li>All Images extends from an official base Image. (Trusted base Images).</li>
|
||||||
|
<li>Pre-configured NGINX for Laravel.</li>
|
||||||
|
<li>Easy to apply configurations inside containers.</li>
|
||||||
|
<li>Clean and well structured Dockerfiles (<code>Dockerfile</code>).</li>
|
||||||
|
<li>Latest version of the Docker Compose file (<code>docker-compose</code>).</li>
|
||||||
|
<li>Everything is visible and editable.</li>
|
||||||
|
<li>Fast Images Builds.</li>
|
||||||
|
<li>More to come every week..</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><a name="Supported-Containers"></a></p>
|
||||||
|
|
||||||
|
<h2 id="supported-software-containers">Supported Software (Containers)</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><strong>Database Engines:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>MySQL</li>
|
||||||
|
<li>MariaDB</li>
|
||||||
|
<li>MongoDB</li>
|
||||||
|
<li>Neo4j</li>
|
||||||
|
<li>RethinkDB</li>
|
||||||
|
<li>PostgreSQL</li>
|
||||||
|
<li>Postgres Postgis</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>Cache Engines:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Redis</li>
|
||||||
|
<li>Memcached</li>
|
||||||
|
<li>Aerospike</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>PHP Servers:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>NGINX</li>
|
||||||
|
<li>Apache2</li>
|
||||||
|
<li>Caddy</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>PHP Compilers:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>PHP-FPM</li>
|
||||||
|
<li>HHVM</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>Message Queuing Systems:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Beanstalkd</li>
|
||||||
|
<li>Beanstalkd Console</li>
|
||||||
|
<li>RabbitMQ</li>
|
||||||
|
<li>RabbitMQ Console</li>
|
||||||
|
</ul></li>
|
||||||
|
<li><strong>Tools:</strong>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>PhpMyAdmin</li>
|
||||||
|
<li>PgAdmin</li>
|
||||||
|
<li>ElasticSearch</li>
|
||||||
|
<li>Selenium</li>
|
||||||
|
<li>Certbot</li>
|
||||||
|
<li>Mailhog</li>
|
||||||
|
<li>Minio</li>
|
||||||
|
<li>Workspace
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>PHP7-CLI</li>
|
||||||
|
<li>Composer</li>
|
||||||
|
<li>Git</li>
|
||||||
|
<li>Linuxbrew</li>
|
||||||
|
<li>Node</li>
|
||||||
|
<li>Gulp</li>
|
||||||
|
<li>SQLite</li>
|
||||||
|
<li>xDebug</li>
|
||||||
|
<li>Envoy</li>
|
||||||
|
<li>Deployer</li>
|
||||||
|
<li>Vim</li>
|
||||||
|
<li>Yarn</li>
|
||||||
|
<li>&hellip; Many other supported tools are not documented. (Will be updated soon)</li>
|
||||||
|
</ul></li>
|
||||||
|
</ul></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>If you can&rsquo;t find your Software, build it yourself and add it to this list. Contributions are welcomed :)</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p><a name="Chat"></a></p>
|
||||||
|
|
||||||
|
<h2 id="chat-with-us">Chat with us</h2>
|
||||||
|
|
||||||
|
<p>You are welcome to join our chat room on Gitter.</p>
|
||||||
|
|
||||||
|
<p><a href="https://gitter.im/Laradock/laradock?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge"><img src="https://badges.gitter.im/Laradock/laradock.svg" alt="Gitter" /></a></p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
1
docs/javascripts/application.js
Normal file
1
docs/javascripts/modernizr.js
Normal file
474
docs/license/index.html
Normal file
@ -0,0 +1,474 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<html class="no-js">
|
||||||
|
|
||||||
|
<head lang="en-us">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
|
<title>License - Laradock</title>
|
||||||
|
<meta name="generator" content="Hugo 0.18.1" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://laradock.io/license/">
|
||||||
|
|
||||||
|
<meta name="author" content="Mahmoud Zalt">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://laradock.io/license/">
|
||||||
|
<meta property="og:title" content="Laradock">
|
||||||
|
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Laradock">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
<link rel="icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Icon';
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot');
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot')
|
||||||
|
format('embedded-opentype'),
|
||||||
|
url('http://laradock.io/fonts/icon.woff')
|
||||||
|
format('woff'),
|
||||||
|
url('http://laradock.io/fonts/icon.ttf')
|
||||||
|
format('truetype'),
|
||||||
|
url('http://laradock.io/fonts/icon.svg')
|
||||||
|
format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/application.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/temporary.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/palettes.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/highlight/highlight.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Doctarine:400,700|Source+Code+Pro">
|
||||||
|
<style>
|
||||||
|
body, input {
|
||||||
|
font-family: 'Doctarine', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
pre, code {
|
||||||
|
font-family: 'Source Code Pro', 'Courier New', 'Courier', monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/modernizr.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="palette-primary-deep-purple palette-accent-purple">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
<nav aria-label="Header">
|
||||||
|
<div class="bar default">
|
||||||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||||||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
<b>Laradock</b> <span style="color: rgba(249, 245, 255, 0.63);"> / License</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||||||
|
<a style="padding: 0px; font-size:40px" href="https://github.com/laradock/laradock" title="@laradock/laradock on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||||||
|
</div>
|
||||||
|
<p style="font-size: 18px; padding: 8px">Github</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="bar search">
|
||||||
|
<div class="button button-close" role="button" aria-label="Close">
|
||||||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="field">
|
||||||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||||||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
<nav aria-label="Navigation">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="toc">
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Introduction" href="http://laradock.io/introduction/">
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Getting Started" href="http://laradock.io/getting-started/">
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Documentation" href="http://laradock.io/documentation/">
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Related Projects" href="http://laradock.io/related-projects/">
|
||||||
|
|
||||||
|
Related Projects
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Help & Questions" href="http://laradock.io/help/">
|
||||||
|
|
||||||
|
Help & Questions
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Contributing" href="http://laradock.io/contributing/">
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="current" title="License" href="http://laradock.io/license/">
|
||||||
|
|
||||||
|
License
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="scrollspy">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>License </h1>
|
||||||
|
|
||||||
|
<p><a href="https://github.com/laradock/laradock/blob/master/LICENSE">MIT License</a> (MIT)</p>
|
||||||
|
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/contributing/" title="Contributing">
|
||||||
|
<span class="direction">
|
||||||
|
Previous
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="button button-previous" role="button" aria-label="Previous">
|
||||||
|
<i class="icon icon-back"></i>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Contributing
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/contributing/" title="Contributings">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Contributings
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var base_url = '';
|
||||||
|
var repo_id = '';
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/application.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/* Add headers to scrollspy */
|
||||||
|
var headers = document.getElementsByTagName("h2");
|
||||||
|
var scrollspy = document.getElementById('scrollspy');
|
||||||
|
|
||||||
|
if(scrollspy) {
|
||||||
|
if(headers.length > 0) {
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.setAttribute("class", "anchor");
|
||||||
|
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", headers[i].innerHTML);
|
||||||
|
a.innerHTML = headers[i].innerHTML;
|
||||||
|
|
||||||
|
li.appendChild(a)
|
||||||
|
scrollspy.appendChild(li);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Add permanent link next to the headers */
|
||||||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||||||
|
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("class", "headerlink");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", "Permanent link")
|
||||||
|
a.innerHTML = "#";
|
||||||
|
headers[i].appendChild(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){
|
||||||
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
||||||
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
||||||
|
m.parentNode.insertBefore(a,m)
|
||||||
|
})(window, document,
|
||||||
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-37514928-9', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
var buttons = document.querySelectorAll('a');
|
||||||
|
Array.prototype.map.call(buttons, function(item) {
|
||||||
|
if (item.host != document.location.host) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
var action = item.getAttribute('data-action') || 'follow';
|
||||||
|
ga('send', 'event', 'outbound', action, item.href);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var query = document.querySelector('.query');
|
||||||
|
query.addEventListener('blur', function() {
|
||||||
|
if (this.value) {
|
||||||
|
var path = document.location.pathname;
|
||||||
|
ga('send', 'pageview', path + '?q=' + this.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||||||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
22
docs/license/index.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Licenses on Laradock</title>
|
||||||
|
<link>http://laradock.io/license/index.xml</link>
|
||||||
|
<description>Recent content in Licenses on Laradock</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://laradock.io/license/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>License</title>
|
||||||
|
<link>http://laradock.io/license/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://laradock.io/license/</guid>
|
||||||
|
<description><p><a href="https://github.com/laradock/laradock/blob/master/LICENSE">MIT License</a> (MIT)</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
487
docs/related-projects/index.html
Normal file
@ -0,0 +1,487 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<html class="no-js">
|
||||||
|
|
||||||
|
<head lang="en-us">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
|
<title>Related Projects - Laradock</title>
|
||||||
|
<meta name="generator" content="Hugo 0.18.1" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://laradock.io/related-projects/">
|
||||||
|
|
||||||
|
<meta name="author" content="Mahmoud Zalt">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://laradock.io/related-projects/">
|
||||||
|
<meta property="og:title" content="Laradock">
|
||||||
|
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Laradock">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
<link rel="icon" type="image/x-icon" href="http://laradock.io/images/favicon.ico">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Icon';
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot');
|
||||||
|
src: url('http://laradock.io/fonts/icon.eot')
|
||||||
|
format('embedded-opentype'),
|
||||||
|
url('http://laradock.io/fonts/icon.woff')
|
||||||
|
format('woff'),
|
||||||
|
url('http://laradock.io/fonts/icon.ttf')
|
||||||
|
format('truetype'),
|
||||||
|
url('http://laradock.io/fonts/icon.svg')
|
||||||
|
format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/application.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/temporary.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/palettes.css">
|
||||||
|
<link rel="stylesheet" href="http://laradock.io/stylesheets/highlight/highlight.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Doctarine:400,700|Source+Code+Pro">
|
||||||
|
<style>
|
||||||
|
body, input {
|
||||||
|
font-family: 'Doctarine', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
pre, code {
|
||||||
|
font-family: 'Source Code Pro', 'Courier New', 'Courier', monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/modernizr.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="palette-primary-deep-purple palette-accent-purple">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="backdrop">
|
||||||
|
<div class="backdrop-paper"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||||||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||||||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||||||
|
|
||||||
|
<header class="header">
|
||||||
|
<nav aria-label="Header">
|
||||||
|
<div class="bar default">
|
||||||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||||||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
<b>Laradock</b> <span style="color: rgba(249, 245, 255, 0.63);"> / Related Projects</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||||||
|
<a style="padding: 0px; font-size:40px" href="https://github.com/laradock/laradock" title="@laradock/laradock on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||||||
|
</div>
|
||||||
|
<p style="font-size: 18px; padding: 8px">Github</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="bar search">
|
||||||
|
<div class="button button-close" role="button" aria-label="Close">
|
||||||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="field">
|
||||||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||||||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main">
|
||||||
|
<div class="drawer">
|
||||||
|
<nav aria-label="Navigation">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="toc">
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Introduction" href="http://laradock.io/introduction/">
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Getting Started" href="http://laradock.io/getting-started/">
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Documentation" href="http://laradock.io/documentation/">
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="current" title="Related Projects" href="http://laradock.io/related-projects/">
|
||||||
|
|
||||||
|
Related Projects
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="scrollspy">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Help & Questions" href="http://laradock.io/help/">
|
||||||
|
|
||||||
|
Help & Questions
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="Contributing" href="http://laradock.io/contributing/">
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a title="License" href="http://laradock.io/license/">
|
||||||
|
|
||||||
|
License
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<article class="article">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>Related Projects </h1>
|
||||||
|
|
||||||
|
<p>Laradock related projects:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/lorinlee/laradock-cli">Laradock CLI</a> by <a href="https://github.com/lorinlee">LorinLee</a></li>
|
||||||
|
<li><a href="https://github.com/bagart/laradock_env">Laradock Env</a> by <a href="https://github.com/bagart">BAGArt</a></li>
|
||||||
|
<li><a href="https://github.com/poyhsiao/Klaradock">Klaradock</a> by <a href="https://github.com/poyhsiao">Kim Hsiao</a></li>
|
||||||
|
<li><a href="https://github.com/sifat-rahim/ansible-laradock-kubernetes">Ansible Laradock Kubernetes</a> by <a href="https://github.com/sifat-rahim">Sifat Rahim</a>
|
||||||
|
These Docker Compose projects have piqued our interest:</li>
|
||||||
|
<li><a href="https://github.com/ojhaujjwal/magedock">MageDock</a> by <a href="https://github.com/ojhaujjwal">Ujjwal Ojha</a></li>
|
||||||
|
<li><a href="https://github.com/scudelletti/rubydev-dock">RubyDev-Dock</a> by <a href="https://github.com/scudelletti">Diogo Scudelletti</a></li>
|
||||||
|
<li><a href="https://github.com/Osedea/nodock">NoDock</a> by <a href="https://github.com/Osedea">Osedea</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>If you want your project listed here, please open an issue.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<aside class="copyright" role="note">
|
||||||
|
|
||||||
|
Documentation built with
|
||||||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
|
using the
|
||||||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="pagination" aria-label="Footer">
|
||||||
|
<div class="previous">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/documentation/" title="Documentation">
|
||||||
|
<span class="direction">
|
||||||
|
Previous
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="button button-previous" role="button" aria-label="Previous">
|
||||||
|
<i class="icon icon-back"></i>
|
||||||
|
</div>
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Documentation
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next">
|
||||||
|
|
||||||
|
<a href="http://laradock.io/help/" title="Help & Questions">
|
||||||
|
<span class="direction">
|
||||||
|
Next
|
||||||
|
</span>
|
||||||
|
<div class="page">
|
||||||
|
<div class="stretch">
|
||||||
|
<div class="title">
|
||||||
|
Help & Questions
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="button button-next" role="button" aria-label="Next">
|
||||||
|
<i class="icon icon-forward"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="results" role="status" aria-live="polite">
|
||||||
|
<div class="scrollable">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="meta"></div>
|
||||||
|
<div class="list"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var base_url = '';
|
||||||
|
var repo_id = '';
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="http://laradock.io/javascripts/application.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/* Add headers to scrollspy */
|
||||||
|
var headers = document.getElementsByTagName("h2");
|
||||||
|
var scrollspy = document.getElementById('scrollspy');
|
||||||
|
|
||||||
|
if(scrollspy) {
|
||||||
|
if(headers.length > 0) {
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.setAttribute("class", "anchor");
|
||||||
|
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", headers[i].innerHTML);
|
||||||
|
a.innerHTML = headers[i].innerHTML;
|
||||||
|
|
||||||
|
li.appendChild(a)
|
||||||
|
scrollspy.appendChild(li);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Add permanent link next to the headers */
|
||||||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||||||
|
|
||||||
|
for(var i = 0; i < headers.length; i++) {
|
||||||
|
var a = document.createElement("a");
|
||||||
|
a.setAttribute("class", "headerlink");
|
||||||
|
a.setAttribute("href", "#" + headers[i].id);
|
||||||
|
a.setAttribute("title", "Permanent link")
|
||||||
|
a.innerHTML = "#";
|
||||||
|
headers[i].appendChild(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){
|
||||||
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
||||||
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
||||||
|
m.parentNode.insertBefore(a,m)
|
||||||
|
})(window, document,
|
||||||
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-37514928-9', 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
var buttons = document.querySelectorAll('a');
|
||||||
|
Array.prototype.map.call(buttons, function(item) {
|
||||||
|
if (item.host != document.location.host) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
var action = item.getAttribute('data-action') || 'follow';
|
||||||
|
ga('send', 'event', 'outbound', action, item.href);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var query = document.querySelector('.query');
|
||||||
|
query.addEventListener('blur', function() {
|
||||||
|
if (this.value) {
|
||||||
|
var path = document.location.pathname;
|
||||||
|
ga('send', 'pageview', path + '?q=' + this.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||||||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
35
docs/related-projects/index.xml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Related-projects on Laradock</title>
|
||||||
|
<link>http://laradock.io/related-projects/index.xml</link>
|
||||||
|
<description>Recent content in Related-projects on Laradock</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://laradock.io/related-projects/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Related Projects</title>
|
||||||
|
<link>http://laradock.io/related-projects/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://laradock.io/related-projects/</guid>
|
||||||
|
<description><p>Laradock related projects:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/lorinlee/laradock-cli">Laradock CLI</a> by <a href="https://github.com/lorinlee">LorinLee</a></li>
|
||||||
|
<li><a href="https://github.com/bagart/laradock_env">Laradock Env</a> by <a href="https://github.com/bagart">BAGArt</a></li>
|
||||||
|
<li><a href="https://github.com/poyhsiao/Klaradock">Klaradock</a> by <a href="https://github.com/poyhsiao">Kim Hsiao</a></li>
|
||||||
|
<li><a href="https://github.com/sifat-rahim/ansible-laradock-kubernetes">Ansible Laradock Kubernetes</a> by <a href="https://github.com/sifat-rahim">Sifat Rahim</a>
|
||||||
|
These Docker Compose projects have piqued our interest:</li>
|
||||||
|
<li><a href="https://github.com/ojhaujjwal/magedock">MageDock</a> by <a href="https://github.com/ojhaujjwal">Ujjwal Ojha</a></li>
|
||||||
|
<li><a href="https://github.com/scudelletti/rubydev-dock">RubyDev-Dock</a> by <a href="https://github.com/scudelletti">Diogo Scudelletti</a></li>
|
||||||
|
<li><a href="https://github.com/Osedea/nodock">NoDock</a> by <a href="https://github.com/Osedea">Osedea</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>If you want your project listed here, please open an issue.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
76
docs/sitemap.xml
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/introduction/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/getting-started/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/documentation/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/related-projects/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/help/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/contributing/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/license/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/contributing/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/documentation/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/getting-started/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/help/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/introduction/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/license/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/related-projects/</loc>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://laradock.io/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
</urlset>
|
1
docs/stylesheets/application.css
Normal file
105
docs/stylesheets/highlight/highlight.css
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
/*
|
||||||
|
* overwrite the current primary color of the
|
||||||
|
* theme that is used as fallback in codeblocks
|
||||||
|
*/
|
||||||
|
.article pre code {
|
||||||
|
color: rgba(0, 0, 0, 0.8) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
HIGHLIGHT.JS THEME
|
||||||
|
|
||||||
|
tweaked version of the Github theme
|
||||||
|
*/
|
||||||
|
|
||||||
|
.hljs {
|
||||||
|
display:block;
|
||||||
|
overflow-x:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-comment,
|
||||||
|
.hljs-quote {
|
||||||
|
color:#998;
|
||||||
|
font-style:italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-keyword,
|
||||||
|
.hljs-selector-tag,
|
||||||
|
.hljs-subst {
|
||||||
|
color:#333;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-number,
|
||||||
|
.hljs-literal,
|
||||||
|
.hljs-variable,
|
||||||
|
.hljs-template-variable,
|
||||||
|
.hljs-tag .hljs-attr {
|
||||||
|
color:teal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-string,
|
||||||
|
.hljs-doctag {
|
||||||
|
color:#d14;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-title,
|
||||||
|
.hljs-section,
|
||||||
|
.hljs-selector-id {
|
||||||
|
color:#900;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-subst {
|
||||||
|
font-weight:400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-type,
|
||||||
|
.hljs-class .hljs-title {
|
||||||
|
color:#458;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-tag,
|
||||||
|
.hljs-name,
|
||||||
|
.hljs-attribute {
|
||||||
|
color:navy;
|
||||||
|
font-weight:400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-regexp,
|
||||||
|
.hljs-link {
|
||||||
|
color:#009926;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-symbol,
|
||||||
|
.hljs-bullet {
|
||||||
|
color:#990073;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-built_in,
|
||||||
|
.hljs-builtin-name {
|
||||||
|
color:#0086b3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-meta {
|
||||||
|
color:#999;
|
||||||
|
font-weight:700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-deletion {
|
||||||
|
background:#fdd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-addition {
|
||||||
|
background:#dfd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-emphasis {
|
||||||
|
font-style:italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-strong {
|
||||||
|
font-weight:700;
|
||||||
|
}
|
1
docs/stylesheets/palettes.css
Normal file
11
docs/stylesheets/temporary.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/* This file only exists (temporarily) until the
|
||||||
|
custom styling can be replaced with the
|
||||||
|
implementation of the upstream project.
|
||||||
|
*/
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
padding: 0 20px;
|
||||||
|
margin: 0 0 20px;
|
||||||
|
font-size: inherit;
|
||||||
|
border-left: 5px solid #eee;
|
||||||
|
}
|
156
env-example
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
### Application
|
||||||
|
# Point to your application code, wish should be available at `/var/www`
|
||||||
|
APPLICATION=../
|
||||||
|
|
||||||
|
### PHP version (Does not apply for HHVM)
|
||||||
|
# PHP_VERSION=55
|
||||||
|
# PHP_VERSION=56
|
||||||
|
PHP_VERSION=70
|
||||||
|
|
||||||
|
### PHP interpreter
|
||||||
|
# PHP_INTERPRETER=hhvm
|
||||||
|
PHP_INTERPRETER=php-fpm
|
||||||
|
|
||||||
|
### WORKSPACE Container
|
||||||
|
WORKSPACE_INSTALL_XDEBUG=false
|
||||||
|
WORKSPACE_INSTALL_SOAP=false
|
||||||
|
WORKSPACE_INSTALL_MONGO=false
|
||||||
|
WORKSPACE_INSTALL_NODE=false
|
||||||
|
WORKSPACE_INSTALL_YARN=false
|
||||||
|
WORKSPACE_INSTALL_DRUSH=false
|
||||||
|
WORKSPACE_INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
|
WORKSPACE_INSTALL_INSTALL_V8JS_EXTENSION=false
|
||||||
|
WORKSPACE_COMPOSER_GLOBAL_INSTALL=false
|
||||||
|
WORKSPACE_INSTALL_WORKSPACE_SSH=false
|
||||||
|
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
|
||||||
|
WORKSPACE_INSTALL_DEPLOYER=false
|
||||||
|
WORKSPACE_INSTALL_LINUXBREW=false
|
||||||
|
WORKSPACE_INSTALL_MC=false
|
||||||
|
WORKSPACE_PUID=1000
|
||||||
|
WORKSPACE_PGID=1000
|
||||||
|
WORKSPACE_NODE_VERSION=stable
|
||||||
|
WORKSPACE_YARN_VERSION=latest
|
||||||
|
WORKSPACE_TIMEZONE=UTC
|
||||||
|
WORKSPACE_SSH_PORT=2222
|
||||||
|
|
||||||
|
### PHP_FPM Container
|
||||||
|
PHP_FPM_DOCKER_FILE=Dockerfile-70
|
||||||
|
PHP_FPM_INSTALL_XDEBUG=false
|
||||||
|
PHP_FPM_INSTALL_MONGO=false
|
||||||
|
PHP_FPM_INSTALL_SOAP=false
|
||||||
|
PHP_FPM_INSTALL_ZIP_ARCHIVE=false
|
||||||
|
PHP_FPM_INSTALL_BCMATH=false
|
||||||
|
PHP_FPM_INSTALL_PHPREDIS=false
|
||||||
|
PHP_FPM_INSTALL_MEMCACHED=false
|
||||||
|
PHP_FPM_INSTALL_OPCACHE=false
|
||||||
|
PHP_FPM_INSTALL_EXIF=false
|
||||||
|
PHP_FPM_INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
|
PHP_FPM_INSTALL_MYSQLI=false
|
||||||
|
PHP_FPM_INSTALL_TOKENIZER=false
|
||||||
|
PHP_FPM_INSTALL_INTL=false
|
||||||
|
|
||||||
|
### NGINX Container
|
||||||
|
NGINX_HOST_HTTP_PORT=80
|
||||||
|
NGINX_HOST_HTTPS_PORT=443
|
||||||
|
NGINX_HOST_LOG_PATH=./logs/nginx/
|
||||||
|
NGINX_SITES_PATH=./nginx/sites/
|
||||||
|
|
||||||
|
### APACHE Container
|
||||||
|
APACHE_HOST_HTTP_PORT=80
|
||||||
|
APACHE_HOST_HTTPS_PORT=443
|
||||||
|
APACHE2_PHP_SOCKET=php-fpm:9000
|
||||||
|
APACHE_HOST_LOG_PATH=./logs/apache2
|
||||||
|
PHP_SOCKET=php-fpm:9000
|
||||||
|
|
||||||
|
### MYSQL Container
|
||||||
|
MYSQL_DATABASE=default
|
||||||
|
MYSQL_USER=default
|
||||||
|
MYSQL_PASSWORD=secret
|
||||||
|
MYSQL_PORT=3306
|
||||||
|
MYSQL_ROOT_PASSWORD=root
|
||||||
|
|
||||||
|
### MSSQL Container
|
||||||
|
MSSQL_DATABASE=homestead
|
||||||
|
MSSQL_PASSWORD=yourStrong(!)Password
|
||||||
|
MSSQL_PORT=1433
|
||||||
|
|
||||||
|
### MARIADB Container
|
||||||
|
MARIADB_DATABASE=default
|
||||||
|
MARIADB_USER=default
|
||||||
|
MARIADB_PASSWORD=secret
|
||||||
|
MARIADB_PORT=3306
|
||||||
|
MARIADB_ROOT_PASSWORD=root
|
||||||
|
|
||||||
|
### POSTGRES Container
|
||||||
|
POSTGRES_DB=default
|
||||||
|
POSTGRES_USER=default
|
||||||
|
POSTGRES_PASSWORD=secret
|
||||||
|
POSTGRES_PORT=5432
|
||||||
|
|
||||||
|
### RABBITMQ Container
|
||||||
|
RABBITMQ_NODE_HOST_PORT=5672
|
||||||
|
RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672
|
||||||
|
RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671
|
||||||
|
RABBITMQ_DEFAULT_USER=guest
|
||||||
|
RABBITMQ_DEFAULT_PASS=guest
|
||||||
|
|
||||||
|
### ELASTICSEARCH Container
|
||||||
|
ELASTICSEARCH_HOST_HTTP_PORT=9200
|
||||||
|
ELASTICSEARCH_HOST_TRANSPORT_PORT=9300
|
||||||
|
|
||||||
|
### MEMCACHED Container
|
||||||
|
MEMCACHED_HOST_PORT=11211
|
||||||
|
|
||||||
|
### BEANSTALKD CONSOLE
|
||||||
|
BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console
|
||||||
|
BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console
|
||||||
|
BEANSTALKD_CONSOLE_HOST_PORT=2080
|
||||||
|
|
||||||
|
### BEANSTALKD Container
|
||||||
|
BEANSTALKD_HOST_PORT=11300
|
||||||
|
|
||||||
|
### SELENIUM Container
|
||||||
|
SELENIUM_PORT=4444
|
||||||
|
|
||||||
|
### MINIO Container
|
||||||
|
MINIO_PORT=9000
|
||||||
|
|
||||||
|
### PHP MY ADMIN Container
|
||||||
|
# PMA_DB_ENGINE=mariadb
|
||||||
|
PMA_DB_ENGINE=mysql
|
||||||
|
PMA_USER=default
|
||||||
|
PMA_PASSWORD=secret
|
||||||
|
PMA_ROOT_PASSWORD=secret
|
||||||
|
PMA_PORT=88
|
||||||
|
|
||||||
|
### ADMINER Container
|
||||||
|
ADM_PORT=88
|
||||||
|
|
||||||
|
### VARNISH Container
|
||||||
|
VARNISH_CONFIG=/etc/varnish/default.vcl
|
||||||
|
VARNISH_PORT=8080
|
||||||
|
VARNISH_BACKEND_PORT=8888
|
||||||
|
VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600
|
||||||
|
|
||||||
|
### Varnish Proxy 1 Container
|
||||||
|
VARNISH_PROXY1_CACHE_SIZE=128m
|
||||||
|
VARNISH_PROXY1_BACKEND_HOST=workspace
|
||||||
|
VARNISH_PROXY1_SERVER=SERVER1
|
||||||
|
|
||||||
|
### Varnish Proxy 2 Container
|
||||||
|
VARNISH_PROXY2_CACHE_SIZE=128m
|
||||||
|
VARNISH_PROXY2_BACKEND_HOST=workspace
|
||||||
|
VARNISH_PROXY2_SERVER=SERVER2
|
||||||
|
|
||||||
|
### HAPROXY Container
|
||||||
|
HAPROXY_HOST_HTTP_PORT=8085
|
||||||
|
|
||||||
|
### MISC
|
||||||
|
# Replace with your Docker Host IP (will be appended to /etc/hosts)
|
||||||
|
DOCKER_HOST_IP=10.0.75.1
|
||||||
|
# The Remote Interpreter entry matching name `laradock`
|
||||||
|
PHP_IDE_CONFIG=serverName=laradock
|
||||||
|
# Fix for windows users to make sure the application path works.
|
||||||
|
COMPOSE_CONVERT_WINDOWS_PATHS=1
|
||||||
|
|
||||||
|
### to be continue neo4j mongo rethinkdb redis aerospike pgadmin ...
|
5
haproxy/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM dockercloud/haproxy:latest
|
||||||
|
|
||||||
|
MAINTAINER ZeroC0D3 Team<zeroc0d3.team@gmail.com>
|
||||||
|
|
||||||
|
EXPOSE 80
|
@ -1,5 +1,7 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
|
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
|
||||||
|
|
||||||
RUN apt-get update -y \
|
RUN apt-get update -y \
|
||||||
|
7
mailhog/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM mailhog/mailhog
|
||||||
|
|
||||||
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
|
CMD ["Mailhog"]
|
||||||
|
|
||||||
|
EXPOSE 1025 8025
|