I installed docker and downloaded zip archive with docker-compose from generator (http://phpdocker.io/generator). Do you know what this page is? This zip archive is working on my Windows 10 Pro, but on my laptop with Ubuntu 16.04 it crashes. It doesn’t load css, js or images in www dir.
phpdocker/nginx/nginx.conf
server {
listen 80 default;
client_max_body_size 108M;
access_log /var/log/nginx/devel.access.log;
root /var/www/devel/www;
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
fastcgi_pass devel-php-fpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/devel_php_errors.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
}
DockerFile
FROM phpdockerio/php56-fpm:latest
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install php5-mysql php5-xdebug php5-sqlite vim mc \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
WORKDIR "/var/www/devel"
part of docker-compose.yml
devel-once-php-fpm:
build: .
dockerfile: php-fpm/Dockerfile
container_name: devel-php-fpm
volumes:
- ./../projectnette:/var/www/devel
- ./php-fpm/php-ini-overrides.ini:/etc/php5/fpm/conf.d/99-overrides.ini
Do you know what causes the error? What did I do wrong?