4
4
<h3 align =" center " >kickoff-docker-php</h3 >
5
5
<p align =" center " >A complete stack for your PHP project powered by Docker</p >
6
6
<p align =" center " >
7
- <a href="https://github.com/thecodingmachine/kickoff-docker-php/tree/v2.1.1 "><img src="https://img.shields.io/badge/stable-v2.1.1 -green.svg" alt="Stable release: v2.1.1 "></a>
7
+ <a href="https://github.com/thecodingmachine/kickoff-docker-php/tree/v2.2.0 "><img src="https://img.shields.io/badge/stable-v2.2.0 -green.svg" alt="Stable release: v2.2.0 "></a>
8
8
<a href="https://github.com/thecodingmachine/kickoff-docker-php/tree/master"><img src="https://img.shields.io/badge/unstable-master-orange.svg" alt="Unstable release: master"></a>
9
9
<a href="https://travis-ci.org/thecodingmachine/kickoff-docker-php"><img src="https://img.shields.io/travis/thecodingmachine/kickoff-docker-php.svg?label=Travis+CI" alt="Travis CI"></a>
10
10
</p >
@@ -36,7 +36,7 @@ following goals in mind:
36
36
## Features
37
37
38
38
* ** Cross-platform:** Windows, Mac, Linux
39
- * ** A complete stack:** NGINX, PHP-FPM 7.1, MySQL 5.7, phpMyAdmin, Redis, RabbitMQ and more to come!
39
+ * ** A complete stack:** NGINX, PHP-FPM 7.1, MySQL 5.7, phpMyAdmin, Redis, RabbitMQ
40
40
* ** Centralized logging** with Graylog
41
41
* Automatic ** HTTPS** on your local environment
42
42
* A powerful ** reverse-proxy** ([ Traefik] ( https://traefik.io/ ) ) which can handle automatic HTTPS (via [ Let's Encrypt] ( https://letsencrypt.org/ ) )
@@ -244,6 +244,8 @@ NGINX is the web server of your PHP application.
244
244
The NGINX configuration located at ` modules/nginx/conf.d/php-fpm.conf ` provides good security defaults. Still, you might
245
245
have to update it according to the PHP framework you wish to use.
246
246
247
+ Example for a Symfony application: https://gist.github.com/gulien/64d8c94c5d0e294ac121ea810794757e .
248
+
247
249
### PHP-FPM
248
250
249
251
The PHP-FPM container has many roles. First, it handles requests from the NGINX container to execute your PHP files.
@@ -259,6 +261,12 @@ zip and more!
259
261
260
262
You are able to find all installed PHP extensions by running ` php -m ` inside your workspace.
261
263
264
+ #### Xdebug
265
+
266
+ Xdebug is a tool for easily debugging your PHP code. We provided simple variables in your ` .env ` file as described below.
267
+
268
+ Example with PhpStorm: https://gist.github.com/gulien/d0933d8f90587a95cec5fd750da41b87 .
269
+
262
270
#### Available tools
263
271
264
272
* Composer* - https://getcomposer.org/
@@ -284,10 +292,12 @@ as defined in the PSR-1 and PSR-2 documents and many more.
284
292
285
293
#### Configuration
286
294
287
- | Variable | Location | Description |
288
- | ----------------------| ---------------| ------------------------------------------------------------|
289
- | PHP_MEMORY_LIMIT | ` config/.env ` | Defines the PHP memory limit of the PHP-FPM container. |
290
- | PHP_FPM_MEMORY_LIMIT | ` config/.env ` | Defines the PHP-FPM memory limit of the PHP-FPM container. |
295
+ | Variable | Location | Description |
296
+ | ----------------------| ---------------| ---------------------------------------------------------------------|
297
+ | PHP_MEMORY_LIMIT | ` config/.env ` | Defines the PHP memory limit of the PHP-FPM container. |
298
+ | PHP_FPM_MEMORY_LIMIT | ` config/.env ` | Defines the PHP-FPM memory limit of the PHP-FPM container. |
299
+ | XDEBUG_ENABLED | ` config/.env ` | If true, enables Xdebug. |
300
+ | XDEBUG_REMOTE_HOST | ` config/.env ` | If Xdebug is enabled, set this variable with your local IP address. |
291
301
292
302
### MySQL
293
303
@@ -323,7 +333,7 @@ This should be used only in others environments.
323
333
324
334
### Redis
325
335
326
- Redis is the database cache of this stack and it has been configured as the default session handler for PHP .
336
+ Redis is the cache store of this stack.
327
337
328
338
The hostname of Redis in your PHP-FPM container is ` redis ` . To configure Redis to be the cache handler of
329
339
your PHP application, you should refer to the documentation provided by your PHP framework.
0 commit comments