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
{{ message }}
This repository was archived by the owner on Dec 7, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,28 @@
4
4
5
5
This image contain php-7.1 based on alpine with xDebug enabled and Composer installed
6
6
7
+
## Run the image:
8
+
9
+
By default xdebug is enabled, to disable it you need to create a `.env` file which should contain the following variables, but remember to change the value based one what you want to achieve:
10
+
11
+
```
12
+
PHP_XDEBUG_DEFAULT_ENABLE=0
13
+
PHP_XDEBUG_REMOTE_ENABLE=0
14
+
PHP_XDEBUG_REMOTE_HOST=127.0.0.1
15
+
PHP_XDEBUG_REMOTE_PORT=9001
16
+
PHP_XDEBUG_REMOTE_AUTO_START=0
17
+
PHP_XDEBUG_REMOTE_CONNECT_BACK=0
18
+
PHP_XDEBUG_IDEKEY=docker
19
+
PHP_XDEBUG_PROFILER_ENABLE=0
20
+
PHP_XDEBUG_PROFILER_OUTPUT_DIR=/tmp
21
+
```
22
+
23
+
Then run the docker and specify the env file that you have created like this
24
+
25
+
```
26
+
docker run --env-file .env -p 80:80 zaherg/php-7.1-xdebug-alpine
0 commit comments