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
- Docker's directory restructure.
- Make Image Compatible with ReadOnly File Systems by removing the envsubst command running in pre-run script by default.
- Update PHP Alpine Version 3.13 -> 3.15
- Update Nginx Version `1.20` -> `1.21`
Copy file name to clipboardExpand all lines: README.md
+21-15Lines changed: 21 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -114,16 +114,17 @@ OR
114
114
However, in an environment where CI/CD pipelines will build the image, they will need to supply some build-time arguments for the image. (tho defaults exist.)
| `PHP_VERSION` | PHP Version used in the Image | `7.4` |
120
-
| `NGINX_VERSION` | Nginx Version | `1.17.4` |
121
-
| `COMPOSER_VERSION` | Composer Version used in Image | `2.0` |
122
-
| `COMPOSER_AUTH` | A Json Object with Bitbucket or Github token to clone private Repos with composer.</br>[Reference](https://getcomposer.org/doc/03-cli.md#composer-auth) | `{}` |
123
-
| `RUNTIME_DEPS` | List of all OS Packages needed for PHP Runtime | `zip` |
124
-
| `XDEBUG_VERSION` | Xdebug Version to use in Development Image | `3.0.3` |
@@ -191,16 +192,21 @@ In `docker/` directory there is `post-build-*` and `pre-run-*` scripts that are
191
192
- In containerized environment, you need to only run one process inside the container. This allows us to better instrument our application for many reasons like separation of health status, metrics, logs, etc.
192
193
193
194
2. Image Build Fails as it try to connect to DB.
194
-
195
-
- A typical application in most Frameworks comes with `Doctrine` ORM, Doctrine if not configured with a DB Version, will try to access the DB at php's script initialization (even at the post-install cmd's), and it will fail when it cannot connect to DB. [Make sure you configure doctrine to avoid this extra DB Check connection.](https://symfony.com/doc/current/reference/configuration/doctrine.html#:~:text=The-,server_version,-option%20was%20added)
195
+
196
+
- A typical scenario in most frameworks that comes with `Doctrine` ORM is that if Doctrine not configured with a DB
197
+
Version, will try to access the DB at php's script initialization (even at the post-install cmd's), and it will
198
+
fail when it cannot connect to
199
+
DB. [Make sure you configure doctrine to avoid this extra DB Check connection.](https://symfony.com/doc/current/reference/configuration/doctrine.html#:~:text=The-,server_version,-option%20was%20added)
196
200
197
201
3. Xdebug not working
198
202
199
-
- Xdebug is configured to work with Linux, to make it work for Mac/Windows, please change Xdebug config in `/docker/php/dev-xdebug.ini` >> `xdebug.client_host` to `host.docker.internal`.
203
+
- Xdebug is configured to work with Linux, to make it work for Mac/Windows, please change `XDEBUG_CLIENT_HOST` env
204
+
variable to `host.docker.internal` in `docker-compose.yml` file.
0 commit comments