Public | Automated Build

Last pushed: 2 years ago
Short Description
PHP-FPM and Nginx Docker Image based on Debian
Full Description

Nginx Docker Image


The quickest but not the best way to get it up is:

docker run --detach --publish 80:80/tcp --publish 443:443/tcp --interactive --tty --name debian-nginx creased/debian-nginx

Please consider using:

docker create --publish 80:80/tcp --publish 443:443/tcp --interactive --tty --name debian-nginx creased/debian-nginx
docker start debian-nginx

When done, turn on your web browser and crawl your docker machine (e.g., to see your phpinfo().


  • /etc/nginx/: Nginx's configuration directory ;
  • /etc/php5/fpm/: PHP-FPM's configuration directory ;
  • /usr/share/nginx/: HTTP's data directory ;
  • /var/www/: Alternative to default HTTP's data directory. Must be defined as root directory inside Nginx configuration file to be effective.

Live display of logs

Let's suppose that debian-nginx is the name of your container.

Using docker logs:

docker logs --follow debian-nginx

Using docker attach:

docker attach --detach-keys="ctrl-w" debian-nginx

Run bash on container

Let's suppose that debian-nginx is the name of your container:

docker exec --interactive --tty debian-nginx bash

Then you will be able to manage your configuration files, debug daemons and much more...

Docker Pull Command
Source Repository