Skip to content

evgeny-golubev/docker-nginx-proxy-with-lets-encrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Step 1. Getting set up network

Create a unique network for nginx-proxy and other Docker containers to communicate through.

docker network create nginx-proxy

Step 2. Clone repository

Clone this repository.

git clone [email protected]:evgeny-golubev/docker-nginx-proxy-with-lets-encrypt

Step 3. Running nginx-proxy

Now run the docker-compose command.

cd docker-nginx-proxy-with-lets-encrypt && docker-compose up -d

Step 4. Configure your containers

In your container you must configure the following:

  • Three environment variables: VIRTUAL_HOST, VIRTUAL_PORT (80 by default), LETSENCRYPT_HOST, LETSENCRYPT_EMAIL
environment:
    VIRTUAL_HOST: example.com
    VIRTUAL_PORT: 80
    LETSENCRYPT_HOST: example.com
    LETSENCRYPT_EMAIL: [email protected]
  • Exposing port 80 or change VIRTUAL_PORT if other
expose:
  - 80
  • The Docker network: nginx-proxy
networks:
    default:
        external:
            name: nginx-proxy

About

Docker set up of nginx proxy with lets-encrypt onboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published