Skip to content

Commit e402bbf

Browse files
committed
Remove fpm open port in prod image
1 parent 3d117cd commit e402bbf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docker/php-flex/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ RUN apk add --no-cache nginx
166166
COPY ./docker/nginx/files/etc/nginx /etc/nginx
167167

168168
RUN echo "upstream php-upstream { server 127.0.0.1:9000; }" > /etc/nginx/conf.d/upstream.conf
169+
RUN sed -i 's/listen = 0.0.0.0:9000/listen = 127.0.0.1:9000/g' /usr/local/etc/php-fpm.conf
169170

170171
EXPOSE 80
171172

docs/technical.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ services:
226226
- "DATABASE_URL=postgresql://<USER>:<PASSWORD>@<URL>/<DB>?serverVersion=11&charset=utf8"
227227
```
228228

229+
The image exposes a `:80` port.
230+
229231
If you want to initialize the DB with production data, run the following command into the container:
230232

231233
```bash

0 commit comments

Comments
 (0)