Sign inSign up

n0bility6/nginx

By n0bility6

Updated almost 6 years ago

nginx:stable-alpine for lumen application

Image
0

190

n0bility6/nginx repository overview

create nginx.conf with the below details

server {
  listen 80;
  root /var/www/html/lumen/public;
  index index.php index.htm index.html;

  location / {
      try_files $uri $uri/ /index.php?$query_string;
  }

  location /index.php {
      include fastcgi_params;
      fastcgi_connect_timeout 10s;
      fastcgi_read_timeout 10s;
      fastcgi_buffers 256 4k;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_pass php:9000;
  }
}

Dockerfile

FROM nginx:stable-alpine
ADD nginx.conf /etc/nginx/conf.d/default.conf

Tag summary

Content type

Image

Digest

Size

9 MB

Last updated

almost 6 years ago

docker pull n0bility6/nginx:stable-alpine