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
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ $ composer static-analysis
111
111
112
112
## Using docker-compose
113
113
114
-
This skeleton provides a `docker-compose.yml` for use with [docker-compose](https://docs.docker.com/compose/);
114
+
This skeleton provides a `docker-compose.yml`and a `docker-compose.override.yml`for use with [docker-compose](https://docs.docker.com/compose/);
115
115
it uses the provided `Dockerfile` to build a docker image for the `laminas` container created with `docker-compose`.
116
116
117
117
Build and start the image and container using:
@@ -131,18 +131,32 @@ $ docker-compose run laminas composer install
131
131
132
132
Some composer packages optionally use additional PHP extensions.
133
133
The Dockerfile contains several commented-out commands which enable some of the more popular php extensions.
134
-
For example, to install `pdo-pgsql` support for `laminas/laminas-db` uncomment the lines:
134
+
For example, to install `pdo-pgsql` support for `laminas/laminas-db` uncomment the lines`pdo-pgsql`:
135
135
136
136
```sh
137
-
# RUN apt-get install --yes libpq-dev \
138
-
# && docker-php-ext-install pdo_pgsql
137
+
RUN set -eux; \
138
+
install-php-extensions \
139
+
apcu \
140
+
intl \
141
+
opcache \
142
+
zip \
143
+
## Add here all extensions you need
144
+
# memcached \
145
+
# mongodb \
146
+
# redis \
147
+
# mbstring \
148
+
pdo_mysql \
149
+
# pdo_pgsql \
150
+
;
139
151
```
140
152
141
153
then re-run the `docker-compose up -d --build` line as above.
142
154
143
-
> You may also want to combine the various `apt-get` and `docker-php-ext-*`
155
+
> You may also want to combine the various `apt-get` and `install-php-extensions`
144
156
> statements later to reduce the number of layers created by your image.
145
157
158
+
> [install-php-extensions](https://github.com/mlocati/docker-php-extension-installer) is a script which easily installs PHP extensions in Docker containers.
0 commit comments