Skip to content

Commit

Permalink
fix(nginx, 1.18): add missing default env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
damienwebdev committed Feb 10, 2021
1 parent 22024e4 commit ac225ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
- magento2
environment:
- MAGENTO2_UPSTREAM=magento2
- MAGENTO2_UPSTREAM_PORT=9000
- NGINX_PORT=8000
- NGINX_TLS_PORT=8443
magento2:
image: graycore/magento-php:7.2-fpm-alpine-develop
restart: always
Expand Down
5 changes: 5 additions & 0 deletions nginx/1.18/alpine-develop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ RUN mkdir /etc/nginx/certs \
COPY ./conf/nginx.conf /etc/nginx/
COPY ./conf/default.conf.template /etc/nginx/templates/

ENV MAGENTO2_UPSTREAM=localhost
ENV MAGENTO2_UPSTREAM_PORT=9000
ENV NGINX_PORT=8000
ENV NGINX_TLS_PORT=8443

EXPOSE 8443

WORKDIR /var/www/html

0 comments on commit ac225ce

Please sign in to comment.