Compare commits

...

24 Commits

Author SHA1 Message Date
c1a2f4b2a8 Merge pull request #844 from zuohuadong/master
Fix git's BUG & add plugin
2017-04-21 23:53:25 -04:00
0b11b874d2 add php71.ini 2017-04-21 23:51:52 -04:00
80991483bc default php to 7.1 2017-04-21 22:37:59 -04:00
b1c546efc9 update base images version for workspace and php-fpm 2017-04-21 22:37:48 -04:00
f714954033 Fix git's BUG & add plugin
1. Repair git can not synchronize the BUG.
2. Increase the CDN query real IP, cross-domain request plugin.

you can use git  xxx.com  to  sync code in caddy.
2017-04-22 10:19:31 +08:00
7614b1f626 Merge pull request #2 from laradock/master
update
2017-04-22 10:11:55 +08:00
a44cae4408 Merge pull request #841 from zuohuadong/master
update cadddy version to 0.10.0
2017-04-21 13:48:07 -04:00
bdc6ea851f update caddy to 0.10.0 2017-04-21 14:37:51 +08:00
a5adf85e2d Merge pull request #1 from laradock/master
更新到最新
2017-04-21 14:35:15 +08:00
0f7b6bab6b Merge pull request #836 from dtunes/feature_blackfire_container
Feature blackfire container
2017-04-20 19:11:58 -04:00
39f0eaf328 Merge branch 'master' into feature_blackfire_container 2017-04-21 10:30:45 +12:00
e92286c381 more styling for the .env 2017-04-21 10:15:41 +12:00
e022e7163f hopfully making the .env file easier to edit! 2017-04-21 10:15:36 +12:00
5c95bb3a0f Run apt-get update before installing intl extension 2017-04-21 10:13:53 +12:00
bce05e4b59 little cleanup 2017-04-21 10:13:53 +12:00
4ce1d7f64a upgrade base images for php-fpm and workspace.
These duplicated Dockerfiles will be merged onto single Dockerfile
later. The same Dockerfile will check for the PHP version variable
and install the necessary softwar's accordingly.
2017-04-21 10:13:53 +12:00
d0effd9468 Fixing Unable to connect to postgresql server 2017-04-21 10:13:53 +12:00
5aab3add44 Added blackfire.io 2017-04-21 10:02:54 +12:00
2a7c11a6bf more styling for the .env 2017-04-20 14:34:42 -04:00
1a0f978625 hopfully making the .env file easier to edit! 2017-04-20 14:09:57 -04:00
3a2845a00d Merge branch 'master' of https://github.com/Laradock/laradock
* 'master' of https://github.com/Laradock/laradock:
  Run apt-get update before installing intl extension
2017-04-20 13:55:21 -04:00
fef6ec86b3 little cleanup 2017-04-20 13:55:09 -04:00
a7624a7034 Merge branch 'master' of https://github.com/laradock/laradock 2017-04-20 08:41:50 +12:00
393d20472a Included Percona in the docs 2017-04-18 12:14:26 +12:00
24 changed files with 2262 additions and 154 deletions

View File

@ -10,7 +10,7 @@ env:
- PHP_VERSION=71 - PHP_VERSION=71
- HUGO_VERSION=0.19 - HUGO_VERSION=0.19
script: ./_scripts/travis-build.sh script: ./travis-build.sh
deploy: deploy:
provider: pages provider: pages

View File

@ -336,11 +336,11 @@ By installing xDebug, you are enabling it to run on startup by default.
To control the behavior of xDebug (in the `php-fpm` Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose): To control the behavior of xDebug (in the `php-fpm` Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):
- Stop xDebug from running by default: `./xdebugPhpFpm stop`. - Stop xDebug from running by default: `.php-fpm/xdebug stop`.
- Start xDebug by default: `./xdebugPhpFpm start`. - Start xDebug by default: `.php-fpm/xdebug start`.
- See the status: `./xdebugPhpFpm status`. - See the status: `.php-fpm/xdebug status`.
Note: If `./xdebugPhpFpm` doesn't execute and gives `Permission Denied` error the problem can be that file `xdebugPhpFpm` doesn't have execution access. This can be fixed by running `chmod` command with desired access permissions. Note: If `.php-fpm/xdebug` doesn't execute and gives `Permission Denied` error the problem can be that file `xdebug` doesn't have execution access. This can be fixed by running `chmod` command with desired access permissions.

View File

