nginx:stable-alpine for lumen application
190
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
Content type
Image
Digest
Size
9 MB
Last updated
almost 6 years ago
docker pull n0bility6/nginx:stable-alpine