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
| PHP_FPM_SERVER_ADDR | string | IP address of remote PHP-FPM server |
48
-
| PHP_FPM_SERVER_PORT | int |Port of remote PHP-FPM server |
49
-
| CUSTOM_HTTPD_CONF_DIR | string | Specify a directory inside the docker where Apache should look for additional config files (`*.conf`).<br/><br/>Make sure to mount this directory from your host into the docker. |
29
+
| Variable | Type |Default |Description |
30
+
|----------|------|---------|-------------|
31
+
| DEBUG_COMPOSE_ENTRYPOINT | bool |`0`|Show shell commands executed during start.<br/>Value: `0` or `1`|
32
+
| TIMEZONE | string |`UTC`|Set docker OS timezone.<br/>(Example: `Europe/Berlin`) |
33
+
| PHP_FPM_ENABLE | bool |`0`|Enable PHP-FPM support.<br/>Value: `0` or `1`|
34
+
| PHP_FPM_SERVER_ADDR | string |`` |IP address or hostname of remote PHP-FPM server |
35
+
| PHP_FPM_SERVER_PORT | int |`9000`| Port of remote PHP-FPM server |
36
+
| CUSTOM_HTTPD_CONF_DIR | string |`` |Specify a directory inside the docker where Apache should look for additional config files (`*.conf`).<br/><br/>This will overwrite the default virtual host including the PHP FPM settings.<br/><br/>Make sure to mount this directory from your host into the docker. |
Mount your local directort `~/my-host-www` into the docker and server those files.
58
+
```bash
59
+
$ docker run -i -p 80:80 -v ~/my-host-www:/var/www/html -t cytopia/apache-2.4
60
+
```
61
+
62
+
**2. Serve PHP files with PHP-FPM**
63
+
64
+
Note, for this to work, the `~/my-host-www` dir must be mounted into the Apache docker as well as into the php-fpm docker.
65
+
66
+
You can also attach other PHP-FPM version: [PHP-FPM 5.4](https://github.com/cytopia/docker-php-fpm-5.4), [PHP-FPM 5.5](https://github.com/cytopia/docker-php-fpm-5.5), [PHP-FPM 5.6](https://github.com/cytopia/docker-php-fpm-5.6), [PHP-FPM 7.0](https://github.com/cytopia/docker-php-fpm-7.0) or [PHP-FPM 7.1](https://github.com/cytopia/docker-php-fpm-7.1)
67
+
68
+
Each PHP-FPM docker also has the option to enable Xdebug and more, see their respective Readme files for futher settings.
69
+
70
+
```bash
71
+
# Start the PHP-FPM docker, mounting the same diectory
0 commit comments