cd nginx-letsencrypt
docker-compose up -d
cd ..
From now on, all docker container started with special environment variables LETSENCRYPT_HOST
, LETSENCRYPT_EMAIL
and VIRTUAL_HOST
will be accessible under HTTPS behind NGINX with a Let's Encrypt signed certificate.
- Copy the file
.env.template
to.env
- Configure the variables in
.env
file - run
source .env
to load the env vars - run
docker-compose up -d
- enjoy