Public Repository

Last pushed: 2 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 nginx.

Create File: docker-compose.yml

version: '3'
services:
    nginx:
        image: knnleow/nginx-php-selfsignedcert:1.2
        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:
    letsencrypt: {}
    data01: {}

Execute Command to start a new nginx instance:

docker-compose up

If you are running this on Server with 512MBytes RAM, please use the following link to tune up the system before running, else the mysql server will keep crashing on you when loaded.
Step 01: Add swapfile
follow instruction from URL: https://www.kuenn.co/how-to-ubuntu-add-swapfile/
Step 02: Reboot Server
$ sudo init 6

Docker Pull Command
Owner
knnleow