From 393d20472acc77667bbacf7161e462d7529fdda3 Mon Sep 17 00:00:00 2001 From: Diego Antunes Date: Tue, 18 Apr 2017 12:14:26 +1200 Subject: [PATCH 1/8] Included Percona in the docs --- DOCUMENTATION/content/introduction/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOCUMENTATION/content/introduction/index.md b/DOCUMENTATION/content/introduction/index.md index 0853c7d..2b8460e 100644 --- a/DOCUMENTATION/content/introduction/index.md +++ b/DOCUMENTATION/content/introduction/index.md @@ -83,7 +83,7 @@ In adhering to the separation of concerns principle as promoted by Docker, Larad You can turn On/Off as many instances of as any container without worrying about the configurations, everything works like a charm. - **Database Engines:** -MySQL - MariaDB - MongoDB - Neo4j - RethinkDB - MSSQL - PostgreSQL - Postgres Postgis. +MySQL - MariaDB - Percona - MongoDB - Neo4j - RethinkDB - MSSQL - PostgreSQL - Postgres Postgis. - **Cache Engines:** Redis - Memcached - Aerospike - **PHP Servers:** From 5aab3add4450149e54364768c525c054322721ad Mon Sep 17 00:00:00 2001 From: Diego Antunes Date: Fri, 21 Apr 2017 10:02:54 +1200 Subject: [PATCH 2/8] Added blackfire.io --- DOCUMENTATION/content/introduction/index.md | 2 +- docker-compose.yml | 16 ++++++++++++++++ env-example | 10 ++++++++++ php-fpm/Dockerfile-56 | 13 +++++++++++++ php-fpm/Dockerfile-70 | 13 +++++++++++++ php-fpm/Dockerfile-71 | 13 +++++++++++++ workspace/Dockerfile-56 | 18 ++++++++++++++++++ workspace/Dockerfile-70 | 18 ++++++++++++++++++ workspace/Dockerfile-71 | 18 ++++++++++++++++++ 9 files changed, 120 insertions(+), 1 deletion(-) diff --git a/DOCUMENTATION/content/introduction/index.md b/DOCUMENTATION/content/introduction/index.md index 2b8460e..22b3401 100644 --- a/DOCUMENTATION/content/introduction/index.md +++ b/DOCUMENTATION/content/introduction/index.md @@ -93,7 +93,7 @@ PHP FPM - HHVM - **Message Queuing:** Beanstalkd - Beanstalkd Console - RabbitMQ - RabbitMQ Console - PHP Worker - **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. 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. diff --git a/docker-compose.yml b/docker-compose.yml index 7e2c4ca..7123bdd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: context: ./workspace args: - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG} + - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE} - INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP} - INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO} - INSTALL_NODE=${WORKSPACE_INSTALL_NODE} @@ -34,6 +35,8 @@ services: - NODE_VERSION=${WORKSPACE_NODE_VERSION} - YARN_VERSION=${WORKSPACE_YARN_VERSION} - TZ=${WORKSPACE_TIMEZONE} + - BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID} + - BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN} dockerfile: "Dockerfile-${PHP_VERSION}" volumes_from: - applications @@ -53,6 +56,7 @@ services: context: ./php-fpm args: - INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG} + - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE} - INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP} - INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO} - INSTALL_ZIP_ARCHIVE=${PHP_FPM_INSTALL_ZIP_ARCHIVE} @@ -115,6 +119,18 @@ services: - frontend - 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 ################################# apache2: diff --git a/env-example b/env-example index c61719b..a78a6f1 100644 --- a/env-example +++ b/env-example @@ -58,6 +58,16 @@ NGINX_HOST_HTTPS_PORT=443 NGINX_HOST_LOG_PATH=./logs/nginx/ NGINX_SITES_PATH=./nginx/sites/ +### 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= +BLACKFIRE_CLIENT_TOKEN= +BLACKFIRE_SERVER_ID= +BLACKFIRE_SERVER_TOKEN= + ### APACHE Container APACHE_HOST_HTTP_PORT=80 APACHE_HOST_HTTPS_PORT=443 diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 386eff6..72ba9ee 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -65,6 +65,19 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # Copy xdebug configration for remote debugging 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 ##################################### diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 1c07a17..bb696b6 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -62,6 +62,19 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # Copy xdebug configration for remote debugging 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 ##################################### diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 87f6ff4..29dcd57 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -62,6 +62,19 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # Copy xdebug configration for remote debugging 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 ##################################### diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index 6227cd9..6f06c07 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -135,6 +135,24 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # ADD for REMOTE debugging 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: ##################################### diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index 323c502..0bbf92e 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -134,6 +134,24 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # ADD for REMOTE debugging 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: ##################################### diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index 9d5b1db..24d3a30 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -97,6 +97,24 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # ADD for REMOTE debugging 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: ##################################### From d0effd94686b8de7f14f625b927a1fadc0cd36f4 Mon Sep 17 00:00:00 2001 From: Shao Yu Lung Date: Thu, 20 Apr 2017 20:25:14 +0800 Subject: [PATCH 3/8] Fixing Unable to connect to postgresql server --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 7123bdd..8020d2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -451,6 +451,7 @@ services: - postgres networks: - frontend + - backend ### ElasticSearch Container ################################# From 4ce1d7f64abb6b77686f71892d4c5a44a023bf19 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Thu, 20 Apr 2017 13:45:04 -0400 Subject: [PATCH 4/8] 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. --- env-example | 19 +++++++++---------- php-fpm/Dockerfile-56 | 2 +- php-fpm/Dockerfile-70 | 2 +- php-fpm/Dockerfile-71 | 2 +- workspace/Dockerfile-56 | 2 +- workspace/Dockerfile-70 | 2 +- workspace/Dockerfile-71 | 2 +- 7 files changed, 15 insertions(+), 16 deletions(-) diff --git a/env-example b/env-example index a78a6f1..6d6472c 100644 --- a/env-example +++ b/env-example @@ -1,17 +1,16 @@ -### Application -# Point to your application code, wish should be available at `/var/www` +### Paths +# Application: Point to your application code, will be available at `/var/www`. APPLICATION=../ -### Save Data Path (mysql redis mongo...) +# Data: For all storage systems DATA_SAVE_PATH=../data -### PHP version (Does not apply for HHVM) -# PHP_VERSION=56 +### PHP version (Does not apply to HHVM) +# Accepted values: 71 - 70 - 56. PHP_VERSION=70 -# PHP_VERSION=71 ### PHP interpreter -# PHP_INTERPRETER=hhvm +# Accepted values: hhvm - php-fpm PHP_INTERPRETER=php-fpm ### WORKSPACE Container @@ -135,6 +134,9 @@ SELENIUM_PORT=4444 ### MINIO Container MINIO_PORT=9000 +### ADMINER Container +ADM_PORT=88 + ### PHP MY ADMIN Container # PMA_DB_ENGINE=mariadb PMA_DB_ENGINE=mysql @@ -143,9 +145,6 @@ 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 diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 72ba9ee..b4f0a35 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -10,7 +10,7 @@ # https://hub.docker.com/r/laradock/php-fpm/tags/ # -FROM laradock/php-fpm:5.6--1.4 +FROM laradock/php-fpm:1.4-v5.6 MAINTAINER Mahmoud Zalt diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index bb696b6..4c1b252 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -10,7 +10,7 @@ # https://hub.docker.com/r/laradock/php-fpm/tags/ # -FROM laradock/php-fpm:7.0--1.4 +FROM laradock/php-fpm:1.4-v7.0 MAINTAINER Mahmoud Zalt diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 29dcd57..8060fa1 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -10,7 +10,7 @@ # https://hub.docker.com/r/laradock/php-fpm/tags/ # -FROM laradock/php-fpm:7.1--1.4 +FROM laradock/php-fpm:1.4-v7.1 MAINTAINER Mahmoud Zalt diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index 6f06c07..c259321 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -10,7 +10,7 @@ # https://hub.docker.com/r/laradock/workspace/tags/ # -FROM laradock/workspace:1.3 +FROM laradock/workspace:1.6 MAINTAINER Mahmoud Zalt diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index 0bbf92e..3645347 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -10,7 +10,7 @@ # https://hub.docker.com/r/laradock/workspace/tags/ # -FROM laradock/workspace:1.3 +FROM laradock/workspace:1.6 MAINTAINER Mahmoud Zalt diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index 24d3a30..293d592 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -11,7 +11,7 @@ # # placeholder. Need change after new image would be built. -FROM laradock/workspace:1.3 +FROM laradock/workspace:1.6 MAINTAINER Mahmoud Zalt From bce05e4b598f5cef06d596994ea9ba0013107501 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Thu, 20 Apr 2017 13:55:09 -0400 Subject: [PATCH 5/8] little cleanup --- .travis.yml | 2 +- DOCUMENTATION/content/documentation/index.md | 8 +-- .../content/getting-started/index.md | 2 +- DOCUMENTATION/content/guides/index.md | 26 ++++----- README-zh.md | 58 +++++++++---------- docs/documentation/index.html | 8 +-- docs/documentation/index.xml | 10 ++-- docs/getting-started/index.html | 2 +- docs/getting-started/index.xml | 4 +- docs/index.html | 36 ++++++------ docs/index.xml | 38 ++++++------ php-fpm/Dockerfile-56 | 4 +- php-fpm/Dockerfile-70 | 4 +- php-fpm/Dockerfile-71 | 4 +- xdebugPhpFpm => php-fpm/xdebug | 2 +- _scripts/travis-build.sh => travis-build.sh | 0 workspace/Dockerfile-56 | 4 +- workspace/Dockerfile-70 | 4 +- workspace/Dockerfile-71 | 4 +- 19 files changed, 110 insertions(+), 110 deletions(-) rename xdebugPhpFpm => php-fpm/xdebug (98%) rename _scripts/travis-build.sh => travis-build.sh (100%) diff --git a/.travis.yml b/.travis.yml index a4b3837..00dc2c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ env: - PHP_VERSION=71 - HUGO_VERSION=0.19 -script: ./_scripts/travis-build.sh +script: ./travis-build.sh deploy: provider: pages diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index a938384..48df261 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -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): -- Stop xDebug from running by default: `./xdebugPhpFpm stop`. -- Start xDebug by default: `./xdebugPhpFpm start`. -- See the status: `./xdebugPhpFpm status`. +- Stop xDebug from running by default: `.php-fpm/xdebug stop`. +- Start xDebug by default: `.php-fpm/xdebug start`. +- 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. diff --git a/DOCUMENTATION/content/getting-started/index.md b/DOCUMENTATION/content/getting-started/index.md index b5564dd..9172688 100644 --- a/DOCUMENTATION/content/getting-started/index.md +++ b/DOCUMENTATION/content/getting-started/index.md @@ -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: - 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)*
diff --git a/DOCUMENTATION/content/guides/index.md b/DOCUMENTATION/content/guides/index.md index 6be3e33..8385d5b 100644 --- a/DOCUMENTATION/content/guides/index.md +++ b/DOCUMENTATION/content/guides/index.md @@ -45,7 +45,7 @@ $root@server:~# docker $root@server:~# apt-get install git $root@server:~# git clone https://github.com/laravel/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 ``` @@ -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 ``` -## Create Your LaraDock Containers +## Create Your Laradock Containers ``` $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) - [Customize laradock/docker-compose.yml](#CustomizeDockerCompose) - [Clean House](#InstallCleanHouse) - - [LaraDock Dial Tone](#InstallLaraDockDialTone) + - [Laradock Dial Tone](#InstallLaradockDialTone) - [hosts](#AddToHosts) - [Firewall](#FireWall) - [Enable xDebug on php-fpm](#enablePhpXdebug) @@ -265,14 +265,14 @@ View your Site in the Browser Securely Using HTTPS (https://yourdomain.com) ## 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. ## Installation - 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`. @@ -332,7 +332,7 @@ xdebug.cli_color=1 ### 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. - 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`. `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: `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_* images @@ -383,7 +383,7 @@ dcleanlaradockfunction() alias dcleanlaradock=dcleanlaradockfunction ``` - + ## Let's get a dial-tone with Laravel ``` @@ -408,7 +408,7 @@ laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222- ## 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: ``` xDebug status @@ -418,7 +418,7 @@ Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies 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 `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 ### Debug WebSite - In case xDebug is disabled, from the `laradock` folder run: -`./xdebugPhpFpm start`. +`.php-fpm/xdebug start`. - To switch xdebug off, run: -`./xdebugPhpFpm stop` +`.php-fpm/xdebug stop` - Start Remote Debugging - ![DebugRemoteOn](photos/PHPStorm/DebugRemoteOn.png) diff --git a/README-zh.md b/README-zh.md index 2e7e91b..9614e2e 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,14 +1,14 @@ -# LaraDock +# Laradock [![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。 -> 先在使用 LaraDock,然后再学习它们。 +> 先在使用 Laradock,然后再学习它们。 ## 目录 - [Intro](#Intro) @@ -17,7 +17,7 @@ LaraDock 能够帮你在 **Docker** 上快速搭建 **Laravel** 应用。 - [What is Docker](#what-is-docker) - [What is Laravel](#what-is-laravel) - [Why Docker not Vagrant](#why-docker-not-vagrant) - - [LaraDock VS Homestead](#laradock-vs-homestead) + - [Laradock VS Homestead](#laradock-vs-homestead) - [Demo Video](#Demo) - [Requirements](#Requirements) - [Installation](#Installation) @@ -49,27 +49,27 @@ LaraDock 能够帮你在 **Docker** 上快速搭建 **Laravel** 应用。 - [Install Prestissimo](#Install-Prestissimo) - [Install Node + NVM](#Install-Node) - [Debugging](#debugging) - - [Upgrading LaraDock](#upgrading-laradock) + - [Upgrading Laradock](#upgrading-laradock) - [Help & Questions](#Help) ## 介绍 -LaraDock 努力简化创建开发环境过程。 +Laradock 努力简化创建开发环境过程。 它包含预包装 Docker 镜像,提供你一个美妙的开发环境而不需要安装 PHP, NGINX, MySQL 和其他任何软件在你本地机器上。 **使用概览:** 让我们了解使用它安装 `NGINX`, `PHP`, `Composer`, `MySQL` 和 `Redis`,然后运行 `Laravel` -1. 将 LaraDock 放到你的 Laravel 项目中: +1. 将 Laradock 放到你的 Laravel 项目中: ```bash git clone https://github.com/laradock/laradock.git ``` -2. 进入 LaraDock 目录,然后运行这些容器。 +2. 进入 Laradock 目录,然后运行这些容器。 ```bash docker-compose up -d nginx mysql redis @@ -142,22 +142,22 @@ docker-compose up -d nginx mysql redis 最重要的是 Docker 可以运行在开发和生产(相同环境无处不在)。Vagrant 是专为开发,(所以在生产环境你必须每一次重建您的服务器)。 -### 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 可以管理你的管理虚容器。 -运行一个虚拟容器比运行一整个虚拟机快多了 **LaraDock 比 Homestead 快多了** +运行一个虚拟容器比运行一整个虚拟机快多了 **Laradock 比 Homestead 快多了** ## 演示视频 还有什么比**演示视频**好: -- LaraDock [v4.0](https://www.youtube.com/watch?v=TQii1jDa96Y) -- LaraDock [v2.2](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) +- Laradock [v4.0](https://www.youtube.com/watch?v=TQii1jDa96Y) +- Laradock [v2.2](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) ## 依赖 @@ -168,7 +168,7 @@ Homestead 是一个工具,为你控制虚拟机(使用 Homestead 特殊命令) ## 安装 -1 - 克隆 `LaraDock` 仓库: +1 - 克隆 `Laradock` 仓库: **A)** 如果你已经有一个 Laravel 项目,克隆这个仓库在到 `Laravel` 根目录 @@ -189,9 +189,9 @@ git clone https://github.com/laradock/laradock.git **请在开始之前阅读:** 如果你正在使用 **Docker Toolbox** (VM),选择以下任何一个方法: -- 更新到 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)). -如果您使用的是 **Docker Native**(Mac / Windows 版本)甚至是 Linux 版本,通常可以继续阅读这个文档,LaraDock v4 以上版本将仅支持 **Docker Native**。 +- 更新到 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)). +如果您使用的是 **Docker Native**(Mac / Windows 版本)甚至是 Linux 版本,通常可以继续阅读这个文档,Laradock v4 以上版本将仅支持 **Docker Native**。 1 - 运行容器: *(在运行 `docker-compose` 命令之前,确认你在 `laradock` 目录中* @@ -377,7 +377,7 @@ composer create-project laravel/laravel my-cool-app "5.2.*" 3 - 编辑 `docker-compose.yml` 映射新的应用目录: -系统默认 LaraDock 假定 Laravel 应用在 laradock 的父级目录中 +系统默认 Laradock 假定 Laravel 应用在 laradock 的父级目录中 更新 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 ``` -5 - 回到 LaraDock 安装步骤,看看如何编辑 `.env` 的文件。 +5 - 回到 Laradock 安装步骤,看看如何编辑 `.env` 的文件。 ### 运行 Artisan 命令 @@ -477,7 +477,7 @@ composer require predis/predis:^1.0 5 - 你可以用以下代码在 Laravel 中手动测试: ```php -\Cache::store('redis')->put('LaraDock', 'Awesome', 10); +\Cache::store('redis')->put('Laradock', 'Awesome', 10); ``` @@ -766,15 +766,15 @@ sudo chmod -R 777 storage bootstrap/cache 确保你想运行的服务端口(80, 3306, etc.)不是已经被其他程序使用,例如 `apache`/`httpd` 服务或其他安装的开发工具 -### 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}` 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`) -4. 像之前一样使用 LaraDock: `docker-compose up -d nginx mysql`. +3. 升级 Laradock 到 `v4.*.*` (`git pull origin master`) +4. 像之前一样使用 Laradock: `docker-compose up -d nginx mysql`. **说明:** 如果你面临任何上面的问题的最后一步:重建你所有的容器 ```bash @@ -791,9 +791,9 @@ docker-compose build --no-cache ## 帮助 & 问题 -从聊天室 [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) 上直接和项目创始人在线沟通 diff --git a/docs/documentation/index.html b/docs/documentation/index.html index 104a9f4..905dfa1 100644 --- a/docs/documentation/index.html +++ b/docs/documentation/index.html @@ -607,12 +607,12 @@ xdebug.remote_connect_back=1

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.
  • -
  • Start xDebug by default: ./xdebugPhpFpm start.
  • -
  • See the status: ./xdebugPhpFpm status.
  • +
  • Stop xDebug from running by default: .php-fpm/xdebug stop.
  • +
  • Start xDebug by default: .php-fpm/xdebug start.
  • +
  • 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.


