Sign inSign up

nickbreen/nginx

By nickbreen

Updated over 10 years ago

A simple NGINX FastCGI proxy for PHP-FPM+Wordpress

Image
0

1.7K

nickbreen/nginx repository overview

A simple NGINX FastCGI proxy for PHP+WordPress.

See https://codex.wordpress.org/Nginx for an explanation of configuration of Nginx.

Easiest thing to do is to link to the wordpress:fpm process.

docker-compose.yml example:

www:
  build: www
  links:
    - wp:fastcgi
  volumes_from:
    - wp
  ports:
    - '8080:80'

wp:
  image: wordpress:fpm
  links:
    - db:mysql
  ...

...

Configure the document root (etc) in conf.d/default.conf.

server {
  root /var/www/html;
  ...
}

Also, this image assumes that the FastCGI process is on port 9000.

Tag summary

Content type

Image

Digest

sha256:d055baad7

Size

52.7 MB

Last updated

over 10 years ago

docker pull nickbreen/nginx