Skip to content

An example of running certbot inside official nginx docker image.

Notifications You must be signed in to change notification settings

tibudiyanto/docker-nginx-certbot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Running Certbot in Official Nginx Docker Image

This is an example of how to get certbot working in a simple reverse proxy configuration.

ENVIRONMENT VARIABLE:

  • CERTBOT_EMAIL = used for certbot email.
  • DOMAIN_NAME = your domain name.

HOW-TO

  • You definitely want to inspect nginx.conf, and add stuff according to your usecase
  • Add it to your docker-compose file like so.
services:
  ...
  your-service:
    build:
      context: .
      dockerfile: Dockerfile_nginx_certbot
    environments:
      - CERTBOT_EMAIL=x@x.com
      - DOMAIN_NAME=foo.bar.com
  ...

About

An example of running certbot inside official nginx docker image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published