Skip to content

Commit 205b6e9

Browse files
Romain BastideMadCat34
authored andcommitted
Update README.md
Signed-off-by: MadCat34 <[email protected]>
1 parent d7982da commit 205b6e9

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ $ composer static-analysis
111111

112112
## Using docker-compose
113113

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/);
115115
it uses the provided `Dockerfile` to build a docker image for the `laminas` container created with `docker-compose`.
116116

117117
Build and start the image and container using:
@@ -131,18 +131,32 @@ $ docker-compose run laminas composer install
131131

132132
Some composer packages optionally use additional PHP extensions.
133133
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` :
135135

136136
```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+
;
139151
```
140152

141153
then re-run the `docker-compose up -d --build` line as above.
142154

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`
144156
> statements later to reduce the number of layers created by your image.
145157
158+
> [install-php-extensions](https://github.com/mlocati/docker-php-extension-installer) is a script which easily installs PHP extensions in Docker containers.
159+
146160
## Web server setup
147161

148162
### Apache setup

0 commit comments

Comments
 (0)