Public Repository

Last pushed: 10 months ago
Short Description
nginx with php-fpm, self-sign-cert, ubuntu 16.04
Full Description

A Dockerfile that installs ubuntu 16.04 with nginx 1.10.0, and php-fpm 7.0 based on
docker-nginx-fpm-ssl. Database not included.

Use the following docker-compose.yml for quick stand up wordpress with mysql 5.7.

Create File: docker-compose.yml

version: '2'
services:
  nginx:
     image: knnleow/nginx-php-selfsignedcert:1.1
     environment:
          SERVER_NAME: server02.demo.co
          mysslsubject: "/C=SG/ST=Singapore/L=Singapore/O=demo.co/OU=IT_Dept/CN=server02.demo.co/emailAddress=admin@demo.co"
         myloginuser: user02
         myregion: Asia
         mycountry: Singapore
     ports:
         - 9080:80
         - 9443:443
     volumes:
         - ./nginx/log:/var/log/nginx
         - nginx-sites-available:/etc/nginx/sites-available
         - letsencrypt:/etc/letsencrypt
         - data01:/var/www/html
volumes:
    nginx-sites-available: {}
    letsencrypt: {}
    data01: {}

Execute Command to start a new nginx instance:

docker-compose up
Docker Pull Command
Owner
knnleow

Comments (0)