-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LETSENCRYPT_HOST and VIRTUAL_HOST vars to docker-compose.yml #432
Conversation
Adding the two environment variables to the stack to allow the usage with jwilder/nginx-proxy and jrcs/letsencrypt-nginx-proxy-companion with Portainer via repo-pull
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Jan-NiklasB thank you so much for your suggestion and sorry for the long delay. Would you be so kind to explain please in a little more detail what you want to achieve? The Zammad stack does not read the variable |
Hey, I or we are using zammad as support system in it's dockerized form, administrated via Portainer. The point where it's getting difficult is that we're running multiple services on one server on different subdomains routed via ngingx reverse proxy by their subdomain (see jwilder/nginx-proxy ). For these two containers to do the SSL certification and reverse-proxy setup, they need the mentioned env vars to be set accordingly. So when using the Portainer github handle it's impossible (as far as I understand) to set these env vars without manuall editing. Since I guess that we're not the only ones who use this setup I guess it would be a good idea to include these env vars into the default compose file, since there is no place where the Hope this is now a bit clearer. |
@Jan-NiklasB but these two containers don't run inside of the Zammad stack, do they? With repo mode from Portainer, it's not possible to specify additional services for the current stack since you cannot specify additional .yml files, is it? That's what I don't understand. Did I miss something? |
Hey, yes, these containers run seperate, but read in the env-vars of the other containers to do their job. Or to be more clear, when I have specified these env-vars in my compose file and start up the stack, ngingx and LE notice this (pls don't ask me how), read in the env-vars of the newly created containers and, if the mentioned vars are specified, setup the reverse proxy and LE certificate. |
Wow, now I see it - it reads the information from the mounted docker socket… |
Then I'm open to adding these variables in a section below the "regular" variables, with a comment above explaining the situation. Also, https://hub.docker.com/r/nginxproxy/acme-companion lists more variables that are possible in the last example.
Should we then add all of them? Strange though - would it not be better to use labels for such meta information, rather than ENVs which actually get passed inside the container as well? |
That sounds good. For my case I don't need them, but maybe someone else does, so seems useful. In fakt I'm not that experienced in this topic, but your point with the labels sounds right, although I guess they have their reasons for doing it this way... |
Put the ngingx proxy and ACME-companion vars at the end, added a description and missing vars
@mgruner I updated the file in my fork, so it now contains all 4 vars and a short description with link to the github pages |
👏 thank you so much @Jan-NiklasB |
I would like to propose the addition of the mentioned env-vars to the docker-compose.yml file to enable the ability to use the file with Portainer with Repo-Mode when using a reverse proxy and Letsencrypt by jwilder/nginx-proxy and jrcs/letsencrypt-nginx-proxy-companion