PHP Classes

File: docker/nginx/Dockerfile

Recommend this page to a friend!
  Classes of Max Stemplevski   Docker Symfony App   docker/nginx/Dockerfile   Download  
File: docker/nginx/Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Docker Symfony App
Symfony project to deploy using Docker
Author: By
Last change:
Date: 1 year ago
Size: 505 bytes
 

Contents

Class file image Download
FROM nginx:alpine COPY nginx.conf /etc/nginx/ COPY default.conf /etc/nginx/conf.d/ RUN apk update && apk upgrade && apk add --no-cache bash RUN set -x ; \ addgroup -g 82 -S www-data ; \ adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1 # Set upstream conf and remove the default conf ARG PHP_UPSTREAM_CONTAINER=php-fpm ARG PHP_UPSTREAM_PORT=9000 RUN echo "upstream php-upstream { server ${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}; }" > /etc/nginx/conf.d/upstream.conf EXPOSE 80