Skip to content
Portainer docker container over SSL Certificate using Let's Encrypt automated by our webproxy docker-compose-letsencrypt-nginx-proxy
Branch: master
Clone or download
Latest commit 9cb9527 Dec 17, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Network of webproxy Dec 11, 2017
.env.sample Network of webproxy Dec 11, 2017
.gitignore Network of webproxy Dec 11, 2017
LICENSE Initial commit Nov 13, 2017
docker-compose-with-password.yml Fix typo Dec 17, 2017
docker-compose.yml fix SSL for all internal pages Dec 11, 2017 Fix typo Dec 17, 2017 fix typo Dec 17, 2017

Docker Portainer running with auto generate/renew Let's Encrypt Certificate

With this repo you will be able to set up the fantastic Portainer as a container over SSL auto generated and auto renewed by our Web Proxy.

Portainer Enviornment


In order to use this compose file (docker-compose.yml) you must have:

  1. docker
  2. docker-compose
  3. docker-compose-letsencrypt-nginx-proxy-companion

How to use

  1. Clone this repository:
git clone
  1. Make a copy of our .env.sample and rename it to .env:

Update this file with your preferences.

# docker-portainer-letsencrypt
# Portainer configured to work along with our Web Proxy
# This is the .env file to set up your portainer enviornment

# Container name for your Portainer

# Path where your Portainer files will be located

# Password for Admin user

# Your domain (or domains)

# Main domain for SSL certificate

# Your email for Let's Encrypt register

# Path to the certificates
# If you use our webproxy should be:
# /home/user/webproxy/data/certs

# SSL Certificates previously generated
# You may use below webproxy to generate your ssl certificate

# Network name
# Your container app must use a network conencted to your webproxy 

  1. Start your container

You can run our script, and it will use your predefined password:

# ./

Or you can simply start your compose enviornment:

# docker-compose up -d

If you run only docker-compose up -d you will be prompted to set your admin passowrd when accessing your browser.

This container must be in a network connected to your webproxy containers or use the same network of the webproxy.

Please keep in mind that when starting for the first time it may take a few moments (even a couple minutes) to get your Let's Encrypt certificates generated.

Any further Portainer configuration please check Portainer Official Documentation

You can’t perform that action at this time.