diff --git a/docs/documentation/index.xml b/docs/documentation/index.xml index 421db9e..f1db182 100644 --- a/docs/documentation/index.xml +++ b/docs/documentation/index.xml @@ -288,12 +288,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> <ul> -<li>Stop xDebug from running by default: <code>./xdebugPhpFpm stop</code>.</li> -<li>Start xDebug by default: <code>./xdebugPhpFpm start</code>.</li> -<li>See the status: <code>./xdebugPhpFpm status</code>.</li> +<li>Stop xDebug from running by default: <code>.php-fpm/xdebug stop</code>.</li> +<li>Start xDebug by default: <code>.php-fpm/xdebug start</code>.</li> +<li>See the status: <code>.php-fpm/xdebug status</code>.</li> </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> <a name="Install-Deployer"></a></p> @@ -1248,4 +1248,4 @@ e) set it to <code>true</code></p> - \ No newline at end of file + diff --git a/docs/getting-started/index.html b/docs/getting-started/index.html index 0ec90ee..51c198c 100644 --- a/docs/getting-started/index.html +++ b/docs/getting-started/index.html @@ -472,7 +472,7 @@


diff --git a/docs/getting-started/index.xml b/docs/getting-started/index.xml index d7bebb4..ade36fd 100644 --- a/docs/getting-started/index.xml +++ b/docs/getting-started/index.xml @@ -153,7 +153,7 @@ <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>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> <p><br></p> @@ -218,4 +218,4 @@ - \ No newline at end of file + diff --git a/docs/index.html b/docs/index.html index 57d5036..a515354 100644 --- a/docs/index.html +++ b/docs/index.html @@ -614,7 +614,7 @@ PHP CLI - Composer - Git - Linuxbrew - Node - V8JS - Gulp - SQLite - xDebug - En