@ -138,7 +138,7 @@ You can rename the config files, project folders and domains as you like, just m
If you are using **Docker Toolbox** (VM), do one of the following: 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) - 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)* - Use Laradock v3.\*. Visit the [Laradock-ToolBox](https://github.com/laradock/laradock/tree/Laradock-ToolBox) branch. *(outdated)*
<br> <br>

View File

@ -45,7 +45,7 @@ $root@server:~# docker
$root@server:~# apt-get install git $root@server:~# apt-get install git
$root@server:~# git clone https://github.com/laravel/laravel $root@server:~# git clone https://github.com/laravel/laravel
$root@server:~# cd laravel $root@server:~# cd laravel
$root@server:~/laravel/ git submodule add https://github.com/LaraDock/laradock.git $root@server:~/laravel/ git submodule add https://github.com/Laradock/laradock.git
$root@server:~/laravel/ cd laradock $root@server:~/laravel/ cd laradock
``` ```
@ -56,7 +56,7 @@ $root@server:~/laravel/laradock# curl -L https://github.com/docker/compose/relea
$root@server:~/chmod +x /usr/local/bin/docker-compose $root@server:~/chmod +x /usr/local/bin/docker-compose
``` ```
## Create Your LaraDock Containers ## Create Your Laradock Containers
``` ```
$root@server:~/laravel/laradock# docker-compose up -d nginx mysql $root@server:~/laravel/laradock# docker-compose up -d nginx mysql
@ -248,7 +248,7 @@ View your Site in the Browser Securely Using HTTPS (https://yourdomain.com)
- [Installation](#Installation) - [Installation](#Installation)
- [Customize laradock/docker-compose.yml](#CustomizeDockerCompose) - [Customize laradock/docker-compose.yml](#CustomizeDockerCompose)
- [Clean House](#InstallCleanHouse) - [Clean House](#InstallCleanHouse)
- [LaraDock Dial Tone](#InstallLaraDockDialTone) - [Laradock Dial Tone](#InstallLaradockDialTone)
- [hosts](#AddToHosts) - [hosts](#AddToHosts)
- [Firewall](#FireWall) - [Firewall](#FireWall)
- [Enable xDebug on php-fpm](#enablePhpXdebug) - [Enable xDebug on php-fpm](#enablePhpXdebug)
@ -265,14 +265,14 @@ View your Site in the Browser Securely Using HTTPS (https://yourdomain.com)
<a name="Intro"></a> <a name="Intro"></a>
## Intro ## Intro
Wiring up [Laravel](https://laravel.com/), [LaraDock](https://github.com/LaraDock/laradock) [Laravel+Docker] and [PHPStorm](https://www.jetbrains.com/phpstorm/) to play nice together complete with remote xdebug'ing as icing on top! Although this guide is based on `PHPStorm Windows`, Wiring up [Laravel](https://laravel.com/), [Laradock](https://github.com/Laradock/laradock) [Laravel+Docker] and [PHPStorm](https://www.jetbrains.com/phpstorm/) to play nice together complete with remote xdebug'ing as icing on top! Although this guide is based on `PHPStorm Windows`,
you should be able to adjust accordingly. This guide was written based on Docker for Windows Native. you should be able to adjust accordingly. This guide was written based on Docker for Windows Native.
<a name="Installation"></a> <a name="Installation"></a>
## Installation ## Installation
- This guide assumes the following: - This guide assumes the following:
- you have already installed and are familiar with Laravel, LaraDock and PHPStorm. - you have already installed and are familiar with Laravel, Laradock and PHPStorm.
- you have installed Laravel as a parent of `laradock`. This guide assumes `/c/_dk/laravel`. - you have installed Laravel as a parent of `laradock`. This guide assumes `/c/_dk/laravel`.
<a name="AddToHosts"></a> <a name="AddToHosts"></a>
@ -332,7 +332,7 @@ xdebug.cli_color=1
<a name="InstallCleanHouse"></a> <a name="InstallCleanHouse"></a>
### Need to clean house first? ### Need to clean house first?
Make sure you are starting with a clean state. For example, do you have other LaraDock containers and images? Make sure you are starting with a clean state. For example, do you have other Laradock containers and images?
Here are a few things I use to clean things up. Here are a few things I use to clean things up.
- Delete all containers using `grep laradock_` on the names, see: [Remove all containers based on docker image name](https://linuxconfig.org/remove-all-containners-based-on-docker-image-name). - Delete all containers using `grep laradock_` on the names, see: [Remove all containers based on docker image name](https://linuxconfig.org/remove-all-containners-based-on-docker-image-name).
@ -340,7 +340,7 @@ Here are a few things I use to clean things up.
- Delete all images containing `laradock`. - Delete all images containing `laradock`.
`docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}` `docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}`
**Note:** This will only delete images that were built with `LaraDock`, **NOT** `laradock/*` which are pulled down by `LaraDock` such as `laradock/workspace`, etc. **Note:** This will only delete images that were built with `Laradock`, **NOT** `laradock/*` which are pulled down by `Laradock` such as `laradock/workspace`, etc.
**Note:** Some may fail with: **Note:** Some may fail with:
`Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images` `Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images`
@ -359,7 +359,7 @@ Here are a few things I use to clean things up.
} }
``` ```
- If you frequently switch configurations for LaraDock, you may find that adding the following and added to your `.bashrc` or equivalent useful: - If you frequently switch configurations for Laradock, you may find that adding the following and added to your `.bashrc` or equivalent useful:
``` ```
# remove laravel* containers # remove laravel* containers
# remove laravel_* images # remove laravel_* images
@ -383,7 +383,7 @@ dcleanlaradockfunction()
alias dcleanlaradock=dcleanlaradockfunction alias dcleanlaradock=dcleanlaradockfunction
``` ```
<a name="InstallLaraDockDialTone"></a> <a name="InstallLaradockDialTone"></a>
## Let's get a dial-tone with Laravel ## Let's get a dial-tone with Laravel
``` ```
@ -408,7 +408,7 @@ laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222-
<a name="enablePhpXdebug"></a> <a name="enablePhpXdebug"></a>
## Enable xDebug on php-fpm ## Enable xDebug on php-fpm
In a host terminal sitting in the laradock folder, run: `./xdebugPhpFpm status` In a host terminal sitting in the laradock folder, run: `.php-fpm/xdebug status`
You should see something like the following: You should see something like the following:
``` ```
xDebug status xDebug status
@ -418,7 +418,7 @@ Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
``` ```
Other commands include `./xdebugPhpFpm start | stop`. Other commands include `.php-fpm/xdebug start | stop`.
If you have enabled `xdebug=true` in `docker-compose.yml/php-fpm`, `xdebug` will already be running when If you have enabled `xdebug=true` in `docker-compose.yml/php-fpm`, `xdebug` will already be running when
`php-fpm` is started and listening for debug info on port 9000. `php-fpm` is started and listening for debug info on port 9000.
@ -503,9 +503,9 @@ If you have enabled `xdebug=true` in `docker-compose.yml/php-fpm`, `xdebug` will
<a name="UsagePHPStormDebugSite"></a> <a name="UsagePHPStormDebugSite"></a>
### Debug WebSite ### Debug WebSite
- In case xDebug is disabled, from the `laradock` folder run: - In case xDebug is disabled, from the `laradock` folder run:
`./xdebugPhpFpm start`. `.php-fpm/xdebug start`.
- To switch xdebug off, run: - To switch xdebug off, run:
`./xdebugPhpFpm stop` `.php-fpm/xdebug stop`
- Start Remote Debugging - Start Remote Debugging
- ![DebugRemoteOn](photos/PHPStorm/DebugRemoteOn.png) - ![DebugRemoteOn](photos/PHPStorm/DebugRemoteOn.png)

View File

@ -93,7 +93,7 @@ PHP FPM - HHVM
- **Message Queuing:** - **Message Queuing:**
Beanstalkd - Beanstalkd Console - RabbitMQ - RabbitMQ Console - PHP Worker Beanstalkd - Beanstalkd Console - RabbitMQ - RabbitMQ Console - PHP Worker
- **Tools:** - **Tools:**
HAProxy - Jenkins - ElasticSearch - Selenium - Certbot - Mailhog - Minio - Varnish - PhpMyAdmin - Adminer - PgAdmin - MailHog... HAProxy - Jenkins - ElasticSearch - Selenium - Certbot - Mailhog - Minio - Varnish - PhpMyAdmin - Adminer - PgAdmin - MailHog - [Blackfire](https://blackfire.io)...
Laradock introduces the **Workspace** Image, as a development environment. Laradock introduces the **Workspace** Image, as a development environment.
It contains a rich set of helpful tools, all pre-configured to work and integrate with almost any combination of Containers and tools you may choose. It contains a rich set of helpful tools, all pre-configured to work and integrate with almost any combination of Containers and tools you may choose.

View File

@ -1,14 +1,14 @@
# LaraDock # Laradock
[![forthebadge](http://forthebadge.com/images/badges/built-by-developers.svg)](http://zalt.me) [![forthebadge](http://forthebadge.com/images/badges/built-by-developers.svg)](http://zalt.me)
[![Gitter](https://badges.gitter.im/LaraDock/laradock.svg)](https://gitter.im/LaraDock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Gitter](https://badges.gitter.im/Laradock/laradock.svg)](https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
LaraDock 能够帮你在 **Docker** 上快速搭建 **Laravel** 应用。 Laradock 能够帮你在 **Docker** 上快速搭建 **Laravel** 应用。
就像 Laravel Homestead 一样,但是 Docker 替换了 Vagrant。 就像 Laravel Homestead 一样,但是 Docker 替换了 Vagrant。
> 先在使用 LaraDock然后再学习它们。 > 先在使用 Laradock然后再学习它们。
## 目录 ## 目录
- [Intro](#Intro) - [Intro](#Intro)
@ -17,7 +17,7 @@ LaraDock 能够帮你在 **Docker** 上快速搭建 **Laravel** 应用。
- [What is Docker](#what-is-docker) - [What is Docker](#what-is-docker)
- [What is Laravel](#what-is-laravel) - [What is Laravel](#what-is-laravel)
- [Why Docker not Vagrant](#why-docker-not-vagrant) - [Why Docker not Vagrant](#why-docker-not-vagrant)
- [LaraDock VS Homestead](#laradock-vs-homestead) - [Laradock VS Homestead](#laradock-vs-homestead)
- [Demo Video](#Demo) - [Demo Video](#Demo)
- [Requirements](#Requirements) - [Requirements](#Requirements)
- [Installation](#Installation) - [Installation](#Installation)
@ -49,27 +49,27 @@ LaraDock 能够帮你在 **Docker** 上快速搭建 **Laravel** 应用。
- [Install Prestissimo](#Install-Prestissimo) - [Install Prestissimo](#Install-Prestissimo)
- [Install Node + NVM](#Install-Node) - [Install Node + NVM](#Install-Node)
- [Debugging](#debugging) - [Debugging](#debugging)
- [Upgrading LaraDock](#upgrading-laradock) - [Upgrading Laradock](#upgrading-laradock)
- [Help & Questions](#Help) - [Help & Questions](#Help)
<a name="Intro"></a> <a name="Intro"></a>
## 介绍 ## 介绍
LaraDock 努力简化创建开发环境过程。 Laradock 努力简化创建开发环境过程。
它包含预包装 Docker 镜像,提供你一个美妙的开发环境而不需要安装 PHP, NGINX, MySQL 和其他任何软件在你本地机器上。 它包含预包装 Docker 镜像,提供你一个美妙的开发环境而不需要安装 PHP, NGINX, MySQL 和其他任何软件在你本地机器上。
**使用概览:** **使用概览:**
让我们了解使用它安装 `NGINX`, `PHP`, `Composer`, `MySQL``Redis`,然后运行 `Laravel` 让我们了解使用它安装 `NGINX`, `PHP`, `Composer`, `MySQL``Redis`,然后运行 `Laravel`
1. 将 LaraDock 放到你的 Laravel 项目中: 1. 将 Laradock 放到你的 Laravel 项目中:
```bash ```bash
git clone https://github.com/laradock/laradock.git git clone https://github.com/laradock/laradock.git
``` ```
2. 进入 LaraDock 目录,然后运行这些容器。 2. 进入 Laradock 目录,然后运行这些容器。
```bash ```bash
docker-compose up -d nginx mysql redis docker-compose up -d nginx mysql redis
@ -142,22 +142,22 @@ docker-compose up -d nginx mysql redis
最重要的是 Docker 可以运行在开发和生产(相同环境无处不在)。Vagrant 是专为开发,(所以在生产环境你必须每一次重建您的服务器)。 最重要的是 Docker 可以运行在开发和生产(相同环境无处不在)。Vagrant 是专为开发,(所以在生产环境你必须每一次重建您的服务器)。
<a name="laradock-vs-homestead"></a> <a name="laradock-vs-homestead"></a>
### LaraDock Homestead 对比 ### Laradock Homestead 对比
LaraDock and [Homestead](https://laravel.com/docs/master/homestead) 给你一个完整的虚拟开发环境。(不需要安装和配置软件在你自己的每一个操作系统)。 Laradock and [Homestead](https://laravel.com/docs/master/homestead) 给你一个完整的虚拟开发环境。(不需要安装和配置软件在你自己的每一个操作系统)。
Homestead 是一个工具,为你控制虚拟机(使用 Homestead 特殊命令)。Vagrant 可以管理你的管理虚容器。 Homestead 是一个工具,为你控制虚拟机(使用 Homestead 特殊命令)。Vagrant 可以管理你的管理虚容器。
运行一个虚拟容器比运行一整个虚拟机快多了 **LaraDock 比 Homestead 快多了** 运行一个虚拟容器比运行一整个虚拟机快多了 **Laradock 比 Homestead 快多了**
<a name="Demo"></a> <a name="Demo"></a>
## 演示视频 ## 演示视频
还有什么比**演示视频**好: 还有什么比**演示视频**好:
- LaraDock [v4.0](https://www.youtube.com/watch?v=TQii1jDa96Y) - 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)
<a name="Requirements"></a> <a name="Requirements"></a>
## 依赖 ## 依赖
@ -168,7 +168,7 @@ Homestead 是一个工具,为你控制虚拟机(使用 Homestead 特殊命令)
<a name="Installation"></a> <a name="Installation"></a>
## 安装 ## 安装
1 - 克隆 `LaraDock` 仓库: 1 - 克隆 `Laradock` 仓库:
**A)** 如果你已经有一个 Laravel 项目,克隆这个仓库在到 `Laravel` 根目录 **A)** 如果你已经有一个 Laravel 项目,克隆这个仓库在到 `Laravel` 根目录
@ -189,9 +189,9 @@ 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**
1 - 运行容器: *(在运行 `docker-compose` 命令之前,确认你在 `laradock` 目录中* 1 - 运行容器: *(在运行 `docker-compose` 命令之前,确认你在 `laradock` 目录中*
@ -377,7 +377,7 @@ composer create-project laravel/laravel my-cool-app "5.2.*"
3 - 编辑 `docker-compose.yml` 映射新的应用目录: 3 - 编辑 `docker-compose.yml` 映射新的应用目录:
系统默认 LaraDock 假定 Laravel 应用在 laradock 的父级目录中 系统默认 Laradock 假定 Laravel 应用在 laradock 的父级目录中
更新 Laravel 应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下: 更新 Laravel 应用在 `my-cool-app` 目录中, 我们需要用 `../my-cool-app/:/var/www`替换 `../:/var/www` , 如下:
@ -394,7 +394,7 @@ composer create-project laravel/laravel my-cool-app "5.2.*"
cd my-cool-app cd my-cool-app
``` ```
5 - 回到 LaraDock 安装步骤,看看如何编辑 `.env` 的文件。 5 - 回到 Laradock 安装步骤,看看如何编辑 `.env` 的文件。
<a name="Run-Artisan-Commands"></a> <a name="Run-Artisan-Commands"></a>
### 运行 Artisan 命令 ### 运行 Artisan 命令
@ -477,7 +477,7 @@ composer require predis/predis:^1.0
5 - 你可以用以下代码在 Laravel 中手动测试: 5 - 你可以用以下代码在 Laravel 中手动测试:
```php ```php
\Cache::store('redis')->put('LaraDock', 'Awesome', 10); \Cache::store('redis')->put('Laradock', 'Awesome', 10);
``` ```
<a name="Use-Mongo"></a> <a name="Use-Mongo"></a>
@ -766,15 +766,15 @@ sudo chmod -R 777 storage bootstrap/cache
确保你想运行的服务端口(80, 3306, etc.)不是已经被其他程序使用,例如 `apache`/`httpd` 服务或其他安装的开发工具 确保你想运行的服务端口(80, 3306, etc.)不是已经被其他程序使用,例如 `apache`/`httpd` 服务或其他安装的开发工具
<a name="upgrading-laradock"></a> <a name="upgrading-laradock"></a>
### LaraDock 升级 ### Laradock 升级
从 Docker Toolbox (VirtualBox) 移动到 Docker Native (for Mac/Windows),需要从 LaraDock v3.* 升级到 v4.*: 从 Docker Toolbox (VirtualBox) 移动到 Docker Native (for Mac/Windows),需要从 Laradock v3.* 升级到 v4.*:
1. 停止 Docker 虚拟机 `docker-machine stop {default}` 1. 停止 Docker 虚拟机 `docker-machine stop {default}`
2. 安装 Docker [Mac](https://docs.docker.com/docker-for-mac/) 或 [Windows](https://docs.docker.com/docker-for-windows/). 2. 安装 Docker [Mac](https://docs.docker.com/docker-for-mac/) 或 [Windows](https://docs.docker.com/docker-for-windows/).
3. 升级 LaraDock 到 `v4.*.*` (`git pull origin master`) 3. 升级 Laradock 到 `v4.*.*` (`git pull origin master`)
4. 像之前一样使用 LaraDock: `docker-compose up -d nginx mysql`. 4. 像之前一样使用 Laradock: `docker-compose up -d nginx mysql`.
**说明:** 如果你面临任何上面的问题的最后一步:重建你所有的容器 **说明:** 如果你面临任何上面的问题的最后一步:重建你所有的容器
```bash ```bash
@ -791,9 +791,9 @@ docker-compose build --no-cache
<a name="Help"></a> <a name="Help"></a>
## 帮助 & 问题 ## 帮助 & 问题
从聊天室 [Gitter](https://gitter.im/LaraDock/laradock) 社区获取帮助和支持. 从聊天室 [Gitter](https://gitter.im/Laradock/laradock) 社区获取帮助和支持.
你也可以打开 Github 上的 [issue](https://github.com/laradock/laradock/issues) (将被贴上问题和答案) 或与大家讨论 [Gitter](https://gitter.im/LaraDock/laradock). 你也可以打开 Github 上的 [issue](https://github.com/laradock/laradock/issues) (将被贴上问题和答案) 或与大家讨论 [Gitter](https://gitter.im/Laradock/laradock).
Docker 或 Laravel 的特别帮助,你可以在 [Codementor.io](https://www.codementor.io/mahmoudz) 上直接和项目创始人在线沟通 Docker 或 Laravel 的特别帮助,你可以在 [Codementor.io](https://www.codementor.io/mahmoudz) 上直接和项目创始人在线沟通

View File

@ -2,17 +2,17 @@ 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.5 ENV caddy_version=0.10.0
LABEL caddy_version="$caddy_version" architecture="amd64" LABEL caddy_version="$caddy_version" architecture="amd64"
RUN apk update \ RUN apk update \
&& apk upgrade \ && apk upgrade \
&& apk add tar curl && apk add tar curl git
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://caddyserver.com/download/build?os=linux&arch=amd64&features=cloudflare%2Cdigitalocean%2Cdnsimple%2Cdyn%2Cgooglecloud%2Clinode%2Croute53" \ "https://caddyserver.com/download/linux/amd64?plugins=http.cgi,http.cors,http.expires,http.filemanager,http.git,http.ipfilter,http.realip,tls.dns.cloudflare,tls.dns.digitalocean,tls.dns.dnspod,tls.dns.dyn,tls.dns.googlecloud,tls.dns.linode,tls.dns.namecheap,tls.dns.ovh,tls.dns.route53,tls.dns.vultr" \
| tar --no-same-owner -C /usr/bin/ -xz caddy \ | tar --no-same-owner -C /usr/bin/ -xz caddy \
&& mv /usr/bin/caddy /usr/bin/caddy \ && mv /usr/bin/caddy /usr/bin/caddy \
&& chmod 0755 /usr/bin/caddy && chmod 0755 /usr/bin/caddy

View File

@ -16,6 +16,7 @@ services:
context: ./workspace context: ./workspace
args: args:
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG} - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP} - INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO} - INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE} - INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
@ -34,6 +35,8 @@ services:
- NODE_VERSION=${WORKSPACE_NODE_VERSION} - NODE_VERSION=${WORKSPACE_NODE_VERSION}
- YARN_VERSION=${WORKSPACE_YARN_VERSION} - YARN_VERSION=${WORKSPACE_YARN_VERSION}
- TZ=${WORKSPACE_TIMEZONE} - TZ=${WORKSPACE_TIMEZONE}
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
dockerfile: "Dockerfile-${PHP_VERSION}" dockerfile: "Dockerfile-${PHP_VERSION}"
volumes_from: volumes_from:
- applications - applications
@ -53,6 +56,7 @@ services:
context: ./php-fpm context: ./php-fpm
args: args:
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG} - INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
- INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP} - INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP}
- INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO} - INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
- INSTALL_ZIP_ARCHIVE=${PHP_FPM_INSTALL_ZIP_ARCHIVE} - INSTALL_ZIP_ARCHIVE=${PHP_FPM_INSTALL_ZIP_ARCHIVE}
@ -115,6 +119,18 @@ services:
- frontend - frontend
- backend - backend
### Blackfire Container #################################
blackfire:
image: blackfire/blackfire
environment:
- BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID}
- BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN}
depends_on:
- php-fpm
networks:
- backend
### Apache Server Container ################################# ### Apache Server Container #################################
apache2: apache2:

View File

@ -607,12 +607,12 @@ xdebug.remote_connect_back=1
<p>To control the behavior of xDebug (in the <code>php-fpm</code> Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):</p> <p>To control the behavior of xDebug (in the <code>php-fpm</code> Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):</p>
<ul> <ul>
<li>Stop xDebug from running by default: <code>./xdebugPhpFpm stop</code>.</li> <li>Stop xDebug from running by default: <code>.php-fpm/xdebug stop</code>.</li>
<li>Start xDebug by default: <code>./xdebugPhpFpm start</code>.</li> <li>Start xDebug by default: <code>.php-fpm/xdebug start</code>.</li>
<li>See the status: <code>./xdebugPhpFpm status</code>.</li> <li>See the status: <code>.php-fpm/xdebug status</code>.</li>
</ul> </ul>
<p>Note: If <code>./xdebugPhpFpm</code> doesn&rsquo;t execute and gives <code>Permission Denied</code> error the problem can be that file <code>xdebugPhpFpm</code> doesn&rsquo;t have execution access. This can be fixed by running <code>chmod</code> command with desired access permissions.</p> <p>Note: If <code>.php-fpm/xdebug</code> doesn&rsquo;t execute and gives <code>Permission Denied</code> error the problem can be that file <code>xdebug</code> doesn&rsquo;t have execution access. This can be fixed by running <code>chmod</code> command with desired access permissions.</p>
<p><br> <p><br>
<a name="Install-Deployer"></a></p> <a name="Install-Deployer"></a></p>

View File

@ -288,12 +288,12 @@ xdebug.remote_connect_back=1
&lt;p&gt;To control the behavior of xDebug (in the &lt;code&gt;php-fpm&lt;/code&gt; Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):&lt;/p&gt; &lt;p&gt;To control the behavior of xDebug (in the &lt;code&gt;php-fpm&lt;/code&gt; Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Stop xDebug from running by default: &lt;code&gt;./xdebugPhpFpm stop&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;Stop xDebug from running by default: &lt;code&gt;.php-fpm/xdebug stop&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Start xDebug by default: &lt;code&gt;./xdebugPhpFpm start&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;Start xDebug by default: &lt;code&gt;.php-fpm/xdebug start&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;See the status: &lt;code&gt;./xdebugPhpFpm status&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;See the status: &lt;code&gt;.php-fpm/xdebug status&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
&lt;p&gt;Note: If &lt;code&gt;./xdebugPhpFpm&lt;/code&gt; doesn&amp;rsquo;t execute and gives &lt;code&gt;Permission Denied&lt;/code&gt; error the problem can be that file &lt;code&gt;xdebugPhpFpm&lt;/code&gt; doesn&amp;rsquo;t have execution access. This can be fixed by running &lt;code&gt;chmod&lt;/code&gt; command with desired access permissions.&lt;/p&gt; &lt;p&gt;Note: If &lt;code&gt;.php-fpm/xdebug&lt;/code&gt; doesn&amp;rsquo;t execute and gives &lt;code&gt;Permission Denied&lt;/code&gt; error the problem can be that file &lt;code&gt;xdebug&lt;/code&gt; doesn&amp;rsquo;t have execution access. This can be fixed by running &lt;code&gt;chmod&lt;/code&gt; command with desired access permissions.&lt;/p&gt;
&lt;p&gt;&lt;br&gt; &lt;p&gt;&lt;br&gt;
&lt;a name=&#34;Install-Deployer&#34;&gt;&lt;/a&gt;&lt;/p&gt; &lt;a name=&#34;Install-Deployer&#34;&gt;&lt;/a&gt;&lt;/p&gt;

View File

@ -472,7 +472,7 @@
<ul> <ul>
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li> <li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li>
<li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/LaraDock-ToolBox">LaraDock-ToolBox</a> branch. <em>(outdated)</em></li> <li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Laradock-ToolBox</a> branch. <em>(outdated)</em></li>
</ul> </ul>
<p><br></p> <p><br></p>

View File

@ -153,7 +153,7 @@
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Upgrade to Docker &lt;a href=&#34;https://www.docker.com/products/docker&#34;&gt;Native&lt;/a&gt; for Mac/Windows (Recommended). Check out &lt;a href=&#34;http://laradock.io/documentation/#upgrading-laradock&#34;&gt;Upgrading Laradock&lt;/a&gt;&lt;/li&gt; &lt;li&gt;Upgrade to Docker &lt;a href=&#34;https://www.docker.com/products/docker&#34;&gt;Native&lt;/a&gt; for Mac/Windows (Recommended). Check out &lt;a href=&#34;http://laradock.io/documentation/#upgrading-laradock&#34;&gt;Upgrading Laradock&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Use Laradock v3.*. Visit the &lt;a href=&#34;https://github.com/laradock/laradock/tree/LaraDock-ToolBox&#34;&gt;LaraDock-ToolBox&lt;/a&gt; branch. &lt;em&gt;(outdated)&lt;/em&gt;&lt;/li&gt; &lt;li&gt;Use Laradock v3.*. Visit the &lt;a href=&#34;https://github.com/laradock/laradock/tree/Laradock-ToolBox&#34;&gt;Laradock-ToolBox&lt;/a&gt; branch. &lt;em&gt;(outdated)&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;&lt;br&gt;&lt;/p&gt;

View File

@ -614,7 +614,7 @@ PHP CLI - Composer - Git - Linuxbrew - Node - V8JS - Gulp - SQLite - xDebug - En
<ul> <ul>
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li> <li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li>
<li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/LaraDock-ToolBox">LaraDock-ToolBox</a> branch. <em>(outdated)</em></li> <li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Laradock-ToolBox</a> branch. <em>(outdated)</em></li>
</ul> </ul>
<p><br></p> <p><br></p>
@ -953,12 +953,12 @@ xdebug.remote_connect_back=1
<p>To control the behavior of xDebug (in the <code>php-fpm</code> Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):</p> <p>To control the behavior of xDebug (in the <code>php-fpm</code> Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):</p>
<ul> <ul>
<li>Stop xDebug from running by default: <code>./xdebugPhpFpm stop</code>.</li> <li>Stop xDebug from running by default: <code>.php-fpm/xdebug stop</code>.</li>
<li>Start xDebug by default: <code>./xdebugPhpFpm start</code>.</li> <li>Start xDebug by default: <code>.php-fpm/xdebug start</code>.</li>
<li>See the status: <code>./xdebugPhpFpm status</code>.</li> <li>See the status: <code>.php-fpm/xdebug status</code>.</li>
</ul> </ul>
<p>Note: If <code>./xdebugPhpFpm</code> doesn&rsquo;t execute and gives <code>Permission Denied</code> error the problem can be that file <code>xdebugPhpFpm</code> doesn&rsquo;t have execution access. This can be fixed by running <code>chmod</code> command with desired access permissions.</p> <p>Note: If <code>.php-fpm/xdebug</code> doesn&rsquo;t execute and gives <code>Permission Denied</code> error the problem can be that file <code>xdebug</code> doesn&rsquo;t have execution access. This can be fixed by running <code>chmod</code> command with desired access permissions.</p>
<p><br> <p><br>
<a name="Install-Deployer"></a></p> <a name="Install-Deployer"></a></p>
@ -1954,7 +1954,7 @@ e) set it to <code>true</code></p>
<pre><code>$root@server:~# apt-get install git <pre><code>$root@server:~# apt-get install git
$root@server:~# git clone https://github.com/laravel/laravel $root@server:~# git clone https://github.com/laravel/laravel
$root@server:~# cd laravel $root@server:~# cd laravel
$root@server:~/laravel/ git submodule add https://github.com/LaraDock/laradock.git $root@server:~/laravel/ git submodule add https://github.com/Laradock/laradock.git
$root@server:~/laravel/ cd laradock $root@server:~/laravel/ cd laradock
</code></pre> </code></pre>
@ -1964,7 +1964,7 @@ $root@server:~/laravel/ cd laradock
$root@server:~/chmod +x /usr/local/bin/docker-compose $root@server:~/chmod +x /usr/local/bin/docker-compose
</code></pre> </code></pre>
<h2 id="create-your-laradock-containers">Create Your LaraDock Containers</h2> <h2 id="create-your-laradock-containers">Create Your Laradock Containers</h2>
<pre><code>$root@server:~/laravel/laradock# docker-compose up -d nginx mysql <pre><code>$root@server:~/laravel/laradock# docker-compose up -d nginx mysql
</code></pre> </code></pre>
@ -2144,7 +2144,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy
<ul> <ul>
<li><a href="#InstallCleanHouse">Clean House</a></li> <li><a href="#InstallCleanHouse">Clean House</a></li>
<li><a href="#InstallLaraDockDialTone">LaraDock Dial Tone</a></li> <li><a href="#InstallLaradockDialTone">Laradock Dial Tone</a></li>
<li><a href="#AddToHosts">hosts</a></li> <li><a href="#AddToHosts">hosts</a></li>
<li><a href="#FireWall">Firewall</a></li> <li><a href="#FireWall">Firewall</a></li>
<li><a href="#enablePhpXdebug">Enable xDebug on php-fpm</a></li> <li><a href="#enablePhpXdebug">Enable xDebug on php-fpm</a></li>
@ -2177,7 +2177,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy
<h2 id="intro">Intro</h2> <h2 id="intro">Intro</h2>
<p>Wiring up <a href="https://laravel.com/">Laravel</a>, <a href="https://github.com/LaraDock/laradock">LaraDock</a> [Laravel+Docker] and <a href="https://www.jetbrains.com/phpstorm/">PHPStorm</a> to play nice together complete with remote xdebug&rsquo;ing as icing on top! Although this guide is based on <code>PHPStorm Windows</code>, <p>Wiring up <a href="https://laravel.com/">Laravel</a>, <a href="https://github.com/Laradock/laradock">Laradock</a> [Laravel+Docker] and <a href="https://www.jetbrains.com/phpstorm/">PHPStorm</a> to play nice together complete with remote xdebug&rsquo;ing as icing on top! Although this guide is based on <code>PHPStorm Windows</code>,
you should be able to adjust accordingly. This guide was written based on Docker for Windows Native.</p> you should be able to adjust accordingly. This guide was written based on Docker for Windows Native.</p>
<p><a name="Installation"></a></p> <p><a name="Installation"></a></p>
@ -2188,7 +2188,7 @@ you should be able to adjust accordingly. This guide was written based on Docker
<li>This guide assumes the following: <li>This guide assumes the following:
<ul> <ul>
<li>you have already installed and are familiar with Laravel, LaraDock and PHPStorm.</li> <li>you have already installed and are familiar with Laravel, Laradock and PHPStorm.</li>
<li>you have installed Laravel as a parent of <code>laradock</code>. This guide assumes <code>/c/_dk/laravel</code>.</li> <li>you have installed Laravel as a parent of <code>laradock</code>. This guide assumes <code>/c/_dk/laravel</code>.</li>
</ul></li> </ul></li>
</ul> </ul>
@ -2268,7 +2268,7 @@ xdebug.cli_color=1
<h3 id="need-to-clean-house-first">Need to clean house first?</h3> <h3 id="need-to-clean-house-first">Need to clean house first?</h3>
<p>Make sure you are starting with a clean state. For example, do you have other LaraDock containers and images? <p>Make sure you are starting with a clean state. For example, do you have other Laradock containers and images?
Here are a few things I use to clean things up.</p> Here are a few things I use to clean things up.</p>
<ul> <ul>
@ -2277,7 +2277,7 @@ Here are a few things I use to clean things up.</p>
<li><p>Delete all images containing <code>laradock</code>. <li><p>Delete all images containing <code>laradock</code>.
<code>docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}</code> <code>docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}</code>
<strong>Note:</strong> This will only delete images that were built with <code>LaraDock</code>, <strong>NOT</strong> <code>laradock/*</code> which are pulled down by <code>LaraDock</code> such as <code>laradock/workspace</code>, etc. <strong>Note:</strong> This will only delete images that were built with <code>Laradock</code>, <strong>NOT</strong> <code>laradock/*</code> which are pulled down by <code>Laradock</code> such as <code>laradock/workspace</code>, etc.
<strong>Note:</strong> Some may fail with: <strong>Note:</strong> Some may fail with:
<code>Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images</code></p></li> <code>Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images</code></p></li>
@ -2296,7 +2296,7 @@ Here are a few things I use to clean things up.</p>
} }
</code></pre></li> </code></pre></li>
<li><p>If you frequently switch configurations for LaraDock, you may find that adding the following and added to your <code>.bashrc</code> or equivalent useful: <li><p>If you frequently switch configurations for Laradock, you may find that adding the following and added to your <code>.bashrc</code> or equivalent useful:
```</p> ```</p>
<h1 id="remove-laravel-containers">remove laravel* containers</h1> <h1 id="remove-laravel-containers">remove laravel* containers</h1>
@ -2327,7 +2327,7 @@ Here are a few things I use to clean things up.</p>
<p>alias dcleanlaradock=dcleanlaradockfunction</p> <p>alias dcleanlaradock=dcleanlaradockfunction</p>
<pre><code> <pre><code>
&lt;a name=&quot;InstallLaraDockDialTone&quot;&gt;&lt;/a&gt; &lt;a name=&quot;InstallLaradockDialTone&quot;&gt;&lt;/a&gt;
## Let's get a dial-tone with Laravel ## Let's get a dial-tone with Laravel
</code></pre> </code></pre>
@ -2357,7 +2357,7 @@ laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222-
<pre><code> <pre><code>
&lt;a name=&quot;enablePhpXdebug&quot;&gt;&lt;/a&gt; &lt;a name=&quot;enablePhpXdebug&quot;&gt;&lt;/a&gt;
## Enable xDebug on php-fpm ## Enable xDebug on php-fpm
In a host terminal sitting in the laradock folder, run: `./xdebugPhpFpm status` In a host terminal sitting in the laradock folder, run: `.php-fpm/xdebug status`
You should see something like the following: You should see something like the following:
</code></pre> </code></pre>
@ -2368,7 +2368,7 @@ Copyright &copy; 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright &copy; 1998-2016 Zend Technologies Zend Engine v3.0.0, Copyright &copy; 1998-2016 Zend Technologies
with Xdebug v2.4.1, Copyright &copy; 2002-2016, by Derick Rethans with Xdebug v2.4.1, Copyright &copy; 2002-2016, by Derick Rethans
``<code> ``<code>
Other commands include</code>./xdebugPhpFpm start | stop`.</p> Other commands include</code>.php-fpm/xdebug start | stop`.</p>
<p>If you have enabled <code>xdebug=true</code> in <code>docker-compose.yml/php-fpm</code>, <code>xdebug</code> will already be running when <p>If you have enabled <code>xdebug=true</code> in <code>docker-compose.yml/php-fpm</code>, <code>xdebug</code> will already be running when
<code>php-fpm</code> is started and listening for debug info on port 9000.</p> <code>php-fpm</code> is started and listening for debug info on port 9000.</p>
@ -2519,11 +2519,11 @@ Edit: <code>C:\Windows\System32\drivers\etc\hosts</code>.</p>
<ul> <ul>
<li><p>In case xDebug is disabled, from the <code>laradock</code> folder run: <li><p>In case xDebug is disabled, from the <code>laradock</code> folder run:
<code>./xdebugPhpFpm start</code>.</p> <code>.php-fpm/xdebug start</code>.</p>
<ul> <ul>
<li>To switch xdebug off, run: <li>To switch xdebug off, run:
<code>./xdebugPhpFpm stop</code></li> <code>.php-fpm/xdebug stop</code></li>
</ul></li> </ul></li>
<li><p>Start Remote Debugging</p> <li><p>Start Remote Debugging</p>

View File

@ -299,7 +299,7 @@ PHP CLI - Composer - Git - Linuxbrew - Node - V8JS - Gulp - SQLite - xDebug - En
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Upgrade to Docker &lt;a href=&#34;https://www.docker.com/products/docker&#34;&gt;Native&lt;/a&gt; for Mac/Windows (Recommended). Check out &lt;a href=&#34;http://laradock.io/documentation/#upgrading-laradock&#34;&gt;Upgrading Laradock&lt;/a&gt;&lt;/li&gt; &lt;li&gt;Upgrade to Docker &lt;a href=&#34;https://www.docker.com/products/docker&#34;&gt;Native&lt;/a&gt; for Mac/Windows (Recommended). Check out &lt;a href=&#34;http://laradock.io/documentation/#upgrading-laradock&#34;&gt;Upgrading Laradock&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Use Laradock v3.*. Visit the &lt;a href=&#34;https://github.com/laradock/laradock/tree/LaraDock-ToolBox&#34;&gt;LaraDock-ToolBox&lt;/a&gt; branch. &lt;em&gt;(outdated)&lt;/em&gt;&lt;/li&gt; &lt;li&gt;Use Laradock v3.*. Visit the &lt;a href=&#34;https://github.com/laradock/laradock/tree/Laradock-ToolBox&#34;&gt;Laradock-ToolBox&lt;/a&gt; branch. &lt;em&gt;(outdated)&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;&lt;br&gt;&lt;/p&gt;
@ -643,12 +643,12 @@ xdebug.remote_connect_back=1
&lt;p&gt;To control the behavior of xDebug (in the &lt;code&gt;php-fpm&lt;/code&gt; Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):&lt;/p&gt; &lt;p&gt;To control the behavior of xDebug (in the &lt;code&gt;php-fpm&lt;/code&gt; Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose):&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Stop xDebug from running by default: &lt;code&gt;./xdebugPhpFpm stop&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;Stop xDebug from running by default: &lt;code&gt;.php-fpm/xdebug stop&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Start xDebug by default: &lt;code&gt;./xdebugPhpFpm start&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;Start xDebug by default: &lt;code&gt;.php-fpm/xdebug start&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;See the status: &lt;code&gt;./xdebugPhpFpm status&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;See the status: &lt;code&gt;.php-fpm/xdebug status&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
&lt;p&gt;Note: If &lt;code&gt;./xdebugPhpFpm&lt;/code&gt; doesn&amp;rsquo;t execute and gives &lt;code&gt;Permission Denied&lt;/code&gt; error the problem can be that file &lt;code&gt;xdebugPhpFpm&lt;/code&gt; doesn&amp;rsquo;t have execution access. This can be fixed by running &lt;code&gt;chmod&lt;/code&gt; command with desired access permissions.&lt;/p&gt; &lt;p&gt;Note: If &lt;code&gt;.php-fpm/xdebug&lt;/code&gt; doesn&amp;rsquo;t execute and gives &lt;code&gt;Permission Denied&lt;/code&gt; error the problem can be that file &lt;code&gt;xdebug&lt;/code&gt; doesn&amp;rsquo;t have execution access. This can be fixed by running &lt;code&gt;chmod&lt;/code&gt; command with desired access permissions.&lt;/p&gt;
&lt;p&gt;&lt;br&gt; &lt;p&gt;&lt;br&gt;
&lt;a name=&#34;Install-Deployer&#34;&gt;&lt;/a&gt;&lt;/p&gt; &lt;a name=&#34;Install-Deployer&#34;&gt;&lt;/a&gt;&lt;/p&gt;
@ -1649,7 +1649,7 @@ e) set it to &lt;code&gt;true&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$root@server:~# apt-get install git &lt;pre&gt;&lt;code&gt;$root@server:~# apt-get install git
$root@server:~# git clone https://github.com/laravel/laravel $root@server:~# git clone https://github.com/laravel/laravel
$root@server:~# cd laravel $root@server:~# cd laravel
$root@server:~/laravel/ git submodule add https://github.com/LaraDock/laradock.git $root@server:~/laravel/ git submodule add https://github.com/Laradock/laradock.git
$root@server:~/laravel/ cd laradock $root@server:~/laravel/ cd laradock
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
@ -1659,7 +1659,7 @@ $root@server:~/laravel/ cd laradock
$root@server:~/chmod +x /usr/local/bin/docker-compose $root@server:~/chmod +x /usr/local/bin/docker-compose
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;create-your-laradock-containers&#34;&gt;Create Your LaraDock Containers&lt;/h2&gt; &lt;h2 id=&#34;create-your-laradock-containers&#34;&gt;Create Your Laradock Containers&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;$root@server:~/laravel/laradock# docker-compose up -d nginx mysql &lt;pre&gt;&lt;code&gt;$root@server:~/laravel/laradock# docker-compose up -d nginx mysql
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
@ -1839,7 +1839,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#InstallCleanHouse&#34;&gt;Clean House&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;#InstallCleanHouse&#34;&gt;Clean House&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#InstallLaraDockDialTone&#34;&gt;LaraDock Dial Tone&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;#InstallLaradockDialTone&#34;&gt;Laradock Dial Tone&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#AddToHosts&#34;&gt;hosts&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;#AddToHosts&#34;&gt;hosts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#FireWall&#34;&gt;Firewall&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;#FireWall&#34;&gt;Firewall&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#enablePhpXdebug&#34;&gt;Enable xDebug on php-fpm&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;#enablePhpXdebug&#34;&gt;Enable xDebug on php-fpm&lt;/a&gt;&lt;/li&gt;
@ -1872,7 +1872,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy
&lt;h2 id=&#34;intro&#34;&gt;Intro&lt;/h2&gt; &lt;h2 id=&#34;intro&#34;&gt;Intro&lt;/h2&gt;
&lt;p&gt;Wiring up &lt;a href=&#34;https://laravel.com/&#34;&gt;Laravel&lt;/a&gt;, &lt;a href=&#34;https://github.com/LaraDock/laradock&#34;&gt;LaraDock&lt;/a&gt; [Laravel+Docker] and &lt;a href=&#34;https://www.jetbrains.com/phpstorm/&#34;&gt;PHPStorm&lt;/a&gt; to play nice together complete with remote xdebug&amp;rsquo;ing as icing on top! Although this guide is based on &lt;code&gt;PHPStorm Windows&lt;/code&gt;, &lt;p&gt;Wiring up &lt;a href=&#34;https://laravel.com/&#34;&gt;Laravel&lt;/a&gt;, &lt;a href=&#34;https://github.com/Laradock/laradock&#34;&gt;Laradock&lt;/a&gt; [Laravel+Docker] and &lt;a href=&#34;https://www.jetbrains.com/phpstorm/&#34;&gt;PHPStorm&lt;/a&gt; to play nice together complete with remote xdebug&amp;rsquo;ing as icing on top! Although this guide is based on &lt;code&gt;PHPStorm Windows&lt;/code&gt;,
you should be able to adjust accordingly. This guide was written based on Docker for Windows Native.&lt;/p&gt; you should be able to adjust accordingly. This guide was written based on Docker for Windows Native.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Installation&#34;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a name=&#34;Installation&#34;&gt;&lt;/a&gt;&lt;/p&gt;
@ -1883,7 +1883,7 @@ you should be able to adjust accordingly. This guide was written based on Docker
&lt;li&gt;This guide assumes the following: &lt;li&gt;This guide assumes the following:
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;you have already installed and are familiar with Laravel, LaraDock and PHPStorm.&lt;/li&gt; &lt;li&gt;you have already installed and are familiar with Laravel, Laradock and PHPStorm.&lt;/li&gt;
&lt;li&gt;you have installed Laravel as a parent of &lt;code&gt;laradock&lt;/code&gt;. This guide assumes &lt;code&gt;/c/_dk/laravel&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;you have installed Laravel as a parent of &lt;code&gt;laradock&lt;/code&gt;. This guide assumes &lt;code&gt;/c/_dk/laravel&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt; &lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
@ -1963,7 +1963,7 @@ xdebug.cli_color=1
&lt;h3 id=&#34;need-to-clean-house-first&#34;&gt;Need to clean house first?&lt;/h3&gt; &lt;h3 id=&#34;need-to-clean-house-first&#34;&gt;Need to clean house first?&lt;/h3&gt;
&lt;p&gt;Make sure you are starting with a clean state. For example, do you have other LaraDock containers and images? &lt;p&gt;Make sure you are starting with a clean state. For example, do you have other Laradock containers and images?
Here are a few things I use to clean things up.&lt;/p&gt; Here are a few things I use to clean things up.&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
@ -1972,7 +1972,7 @@ Here are a few things I use to clean things up.&lt;/p&gt;
&lt;li&gt;&lt;p&gt;Delete all images containing &lt;code&gt;laradock&lt;/code&gt;. &lt;li&gt;&lt;p&gt;Delete all images containing &lt;code&gt;laradock&lt;/code&gt;.
&lt;code&gt;docker images | awk &#39;{print $1,$2,$3}&#39; | grep laradock_ | awk &#39;{print $3}&#39; | xargs -I {} docker rmi {}&lt;/code&gt; &lt;code&gt;docker images | awk &#39;{print $1,$2,$3}&#39; | grep laradock_ | awk &#39;{print $3}&#39; | xargs -I {} docker rmi {}&lt;/code&gt;
&lt;strong&gt;Note:&lt;/strong&gt; This will only delete images that were built with &lt;code&gt;LaraDock&lt;/code&gt;, &lt;strong&gt;NOT&lt;/strong&gt; &lt;code&gt;laradock/*&lt;/code&gt; which are pulled down by &lt;code&gt;LaraDock&lt;/code&gt; such as &lt;code&gt;laradock/workspace&lt;/code&gt;, etc. &lt;strong&gt;Note:&lt;/strong&gt; This will only delete images that were built with &lt;code&gt;Laradock&lt;/code&gt;, &lt;strong&gt;NOT&lt;/strong&gt; &lt;code&gt;laradock/*&lt;/code&gt; which are pulled down by &lt;code&gt;Laradock&lt;/code&gt; such as &lt;code&gt;laradock/workspace&lt;/code&gt;, etc.
&lt;strong&gt;Note:&lt;/strong&gt; Some may fail with: &lt;strong&gt;Note:&lt;/strong&gt; Some may fail with:
&lt;code&gt;Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images&lt;/code&gt;&lt;/p&gt;&lt;/li&gt; &lt;code&gt;Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
@ -1991,7 +1991,7 @@ Here are a few things I use to clean things up.&lt;/p&gt;
} }
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you frequently switch configurations for LaraDock, you may find that adding the following and added to your &lt;code&gt;.bashrc&lt;/code&gt; or equivalent useful: &lt;li&gt;&lt;p&gt;If you frequently switch configurations for Laradock, you may find that adding the following and added to your &lt;code&gt;.bashrc&lt;/code&gt; or equivalent useful:
```&lt;/p&gt; ```&lt;/p&gt;
&lt;h1 id=&#34;remove-laravel-containers&#34;&gt;remove laravel* containers&lt;/h1&gt; &lt;h1 id=&#34;remove-laravel-containers&#34;&gt;remove laravel* containers&lt;/h1&gt;
@ -2022,7 +2022,7 @@ Here are a few things I use to clean things up.&lt;/p&gt;
&lt;p&gt;alias dcleanlaradock=dcleanlaradockfunction&lt;/p&gt; &lt;p&gt;alias dcleanlaradock=dcleanlaradockfunction&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; &lt;pre&gt;&lt;code&gt;
&amp;lt;a name=&amp;quot;InstallLaraDockDialTone&amp;quot;&amp;gt;&amp;lt;/a&amp;gt; &amp;lt;a name=&amp;quot;InstallLaradockDialTone&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;
## Let&#39;s get a dial-tone with Laravel ## Let&#39;s get a dial-tone with Laravel
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
@ -2052,7 +2052,7 @@ laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222-
&lt;pre&gt;&lt;code&gt; &lt;pre&gt;&lt;code&gt;
&amp;lt;a name=&amp;quot;enablePhpXdebug&amp;quot;&amp;gt;&amp;lt;/a&amp;gt; &amp;lt;a name=&amp;quot;enablePhpXdebug&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;
## Enable xDebug on php-fpm ## Enable xDebug on php-fpm
In a host terminal sitting in the laradock folder, run: `./xdebugPhpFpm status` In a host terminal sitting in the laradock folder, run: `.php-fpm/xdebug status`
You should see something like the following: You should see something like the following:
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
@ -2063,7 +2063,7 @@ Copyright &amp;copy; 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright &amp;copy; 1998-2016 Zend Technologies Zend Engine v3.0.0, Copyright &amp;copy; 1998-2016 Zend Technologies
with Xdebug v2.4.1, Copyright &amp;copy; 2002-2016, by Derick Rethans with Xdebug v2.4.1, Copyright &amp;copy; 2002-2016, by Derick Rethans
``&lt;code&gt; ``&lt;code&gt;
Other commands include&lt;/code&gt;./xdebugPhpFpm start | stop`.&lt;/p&gt; Other commands include&lt;/code&gt;.php-fpm/xdebug start | stop`.&lt;/p&gt;
&lt;p&gt;If you have enabled &lt;code&gt;xdebug=true&lt;/code&gt; in &lt;code&gt;docker-compose.yml/php-fpm&lt;/code&gt;, &lt;code&gt;xdebug&lt;/code&gt; will already be running when &lt;p&gt;If you have enabled &lt;code&gt;xdebug=true&lt;/code&gt; in &lt;code&gt;docker-compose.yml/php-fpm&lt;/code&gt;, &lt;code&gt;xdebug&lt;/code&gt; will already be running when
&lt;code&gt;php-fpm&lt;/code&gt; is started and listening for debug info on port 9000.&lt;/p&gt; &lt;code&gt;php-fpm&lt;/code&gt; is started and listening for debug info on port 9000.&lt;/p&gt;
@ -2214,11 +2214,11 @@ Edit: &lt;code&gt;C:\Windows\System32\drivers\etc\hosts&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;&lt;p&gt;In case xDebug is disabled, from the &lt;code&gt;laradock&lt;/code&gt; folder run: &lt;li&gt;&lt;p&gt;In case xDebug is disabled, from the &lt;code&gt;laradock&lt;/code&gt; folder run:
&lt;code&gt;./xdebugPhpFpm start&lt;/code&gt;.&lt;/p&gt; &lt;code&gt;.php-fpm/xdebug start&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;To switch xdebug off, run: &lt;li&gt;To switch xdebug off, run:
&lt;code&gt;./xdebugPhpFpm stop&lt;/code&gt;&lt;/li&gt; &lt;code&gt;.php-fpm/xdebug stop&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt; &lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start Remote Debugging&lt;/p&gt; &lt;li&gt;&lt;p&gt;Start Remote Debugging&lt;/p&gt;

View File

@ -1,19 +1,34 @@
### Paths ############################
# Application: Point to your application code, will be available at `/var/www`. # General Setup
############################
### Application Path
# Point to your application code, will be available at `/var/www`.
APPLICATION=../ APPLICATION=../
# Data: For all storage systems ### Data Path:
# For all storage systems.
DATA_SAVE_PATH=../data DATA_SAVE_PATH=../data
### PHP version (Does not apply to HHVM) ### PHP version
# Accepted values: 71 - 70 - 56. # Applies to the Workspace and PHP-FPM containers (Does not apply to HHVM)
PHP_VERSION=70 # Accepted values: 71 - 70 - 56
PHP_VERSION=71
### PHP interpreter ### PHP interpreter
# Accepted values: hhvm - php-fpm # Accepted values: hhvm - php-fpm
PHP_INTERPRETER=php-fpm PHP_INTERPRETER=php-fpm
### WORKSPACE Container ############################
# Containers Customization
############################
### WORKSPACE Container ################################################################################################
WORKSPACE_INSTALL_XDEBUG=false WORKSPACE_INSTALL_XDEBUG=false
WORKSPACE_INSTALL_SOAP=false WORKSPACE_INSTALL_SOAP=false
WORKSPACE_INSTALL_MONGO=false WORKSPACE_INSTALL_MONGO=false
@ -35,7 +50,8 @@ WORKSPACE_YARN_VERSION=latest
WORKSPACE_TIMEZONE=UTC WORKSPACE_TIMEZONE=UTC
WORKSPACE_SSH_PORT=2222 WORKSPACE_SSH_PORT=2222
### PHP_FPM Container ### PHP_FPM Container ##################################################################################################
PHP_FPM_INSTALL_XDEBUG=false PHP_FPM_INSTALL_XDEBUG=false
PHP_FPM_INSTALL_MONGO=false PHP_FPM_INSTALL_MONGO=false
PHP_FPM_INSTALL_SOAP=false PHP_FPM_INSTALL_SOAP=false
@ -51,120 +67,174 @@ PHP_FPM_INSTALL_TOKENIZER=false
PHP_FPM_INSTALL_INTL=false PHP_FPM_INSTALL_INTL=false
PHP_FPM_INSTALL_GHOSTSCRIPT=false PHP_FPM_INSTALL_GHOSTSCRIPT=false
### NGINX Container ### NGINX Container ####################################################################################################
NGINX_HOST_HTTP_PORT=80 NGINX_HOST_HTTP_PORT=80
NGINX_HOST_HTTPS_PORT=443 NGINX_HOST_HTTPS_PORT=443
NGINX_HOST_LOG_PATH=./logs/nginx/ NGINX_HOST_LOG_PATH=./logs/nginx/
NGINX_SITES_PATH=./nginx/sites/ NGINX_SITES_PATH=./nginx/sites/
### APACHE Container ### BLACKFIRE Container ################################################################################################
# Create an account on blackfire.io
# Don't enable blackfire and xDebug at the same time
# see https://blackfire.io/docs/24-days/06-installation#install-probe-debian
INSTALL_BLACKFIRE=false
BLACKFIRE_CLIENT_ID=<client_id>
BLACKFIRE_CLIENT_TOKEN=<client_token>
BLACKFIRE_SERVER_ID=<server_id>
BLACKFIRE_SERVER_TOKEN=<server_token>
### APACHE Container ###################################################################################################
APACHE_HOST_HTTP_PORT=80 APACHE_HOST_HTTP_PORT=80
APACHE_HOST_HTTPS_PORT=443 APACHE_HOST_HTTPS_PORT=443
APACHE2_PHP_SOCKET=php-fpm:9000 APACHE2_PHP_SOCKET=php-fpm:9000
APACHE_HOST_LOG_PATH=./logs/apache2 APACHE_HOST_LOG_PATH=./logs/apache2
PHP_SOCKET=php-fpm:9000 PHP_SOCKET=php-fpm:9000
### MYSQL Container ### MYSQL Container ####################################################################################################
MYSQL_DATABASE=default MYSQL_DATABASE=default
MYSQL_USER=default MYSQL_USER=default
MYSQL_PASSWORD=secret MYSQL_PASSWORD=secret
MYSQL_PORT=3306 MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD=root MYSQL_ROOT_PASSWORD=root
### Percona Container ### Percona Container ##################################################################################################
PERCONA_DATABASE=homestead PERCONA_DATABASE=homestead
PERCONA_USER=homestead PERCONA_USER=homestead
PERCONA_PASSWORD=secret PERCONA_PASSWORD=secret
PERCONA_PORT=3306 PERCONA_PORT=3306
PERCONA_ROOT_PASSWORD=root PERCONA_ROOT_PASSWORD=root
### MSSQL Container ### MSSQL Container ####################################################################################################
MSSQL_DATABASE=homestead MSSQL_DATABASE=homestead
MSSQL_PASSWORD=yourStrong(!)Password MSSQL_PASSWORD=yourStrong(!)Password
MSSQL_PORT=1433 MSSQL_PORT=1433
### MARIADB Container ### MARIADB Container ##################################################################################################
MARIADB_DATABASE=default MARIADB_DATABASE=default
MARIADB_USER=default MARIADB_USER=default
MARIADB_PASSWORD=secret MARIADB_PASSWORD=secret
MARIADB_PORT=3306 MARIADB_PORT=3306
MARIADB_ROOT_PASSWORD=root MARIADB_ROOT_PASSWORD=root
### POSTGRES Container ### POSTGRES Container #################################################################################################
POSTGRES_DB=default POSTGRES_DB=default
POSTGRES_USER=default POSTGRES_USER=default
POSTGRES_PASSWORD=secret POSTGRES_PASSWORD=secret
POSTGRES_PORT=5432 POSTGRES_PORT=5432
### RABBITMQ Container ### RABBITMQ Container #################################################################################################
RABBITMQ_NODE_HOST_PORT=5672 RABBITMQ_NODE_HOST_PORT=5672
RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672 RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672
RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671 RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671
RABBITMQ_DEFAULT_USER=guest RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest RABBITMQ_DEFAULT_PASS=guest
### ELASTICSEARCH Container ### ELASTICSEARCH Container ############################################################################################
ELASTICSEARCH_HOST_HTTP_PORT=9200 ELASTICSEARCH_HOST_HTTP_PORT=9200
ELASTICSEARCH_HOST_TRANSPORT_PORT=9300 ELASTICSEARCH_HOST_TRANSPORT_PORT=9300
### MEMCACHED Container ### MEMCACHED Container ################################################################################################
MEMCACHED_HOST_PORT=11211 MEMCACHED_HOST_PORT=11211
### BEANSTALKD CONSOLE ### BEANSTALKD CONSOLE #################################################################################################
BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console
BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console
BEANSTALKD_CONSOLE_HOST_PORT=2080 BEANSTALKD_CONSOLE_HOST_PORT=2080
### BEANSTALKD Container ### BEANSTALKD Container ###############################################################################################
BEANSTALKD_HOST_PORT=11300 BEANSTALKD_HOST_PORT=11300
### SELENIUM Container ### SELENIUM Container #################################################################################################
SELENIUM_PORT=4444 SELENIUM_PORT=4444
### MINIO Container ### MINIO Container ####################################################################################################
MINIO_PORT=9000 MINIO_PORT=9000
### ADMINER Container ### ADMINER Container ##################################################################################################
ADM_PORT=88 ADM_PORT=88
### PHP MY ADMIN Container ### PHP MY ADMIN Container #############################################################################################
# PMA_DB_ENGINE=mariadb
# Accepted values: mariadb - mysql
PMA_DB_ENGINE=mysql PMA_DB_ENGINE=mysql
# Credentials/Port:
PMA_USER=default PMA_USER=default
PMA_PASSWORD=secret PMA_PASSWORD=secret
PMA_ROOT_PASSWORD=secret PMA_ROOT_PASSWORD=secret
PMA_PORT=88 PMA_PORT=88
### VARNISH Container ### VARNISH Container ##################################################################################################
VARNISH_CONFIG=/etc/varnish/default.vcl VARNISH_CONFIG=/etc/varnish/default.vcl
VARNISH_PORT=8080 VARNISH_PORT=8080
VARNISH_BACKEND_PORT=8888 VARNISH_BACKEND_PORT=8888
VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600 VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600
### Varnish Proxy 1 Container ### Varnish Container ##################################################################################################
# Proxy 1
VARNISH_PROXY1_CACHE_SIZE=128m VARNISH_PROXY1_CACHE_SIZE=128m
VARNISH_PROXY1_BACKEND_HOST=workspace VARNISH_PROXY1_BACKEND_HOST=workspace
VARNISH_PROXY1_SERVER=SERVER1 VARNISH_PROXY1_SERVER=SERVER1
### Varnish Proxy 2 Container # Proxy 2
VARNISH_PROXY2_CACHE_SIZE=128m VARNISH_PROXY2_CACHE_SIZE=128m
VARNISH_PROXY2_BACKEND_HOST=workspace VARNISH_PROXY2_BACKEND_HOST=workspace
VARNISH_PROXY2_SERVER=SERVER2 VARNISH_PROXY2_SERVER=SERVER2
### HAPROXY Container ### HAPROXY Container ##################################################################################################
HAPROXY_HOST_HTTP_PORT=8085 HAPROXY_HOST_HTTP_PORT=8085
### JENKINS Container ### JENKINS Container ##################################################################################################
JENKINS_HOST_HTTP_PORT=8090 JENKINS_HOST_HTTP_PORT=8090
JENKINS_HOST_SLAVE_AGENT_PORT=50000 JENKINS_HOST_SLAVE_AGENT_PORT=50000
JENKINS_HOME=./jenkins/jenkins_home JENKINS_HOME=./jenkins/jenkins_home
### MISC ##### TO BE CONTINUE .................................
# ......... Missing: neo4j mongo rethinkdb redis aerospike pgadmin...
# .........
# .........
############################
# Miscellaneous
############################
# Replace with your Docker Host IP (will be appended to /etc/hosts) # Replace with your Docker Host IP (will be appended to /etc/hosts)
DOCKER_HOST_IP=10.0.75.1 DOCKER_HOST_IP=10.0.75.1
# The Remote Interpreter entry matching name `laradock` # The Remote Interpreter entry matching name `laradock`
PHP_IDE_CONFIG=serverName=laradock PHP_IDE_CONFIG=serverName=laradock
# Fix for windows users to make sure the application path works. # Fix for windows users to make sure the application path works.
COMPOSE_CONVERT_WINDOWS_PATHS=1 COMPOSE_CONVERT_WINDOWS_PATHS=1
### to be continue neo4j mongo rethinkdb redis aerospike pgadmin ...

View File

@ -4,13 +4,15 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# #
# To edit the 'php-fpm' base Image, visit its repository on Github # To edit the 'php-fpm' base Image, visit its repository on Github
# https://github.com/LaraDock/php-fpm # https://github.com/Laradock/php-fpm
# #
# To change its version, see the available Tags on the Docker Hub: # To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/php-fpm/tags/ # https://hub.docker.com/r/laradock/php-fpm/tags/
# #
# Note: Base Image name format {image-tag}-{php-version}
#
FROM laradock/php-fpm:1.4-v5.6 FROM laradock/php-fpm:1.4-56
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me> MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
@ -22,7 +24,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....) # Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....)
# are installed on the base image 'laradock/php-fpm' image. If you want # are installed on the base image 'laradock/php-fpm' image. If you want
# to add more Software's or remove existing one, you need to edit the # to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/LaraDock/php-fpm). # base image (https://github.com/Laradock/php-fpm).
# #
# #
@ -65,6 +67,19 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Copy xdebug configration for remote debugging # Copy xdebug configration for remote debugging
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
#####################################
# Blackfire:
#####################################
ARG INSTALL_BLACKFIRE=false
RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
&& mv /tmp/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \
;fi
##################################### #####################################
# PHP REDIS EXTENSION FOR PHP 5 # PHP REDIS EXTENSION FOR PHP 5
##################################### #####################################

View File

@ -4,13 +4,15 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# #
# To edit the 'php-fpm' base Image, visit its repository on Github # To edit the 'php-fpm' base Image, visit its repository on Github
# https://github.com/LaraDock/php-fpm # https://github.com/Laradock/php-fpm
# #
# To change its version, see the available Tags on the Docker Hub: # To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/php-fpm/tags/ # https://hub.docker.com/r/laradock/php-fpm/tags/
# #
# Note: Base Image name format {image-tag}-{php-version}
#
FROM laradock/php-fpm:1.4-v7.0 FROM laradock/php-fpm:1.4-70
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me> MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
@ -22,7 +24,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....) # Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....)
# are installed on the base image 'laradock/php-fpm' image. If you want # are installed on the base image 'laradock/php-fpm' image. If you want
# to add more Software's or remove existing one, you need to edit the # to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/LaraDock/php-fpm). # base image (https://github.com/Laradock/php-fpm).
# #
# #
@ -62,6 +64,19 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Copy xdebug configration for remote debugging # Copy xdebug configration for remote debugging
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
#####################################
# Blackfire:
#####################################
ARG INSTALL_BLACKFIRE=false
RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
&& mv /tmp/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \
;fi
##################################### #####################################
# PHP REDIS EXTENSION FOR PHP 7 # PHP REDIS EXTENSION FOR PHP 7
##################################### #####################################

View File

@ -4,13 +4,15 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# #
# To edit the 'php-fpm' base Image, visit its repository on Github # To edit the 'php-fpm' base Image, visit its repository on Github
# https://github.com/LaraDock/php-fpm # https://github.com/Laradock/php-fpm
# #
# To change its version, see the available Tags on the Docker Hub: # To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/php-fpm/tags/ # https://hub.docker.com/r/laradock/php-fpm/tags/
# #
# Note: Base Image name format {image-tag}-{php-version}
#
FROM laradock/php-fpm:1.4-v7.1 FROM laradock/php-fpm:1.4-71
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me> MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
@ -22,7 +24,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....) # Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....)
# are installed on the base image 'laradock/php-fpm' image. If you want # are installed on the base image 'laradock/php-fpm' image. If you want
# to add more Software's or remove existing one, you need to edit the # to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/LaraDock/php-fpm). # base image (https://github.com/Laradock/php-fpm).
# #
# #
@ -62,6 +64,19 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Copy xdebug configration for remote debugging # Copy xdebug configration for remote debugging
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
#####################################
# Blackfire:
#####################################
ARG INSTALL_BLACKFIRE=false
RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
&& mv /tmp/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \
;fi
##################################### #####################################
# PHP REDIS EXTENSION FOR PHP 7 # PHP REDIS EXTENSION FOR PHP 7
##################################### #####################################

1918
php-fpm/php71.ini Normal file

File diff suppressed because it is too large Load Diff

View File

@ -94,7 +94,7 @@ case $@ in
echo "xDebug [Stop | Start | Status] in the ${PHP_FPM_CONTAINER} container." echo "xDebug [Stop | Start | Status] in the ${PHP_FPM_CONTAINER} container."
echo "xDebug must have already been installed." echo "xDebug must have already been installed."
echo "Usage:" echo "Usage:"
echo " ./xdebugPhpFpm stop|start|status" echo " .php-fpm/xdebug stop|start|status"
esac esac

View File

@ -4,13 +4,15 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# #
# To edit the 'workspace' base Image, visit its repository on Github # To edit the 'workspace' base Image, visit its repository on Github
# https://github.com/LaraDock/workspace # https://github.com/Laradock/workspace
# #
# To change its version, see the available Tags on the Docker Hub: # To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/workspace/tags/ # https://hub.docker.com/r/laradock/workspace/tags/
# #
# Note: Base Image name format {image-tag}-{php-version}
#
FROM laradock/workspace:1.6 FROM laradock/workspace:1.7-56
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me> MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
@ -22,7 +24,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Mandatory Software's such as ("php5.6-cli", "git", "vim", ....) are # Mandatory Software's such as ("php5.6-cli", "git", "vim", ....) are
# installed on the base image 'laradock/workspace' image. If you want # installed on the base image 'laradock/workspace' image. If you want
# to add more Software's or remove existing one, you need to edit the # to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/LaraDock/workspace). # base image (https://github.com/Laradock/workspace).
# #
# #
@ -135,6 +137,24 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# ADD for REMOTE debugging # ADD for REMOTE debugging
COPY ./xdebug.ini /etc/php/5.6/cli/conf.d/xdebug.ini COPY ./xdebug.ini /etc/php/5.6/cli/conf.d/xdebug.ini
#####################################
# Blackfire:
#####################################
ARG INSTALL_BLACKFIRE=false
ARG BLACKFIRE_CLIENT_ID
ARG BLACKFIRE_CLIENT_TOKEN
ENV BLACKFIRE_CLIENT_ID ${BLACKFIRE_CLIENT_ID}
ENV BLACKFIRE_CLIENT_TOKEN ${BLACKFIRE_CLIENT_TOKEN}
RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
curl -L https://packagecloud.io/gpg.key | apt-key add - && \
echo "deb http://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list && \
apt-get update && \
apt-get install blackfire-agent \
;fi
##################################### #####################################
# ssh: # ssh:
##################################### #####################################

View File

@ -4,13 +4,15 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# #
# To edit the 'workspace' base Image, visit its repository on Github # To edit the 'workspace' base Image, visit its repository on Github
# https://github.com/LaraDock/workspace # https://github.com/Laradock/workspace
# #
# To change its version, see the available Tags on the Docker Hub: # To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/workspace/tags/ # https://hub.docker.com/r/laradock/workspace/tags/
# #
# Note: Base Image name format {image-tag}-{php-version}
#
FROM laradock/workspace:1.6 FROM laradock/workspace:1.7-70
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me> MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
@ -22,7 +24,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Mandatory Software's such as ("php7.0-cli", "git", "vim", ....) are # Mandatory Software's such as ("php7.0-cli", "git", "vim", ....) are
# installed on the base image 'laradock/workspace' image. If you want # installed on the base image 'laradock/workspace' image. If you want
# to add more Software's or remove existing one, you need to edit the # to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/LaraDock/workspace). # base image (https://github.com/Laradock/workspace).
# #
# #
@ -134,6 +136,24 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# ADD for REMOTE debugging # ADD for REMOTE debugging
COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini
#####################################
# Blackfire:
#####################################
ARG INSTALL_BLACKFIRE=false
ARG BLACKFIRE_CLIENT_ID
ARG BLACKFIRE_CLIENT_TOKEN
ENV BLACKFIRE_CLIENT_ID ${BLACKFIRE_CLIENT_ID}
ENV BLACKFIRE_CLIENT_TOKEN ${BLACKFIRE_CLIENT_TOKEN}
RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
curl -L https://packagecloud.io/gpg.key | apt-key add - && \
echo "deb http://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list && \
apt-get update && \
apt-get install blackfire-agent \
;fi
##################################### #####################################
# ssh: # ssh:
##################################### #####################################

View File

@ -4,14 +4,15 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# #
# To edit the 'workspace' base Image, visit its repository on Github # To edit the 'workspace' base Image, visit its repository on Github
# https://github.com/LaraDock/workspace # https://github.com/Laradock/workspace
# #
# To change its version, see the available Tags on the Docker Hub: # To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/workspace/tags/ # https://hub.docker.com/r/laradock/workspace/tags/
# #
# Note: Base Image name format {image-tag}-{php-version}
#
# placeholder. Need change after new image would be built. FROM laradock/workspace:1.7-71
FROM laradock/workspace:1.6
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me> MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
@ -23,7 +24,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Mandatory Software's such as ("php7.1-cli", "git", "vim", ....) are # Mandatory Software's such as ("php7.1-cli", "git", "vim", ....) are
# installed on the base image 'laradock/workspace' image. If you want # installed on the base image 'laradock/workspace' image. If you want
# to add more Software's or remove existing one, you need to edit the # to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/LaraDock/workspace). # base image (https://github.com/Laradock/workspace).
# #
# #
@ -97,6 +98,24 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# ADD for REMOTE debugging # ADD for REMOTE debugging
COPY ./xdebug.ini /etc/php/7.1/cli/conf.d/xdebug.ini COPY ./xdebug.ini /etc/php/7.1/cli/conf.d/xdebug.ini
#####################################
# Blackfire:
#####################################
ARG INSTALL_BLACKFIRE=false
ARG BLACKFIRE_CLIENT_ID
ARG BLACKFIRE_CLIENT_TOKEN
ENV BLACKFIRE_CLIENT_ID ${BLACKFIRE_CLIENT_ID}
ENV BLACKFIRE_CLIENT_TOKEN ${BLACKFIRE_CLIENT_TOKEN}
RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
curl -L https://packagecloud.io/gpg.key | apt-key add - && \
echo "deb http://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list && \
apt-get update && \
apt-get install blackfire-agent \
;fi
##################################### #####################################
# ssh: # ssh:
##################################### #####################################