Make your Dockerfile something as below -
FROM php:7-fpm
WORKDIR /var/www
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client && docker-php-ext-install mcrypt pdo_mysql
ADD . /var/www
RUN chown -R www-data:www-data /var/www
Port ranges (1.15.10) are specified with the first and last port separated by a hyphen:
listen 127.0.0.1:12345-12399;
listen 12345-12399;
server {
listen 80;
root /path/to/project/public;
index index.html;
server_name project.dev;
location / {
try_files $uri $uri/ @app;
}
location @app {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:3000;
}
location ~ /\. {
access_log off;
deny all;
}
error_log /var/log/nginx/project-error.log error;
access_log /var/log/nginx/project-access.log;
}
Т.е приблизительно если брать VPS, он должен быть в 10 раз меньшей производительности