Public Repository

Last pushed: a month ago
Short Description
Image based on thinkbright/docker-nginx that carries Craftcms and plugins.
Full Description

docker-craftcms

Image based on thinkbright/docker-nginx that carries Craftcms and plugins.

The image contains three nginx config blocks that can be used to configure Craft CMS shell environment variables to be available in PHP.

Example nginx.conf

include /etc/nginx/craftcms-main-env.conf;

http {
  include /etc/nginx/craftcms-http-env.conf;

  server {
    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        include /etc/nginx/craftcms-server-env-fastcgi-params.conf;
    }
  }
}
Docker Pull Command
Owner
thinkbright

Comments (0)