Skip to content

FireGhost/portainer_stacks_samples

Repository files navigation

Portainer Stacks Samples

This repo contains some usefull stacks for the Portainer docker tool

Main stack

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!

Variables from main stack

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/

About

This repo contains some usefull stacks for the Portainer docker tool

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages