/tehdev-certbot

Primary LanguageDockerfileMIT LicenseMIT

Docker image for certbot and nginx

How to use

You need set theese envs for image tehnarenok/certbot:

  • DOMAIN - domain which for which you need to get a ssl certificate
  • EMAIL - your email for Let’s Encrypt
  • HOST - your service name
  • PORT - your service port

You need set depends_on your service (nginx)

Voulmes:

  • :/app/acme-challenge

In nginx volumes:

  • :

example nginx conf

server {
    listen 80;

	...

	location /.well-known/acme-challenge/ {
		autoindex on;
		root /var/usr/acme-challenge/;
	}
}