Skip to content

hashwagon/nginx-proxy-https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

General

The implementation of nginx reverse proxy is based off of this project: https://hub.docker.com/r/jwilder/nginx-proxy/ and the incorporation of Let's Encrypt from https://github.com/buchdag/letsencrypt-nginx-proxy-companion-compose.

Prerequisites

Docker

docker must be installed, please follow this documentation.

Docker Compose

docker-compose must be installed, please follow this documentation.

Getting Started

Create the following network

docker network create nginx-proxy

Start nginx-proxy and nginx-proxy-le containers

docker-compose up -d

Adding Services Behind nginx-proxy

For separate docker-compose.yml services you wish to put behind the proxy, add the following to the docker-compose.yml file.

    environment:
      LETSENCRYPT_EMAIL: alerts@youremail.com
      LETSENCRYPT_HOST: your.site.com
      VIRTUAL_HOST: your.site.com

And, finally, add the service to the nginx-proxy network.

networks:
  default:
    external:
      name: nginx-proxy

Other

Passing proxy_set_header parameters can be done in the optional proxy.conf file. To enable this, uncomment the following line in the docker-compose.yml file.

# - ./proxy.conf:/etc/nginx/proxy.conf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •