Sign inSign up

tchaudhry/nginx-certbot-docker

By tchaudhry

•Updated about 9 years ago

Nginx + Certbot bundle which can obtain a letsencrypt certificate once deployed.

Image
0

967

tchaudhry/nginx-certbot-docker repository overview

Certbot loaded inside the default nginx container.

Sample Compose File:

version: '3'

services:
  web:
    image: tchaudhry/nginx-certbot-docker
    container_name: web
    ports:
      - "80:80"
      - "443:443"
    environment:
      - DOMAIN=example.com
      - [email protected]
    volumes:
      - letsencrypt:/etc/letsencrypt
      - ./config/nginx_config.conf:/etc/nginx/conf.d/default.conf
volumes:
  letsencrypt:

After the container is running, execute certify.sh docker exec web /certify.sh

This command can be cron-ed on the host to autorenew certificates.

Source: https://github.com/tchaudhry91/nginx-certbot-docker⁠

Tag summary

Content type

Image

Digest

Size

68 MB

Last updated

about 9 years ago

docker pull tchaudhry/nginx-certbot-docker