Skip to content
Easy setup of nginx for reverse proxy and ssl off loading
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
webapp
.gitignore
Dockerfile
Dockerfile.nginx
README.md
docker-compose.yml
nginx.conf

README.md

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
You can’t perform that action at this time.