@@ -953,12 +953,12 @@ xdebug.remote_connect_back=1

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.
  • -
  • Start xDebug by default: ./xdebugPhpFpm start.
  • -
  • See the status: ./xdebugPhpFpm status.
  • +
  • Stop xDebug from running by default: .php-fpm/xdebug stop.
  • +
  • Start xDebug by default: .php-fpm/xdebug start.
  • +
  • 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.


@@ -1954,7 +1954,7 @@ e) set it to true

$root@server:~# apt-get install git
 $root@server:~# git clone https://github.com/laravel/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
 
@@ -1964,7 +1964,7 @@ $root@server:~/laravel/ cd laradock $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
 
@@ -2144,7 +2144,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy
  • Clean House
  • -
  • LaraDock Dial Tone
  • +
  • Laradock Dial Tone
  • hosts
  • Firewall
  • Enable xDebug on php-fpm
  • @@ -2177,7 +2177,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy

    Intro

    -

    Wiring up Laravel, LaraDock [Laravel+Docker] and 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, Laradock [Laravel+Docker] and 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.

    @@ -2188,7 +2188,7 @@ you should be able to adjust accordingly. This guide was written based on Docker
  • 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.
@@ -2268,7 +2268,7 @@ xdebug.cli_color=1

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.

    @@ -2277,7 +2277,7 @@ Here are a few things I use to clean things up.

  • Delete all images containing laradock. 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: Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images

  • @@ -2296,7 +2296,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

    @@ -2327,7 +2327,7 @@ Here are a few things I use to clean things up.

    alias dcleanlaradock=dcleanlaradockfunction

    
    -<a name="InstallLaraDockDialTone"></a>
    +<a name="InstallLaradockDialTone"></a>
     ## Let's get a dial-tone with Laravel
     
     
    @@ -2357,7 +2357,7 @@ laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222-
    
     <a name="enablePhpXdebug"></a>
     ## 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:
     
    @@ -2368,7 +2368,7 @@ Copyright © 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright © 1998-2016 Zend Technologies with Xdebug v2.4.1, Copyright © 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 php-fpm is started and listening for debug info on port 9000.

    @@ -2519,11 +2519,11 @@ Edit: C:\Windows\System32\drivers\etc\hosts.

    • In case xDebug is disabled, from the laradock folder run: -./xdebugPhpFpm start.

      +.php-fpm/xdebug start.

      • To switch xdebug off, run: -./xdebugPhpFpm stop
      • +.php-fpm/xdebug stop
    • Start Remote Debugging

      diff --git a/docs/index.xml b/docs/index.xml index 7f6ab12..c020fbd 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -299,7 +299,7 @@ PHP CLI - Composer - Git - Linuxbrew - Node - V8JS - Gulp - SQLite - xDebug - En <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>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> <p><br></p> @@ -643,12 +643,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> <ul> -<li>Stop xDebug from running by default: <code>./xdebugPhpFpm stop</code>.</li> -<li>Start xDebug by default: <code>./xdebugPhpFpm start</code>.</li> -<li>See the status: <code>./xdebugPhpFpm status</code>.</li> +<li>Stop xDebug from running by default: <code>.php-fpm/xdebug stop</code>.</li> +<li>Start xDebug by default: <code>.php-fpm/xdebug start</code>.</li> +<li>See the status: <code>.php-fpm/xdebug status</code>.</li> </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> <a name="Install-Deployer"></a></p> @@ -1649,7 +1649,7 @@ e) set it to <code>true</code></p> <pre><code>$root@server:~# apt-get install git $root@server:~# git clone https://github.com/laravel/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 </code></pre> @@ -1659,7 +1659,7 @@ $root@server:~/laravel/ cd laradock $root@server:~/chmod +x /usr/local/bin/docker-compose </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 </code></pre> @@ -1839,7 +1839,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy <ul> <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="#FireWall">Firewall</a></li> <li><a href="#enablePhpXdebug">Enable xDebug on php-fpm</a></li> @@ -1872,7 +1872,7 @@ $root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy <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> <p><a name="Installation"></a></p> @@ -1883,7 +1883,7 @@ you should be able to adjust accordingly. This guide was written based on Docker <li>This guide assumes the following: <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> </ul></li> </ul> @@ -1963,7 +1963,7 @@ xdebug.cli_color=1 <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> <ul> @@ -1972,7 +1972,7 @@ Here are a few things I use to clean things up.</p> <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> -<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: <code>Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images</code></p></li> @@ -1991,7 +1991,7 @@ Here are a few things I use to clean things up.</p> } </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> <h1 id="remove-laravel-containers">remove laravel* containers</h1> @@ -2022,7 +2022,7 @@ Here are a few things I use to clean things up.</p> <p>alias dcleanlaradock=dcleanlaradockfunction</p> <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 </code></pre> @@ -2052,7 +2052,7 @@ laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222- <pre><code> &lt;a name=&quot;enablePhpXdebug&quot;&gt;&lt;/a&gt; ## 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: </code></pre> @@ -2063,7 +2063,7 @@ Copyright &copy; 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright &copy; 1998-2016 Zend Technologies with Xdebug v2.4.1, Copyright &copy; 2002-2016, by Derick Rethans ``<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 <code>php-fpm</code> is started and listening for debug info on port 9000.</p> @@ -2214,11 +2214,11 @@ Edit: <code>C:\Windows\System32\drivers\etc\hosts</code>.</p> <ul> <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> <li>To switch xdebug off, run: -<code>./xdebugPhpFpm stop</code></li> +<code>.php-fpm/xdebug stop</code></li> </ul></li> <li><p>Start Remote Debugging</p> @@ -2514,4 +2514,4 @@ git push origin my-fix-branch -f - \ No newline at end of file + diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index b4f0a35..5d5091e 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -4,7 +4,7 @@ #-------------------------------------------------------------------------- # # 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: # https://hub.docker.com/r/laradock/php-fpm/tags/ @@ -22,7 +22,7 @@ MAINTAINER Mahmoud Zalt # Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....) # 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 -# base image (https://github.com/LaraDock/php-fpm). +# base image (https://github.com/Laradock/php-fpm). # # diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 4c1b252..4a12e14 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -4,7 +4,7 @@ #-------------------------------------------------------------------------- # # 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: # https://hub.docker.com/r/laradock/php-fpm/tags/ @@ -22,7 +22,7 @@ MAINTAINER Mahmoud Zalt # Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....) # 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 -# base image (https://github.com/LaraDock/php-fpm). +# base image (https://github.com/Laradock/php-fpm). # # diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 8060fa1..d088ccf 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -4,7 +4,7 @@ #-------------------------------------------------------------------------- # # 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: # https://hub.docker.com/r/laradock/php-fpm/tags/ @@ -22,7 +22,7 @@ MAINTAINER Mahmoud Zalt # Mandatory Software's such as ("mcrypt", "pdo_mysql", "libssl-dev", ....) # 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 -# base image (https://github.com/LaraDock/php-fpm). +# base image (https://github.com/Laradock/php-fpm). # # diff --git a/xdebugPhpFpm b/php-fpm/xdebug similarity index 98% rename from xdebugPhpFpm rename to php-fpm/xdebug index 9fb9e75..8e43202 100755 --- a/xdebugPhpFpm +++ b/php-fpm/xdebug @@ -94,7 +94,7 @@ case $@ in echo "xDebug [Stop | Start | Status] in the ${PHP_FPM_CONTAINER} container." echo "xDebug must have already been installed." echo "Usage:" - echo " ./xdebugPhpFpm stop|start|status" + echo " .php-fpm/xdebug stop|start|status" esac diff --git a/_scripts/travis-build.sh b/travis-build.sh similarity index 100% rename from _scripts/travis-build.sh rename to travis-build.sh diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index c259321..eda75fe 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -4,7 +4,7 @@ #-------------------------------------------------------------------------- # # 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: # https://hub.docker.com/r/laradock/workspace/tags/ @@ -22,7 +22,7 @@ MAINTAINER Mahmoud Zalt # Mandatory Software's such as ("php5.6-cli", "git", "vim", ....) are # 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 -# base image (https://github.com/LaraDock/workspace). +# base image (https://github.com/Laradock/workspace). # # diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index 3645347..1b480e1 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -4,7 +4,7 @@ #-------------------------------------------------------------------------- # # 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: # https://hub.docker.com/r/laradock/workspace/tags/ @@ -22,7 +22,7 @@ MAINTAINER Mahmoud Zalt # Mandatory Software's such as ("php7.0-cli", "git", "vim", ....) are # 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 -# base image (https://github.com/LaraDock/workspace). +# base image (https://github.com/Laradock/workspace). # # diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index 293d592..650870d 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -4,7 +4,7 @@ #-------------------------------------------------------------------------- # # 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: # https://hub.docker.com/r/laradock/workspace/tags/ @@ -23,7 +23,7 @@ MAINTAINER Mahmoud Zalt # Mandatory Software's such as ("php7.1-cli", "git", "vim", ....) are # 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 -# base image (https://github.com/LaraDock/workspace). +# base image (https://github.com/Laradock/workspace). # # From 5c95bb3a0f7f1ac42bc8692d753116aedcc1c6db Mon Sep 17 00:00:00 2001 From: Bojan Bedrac Date: Thu, 20 Apr 2017 13:46:38 +0200 Subject: [PATCH 6/8] Run apt-get update before installing intl extension --- php-fpm/Dockerfile-70 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 4a12e14..d823221 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -290,7 +290,8 @@ RUN if [ ${MSSQL} = true ]; then \ ARG INSTALL_INTL=false RUN if [ ${INSTALL_INTL} = true ]; then \ # Install intl and requirements - apt-get install -y zlib1g-dev libicu-dev g++ && \ + apt-get -y update \ + && apt-get install -y zlib1g-dev libicu-dev g++ && \ docker-php-ext-configure intl && \ docker-php-ext-install intl \ ;fi From e022e7163fde52290510f4fdc6ed66ae62528d74 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Thu, 20 Apr 2017 14:09:57 -0400 Subject: [PATCH 7/8] hopfully making the .env file easier to edit! --- env-example | 80 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/env-example b/env-example index 6d6472c..2362e17 100644 --- a/env-example +++ b/env-example @@ -1,11 +1,17 @@ -### 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=../ -# Data: For all storage systems +### Data Path: +# For all storage systems. DATA_SAVE_PATH=../data -### PHP version (Does not apply to HHVM) +### PHP version +# Applies to the Workspace and PHP-FPM containers (Does not apply to HHVM) # Accepted values: 71 - 70 - 56. PHP_VERSION=70 @@ -13,7 +19,11 @@ PHP_VERSION=70 # Accepted values: hhvm - php-fpm PHP_INTERPRETER=php-fpm -### WORKSPACE Container +############################ +# Containers Customization +############################ + +### WORKSPACE Container ################################################################################################ WORKSPACE_INSTALL_XDEBUG=false WORKSPACE_INSTALL_SOAP=false WORKSPACE_INSTALL_MONGO=false @@ -35,7 +45,7 @@ WORKSPACE_YARN_VERSION=latest WORKSPACE_TIMEZONE=UTC WORKSPACE_SSH_PORT=2222 -### PHP_FPM Container +### PHP_FPM Container ################################################################################################## PHP_FPM_INSTALL_XDEBUG=false PHP_FPM_INSTALL_MONGO=false PHP_FPM_INSTALL_SOAP=false @@ -51,13 +61,13 @@ PHP_FPM_INSTALL_TOKENIZER=false PHP_FPM_INSTALL_INTL=false PHP_FPM_INSTALL_GHOSTSCRIPT=false -### NGINX Container +### NGINX Container #################################################################################################### NGINX_HOST_HTTP_PORT=80 NGINX_HOST_HTTPS_PORT=443 NGINX_HOST_LOG_PATH=./logs/nginx/ NGINX_SITES_PATH=./nginx/sites/ -### Blackfire 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 @@ -67,77 +77,78 @@ BLACKFIRE_CLIENT_TOKEN= BLACKFIRE_SERVER_ID= BLACKFIRE_SERVER_TOKEN= -### APACHE Container +### 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 Container #################################################################################################### MYSQL_DATABASE=default MYSQL_USER=default MYSQL_PASSWORD=secret MYSQL_PORT=3306 MYSQL_ROOT_PASSWORD=root -### Percona Container +### Percona Container ################################################################################################## PERCONA_DATABASE=homestead PERCONA_USER=homestead PERCONA_PASSWORD=secret PERCONA_PORT=3306 PERCONA_ROOT_PASSWORD=root -### MSSQL Container +### MSSQL Container #################################################################################################### MSSQL_DATABASE=homestead MSSQL_PASSWORD=yourStrong(!)Password MSSQL_PORT=1433 -### MARIADB Container +### MARIADB Container ################################################################################################## MARIADB_DATABASE=default MARIADB_USER=default MARIADB_PASSWORD=secret MARIADB_PORT=3306 MARIADB_ROOT_PASSWORD=root -### POSTGRES Container +### POSTGRES Container ################################################################################################# POSTGRES_DB=default POSTGRES_USER=default POSTGRES_PASSWORD=secret POSTGRES_PORT=5432 -### RABBITMQ Container +### 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 Container ############################################################################################ ELASTICSEARCH_HOST_HTTP_PORT=9200 ELASTICSEARCH_HOST_TRANSPORT_PORT=9300 -### MEMCACHED Container +### MEMCACHED Container ################################################################################################ MEMCACHED_HOST_PORT=11211 -### BEANSTALKD CONSOLE +### BEANSTALKD CONSOLE ################################################################################################# BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console BEANSTALKD_CONSOLE_HOST_PORT=2080 -### BEANSTALKD Container +### BEANSTALKD Container ############################################################################################### BEANSTALKD_HOST_PORT=11300 -### SELENIUM Container +### SELENIUM Container ################################################################################################# SELENIUM_PORT=4444 -### MINIO Container +### MINIO Container #################################################################################################### MINIO_PORT=9000 -### ADMINER Container +### ADMINER Container ################################################################################################## ADM_PORT=88 -### PHP MY ADMIN Container +### PHP MY ADMIN Container ############################################################################################# # PMA_DB_ENGINE=mariadb PMA_DB_ENGINE=mysql PMA_USER=default @@ -145,36 +156,45 @@ PMA_PASSWORD=secret PMA_ROOT_PASSWORD=secret PMA_PORT=88 -### VARNISH Container +### 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 Proxy 1 Container ########################################################################################## VARNISH_PROXY1_CACHE_SIZE=128m VARNISH_PROXY1_BACKEND_HOST=workspace VARNISH_PROXY1_SERVER=SERVER1 -### Varnish Proxy 2 Container +### Varnish Proxy 2 Container ########################################################################################## VARNISH_PROXY2_CACHE_SIZE=128m VARNISH_PROXY2_BACKEND_HOST=workspace VARNISH_PROXY2_SERVER=SERVER2 -### HAPROXY Container +### HAPROXY Container ################################################################################################## HAPROXY_HOST_HTTP_PORT=8085 -### JENKINS Container +### JENKINS Container ################################################################################################## JENKINS_HOST_HTTP_PORT=8090 JENKINS_HOST_SLAVE_AGENT_PORT=50000 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) 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 ... From e92286c3812f01d8c2dd7e593abcaded9c2ae8db Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Thu, 20 Apr 2017 14:34:42 -0400 Subject: [PATCH 8/8] more styling for the .env --- env-example | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/env-example b/env-example index 2362e17..a5db168 100644 --- a/env-example +++ b/env-example @@ -4,19 +4,23 @@ ### Application Path # Point to your application code, will be available at `/var/www`. + APPLICATION=../ ### Data Path: # For all storage systems. + DATA_SAVE_PATH=../data ### PHP version # Applies to the Workspace and PHP-FPM containers (Does not apply to HHVM) -# Accepted values: 71 - 70 - 56. +# Accepted values: 71 - 70 - 56 + PHP_VERSION=70 ### PHP interpreter # Accepted values: hhvm - php-fpm + PHP_INTERPRETER=php-fpm ############################ @@ -24,6 +28,7 @@ PHP_INTERPRETER=php-fpm ############################ ### WORKSPACE Container ################################################################################################ + WORKSPACE_INSTALL_XDEBUG=false WORKSPACE_INSTALL_SOAP=false WORKSPACE_INSTALL_MONGO=false @@ -46,6 +51,7 @@ WORKSPACE_TIMEZONE=UTC WORKSPACE_SSH_PORT=2222 ### PHP_FPM Container ################################################################################################## + PHP_FPM_INSTALL_XDEBUG=false PHP_FPM_INSTALL_MONGO=false PHP_FPM_INSTALL_SOAP=false @@ -62,6 +68,7 @@ PHP_FPM_INSTALL_INTL=false PHP_FPM_INSTALL_GHOSTSCRIPT=false ### NGINX Container #################################################################################################### + NGINX_HOST_HTTP_PORT=80 NGINX_HOST_HTTPS_PORT=443 NGINX_HOST_LOG_PATH=./logs/nginx/ @@ -86,6 +93,7 @@ APACHE_HOST_LOG_PATH=./logs/apache2 PHP_SOCKET=php-fpm:9000 ### MYSQL Container #################################################################################################### + MYSQL_DATABASE=default MYSQL_USER=default MYSQL_PASSWORD=secret @@ -93,6 +101,7 @@ MYSQL_PORT=3306 MYSQL_ROOT_PASSWORD=root ### Percona Container ################################################################################################## + PERCONA_DATABASE=homestead PERCONA_USER=homestead PERCONA_PASSWORD=secret @@ -100,11 +109,13 @@ PERCONA_PORT=3306 PERCONA_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 @@ -112,12 +123,14 @@ 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 @@ -125,76 +138,103 @@ 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 ### ADMINER Container ################################################################################################## + ADM_PORT=88 ### PHP MY ADMIN Container ############################################################################################# -# PMA_DB_ENGINE=mariadb + +# Accepted values: mariadb - mysql + PMA_DB_ENGINE=mysql + +# Credentials/Port: + PMA_USER=default PMA_PASSWORD=secret PMA_ROOT_PASSWORD=secret PMA_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 Container ################################################################################################## + +# Proxy 1 + VARNISH_PROXY1_CACHE_SIZE=128m VARNISH_PROXY1_BACKEND_HOST=workspace VARNISH_PROXY1_SERVER=SERVER1 -### Varnish Proxy 2 Container ########################################################################################## +# Proxy 2 + VARNISH_PROXY2_CACHE_SIZE=128m VARNISH_PROXY2_BACKEND_HOST=workspace VARNISH_PROXY2_SERVER=SERVER2 ### HAPROXY Container ################################################################################################## + HAPROXY_HOST_HTTP_PORT=8085 ### JENKINS Container ################################################################################################## + JENKINS_HOST_HTTP_PORT=8090 JENKINS_HOST_SLAVE_AGENT_PORT=50000 JENKINS_HOME=./jenkins/jenkins_home ##### TO BE CONTINUE ................................. + # ......... Missing: neo4j mongo rethinkdb redis aerospike pgadmin... # ......... # ......... + + ############################ # Miscellaneous ############################ # 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