You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
[](https://microbadger.com/images/janus1990/docker-nginx-php"Get your own image badge on microbadger.com")[](https://microbadger.com/images/janus1990/docker-nginx-php"Get your own version badge on microbadger.com")
1
+
[](https://travis-ci.org/rtucek/docker-nginx-php)[](https://microbadger.com/images/janus1990/docker-nginx-php"Get your own image badge on microbadger.com")[](https://microbadger.com/images/janus1990/docker-nginx-php"Get your own version badge on microbadger.com")
2
2
3
3
## nginx-php Dockerfile
4
4
@@ -10,6 +10,9 @@ Nginx and PHP are compiled in a specific version. Consult the [CHANGELOG.md](./C
10
10
for further version details. [PHP Composer](https://getcomposer.org/) is already installed and ready
11
11
for use.
12
12
13
+
Xdebug is installed as shared extension, but not activated. Start the container with env
14
+
ENABLE_XDEBUG=1 to enable the extension.
15
+
13
16
The Nginx and PHP-FPM master processes are controlled by [Honcho](https://github.com/nickstenning/honcho).
14
17
Honcho was chosen over Supervisor, because honcho will exit and kill the container if either Nginx
15
18
or PHP's master process dye for any reason. If you want have to have the container restarted
@@ -42,6 +45,12 @@ Mount your custom `nginx.conf` file at `/usr/local/nginx/conf/nginx.conf`.
42
45
* Mount your custom `www.conf` file at `/usr/local/etc/www.conf`.
43
46
* Mount your custom `php.ini` file at `/usr/local/php/php.ini`.
44
47
48
+
### Xdebug
49
+
50
+
Xdebug was installed mainly with the idea of providing code coverage for PHPUnit. Thus it's not
51
+
configured for any specific use case. You can [configure Xdebug](https://xdebug.org/docs/all) via
52
+
`php.ini` if desired.
53
+
45
54
### Honcho
46
55
47
56
If you want to overwrite the default Honcho configuration - mount your custom `Procfile` file at `/`.
0 commit comments