Skip to content

Commit

Permalink
Remove fpm open port in prod image
Browse files Browse the repository at this point in the history
  • Loading branch information
mRoca committed Apr 15, 2020
1 parent 3d117cd commit e402bbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/php-flex/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ RUN apk add --no-cache nginx
COPY ./docker/nginx/files/etc/nginx /etc/nginx

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

EXPOSE 80

Expand Down
2 changes: 2 additions & 0 deletions docs/technical.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ services:
- "DATABASE_URL=postgresql://<USER>:<PASSWORD>@<URL>/<DB>?serverVersion=11&charset=utf8"
```

The image exposes a `:80` port.

If you want to initialize the DB with production data, run the following command into the container:

```bash
Expand Down

0 comments on commit e402bbf

Please sign in to comment.