Skip to content

Easy setup of nginx for reverse proxy and ssl off loading

Notifications You must be signed in to change notification settings

chanmuls/easy-nginx-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-nginx-on-docker

Easy setup of nginx container for reverse proxy and ssl off loading on docker

Pre-requisite

You should have domain name and routable IP if you want to set up ssl offloading

Set up

If you only want to run with your application,

Build a Dockerfile for that, modify docker-compose.yml, and go to next step.

If you only want to run with this demo

Fill the blank args in service nginx of nginx.conf and go to Build

...
nginx:
    build:
      context: .
      dockerfile: Dockerfile.nginx
      args:
        - domain=
        - port= # Same as web port
        - email=
    hostname: nginx
    ports:
      - "80:80"
      - "443:443"
    links:
      - web

Build

$ docker-compose build

Run

$ docker-compose up

About

Easy setup of nginx for reverse proxy and ssl off loading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published