This repo contains some usefull stacks for the Portainer docker tool
The main stack from this repo is an nginx-proxy + letsencrypt companion + portainer stack.
- The nginx-proxy redirects the requests to the good containers based on the domain asked.
- The letsencrypt companion manage the SSL certificates for the requests.
- The portainer is the interface to manage the whole docker installation.
To run the main stack, edit the variables in the script start_main_stack.sh and launch it!
All the stacks from this repo is using the environment variables given by the nginx-proxy image and the letsencrypt image.
The mandatory variables for each sites are:
- VIRTUAL_HOST=mydomain.tld
- LETSENCRYPT_HOST=mydomain.tld
- LETSENCRYPT_EMAIL=mymail@adresse.tld
And, sometimes, it uses those variables as well:
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=443
For the VIRTUAL_* variables, check the documentation on https://hub.docker.com/r/jwilder/nginx-proxy/ And for the LETSENCRYPT_* variables, the documentation https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/