docker-letsencrypt | Handle your certs behind a proxy | TLS library
kandi X-RAY | docker-letsencrypt Summary
kandi X-RAY | docker-letsencrypt Summary
Handle your certs behind a proxy
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-letsencrypt
docker-letsencrypt Key Features
docker-letsencrypt Examples and Code Snippets
kubectl exec -it -- bash -c 'EMAIL=fred@fred.com DOMAINS=example.com foo.example.com ./fetch_certs.sh'
kubectl exec -it -- bash -c 'DOMAINS=example.com foo.example.com ./save_certs.sh'
kubectl exec -it -- bash -c 'EMAIL=fred@fred.com DOMAINS=example.com foo.example.com SECRET_NAME=foo DEPLOYMENTS=bar ./refresh_certs.sh'
Community Discussions
Trending Discussions on docker-letsencrypt
QUESTION
I want to run multiple containerized web apps behind a containerized reverse proxy. I am using nginx-proxy as a reverse proxy and letsencrypt-nginx-proxy-companion for creation, renewal, and use of Let's Encrypt certificates.
Each of the web apps has a set of dependencies (containers themself) and could be managed by one docker-compose file. However, currently, reverse proxy service, certificate service, and all web apps are in the same compose file. I just run docker-compose up -d
and all my web apps are running.
As you see I am using docker-compose to set up my whole server infrastructure by just running one command. However, it feels a bit like I am misusing or even abusing docker-compose since I am bundling independent applications together.
Is it ok to bundle multiple containers, which do not belong together, in one docker-compose for convenience, or is there a better way to set up everything with one command?
...ANSWER
Answered 2021-Jan-02 at 09:25I think that it's totally fine and this is the purpose of docker-compose.
If you do wish kind of separation you can always split a group of containers into a separate docker-compose and run whatever you need in a single command.
For example, if you split into to groups, and name the first file as docker-comopose-app-a.yaml
and docker-compose-app-b.yaml
you can run them together with:
QUESTION
I'm using this library, and it works as expected. I just want to add an attribute client_max_body_size 50M
to Nginx, but where to add it in the docker-compose file:
ANSWER
Answered 2019-Jul-25 at 23:19You need to create a docker file with that configuration and add build config in the docker-compose file.
First, create a Dockerfile named nginx_proxy.df with the following content.
QUESTION
I am trying to init container with existing configurations files I have. The files that I have are nginx.conf and ssl.conf. The volumes configuration is set like this:
...ANSWER
Answered 2019-Jul-09 at 07:17So I was able to reproduce your issue
QUESTION
I am trying to containerize all things related to my web app using Docker Compose, including Nginx & SSL Certificates. To do this I am using the Nginx Proxy image from JWilder and the LetsEncrypt Companion, but am having trouble getting the nginx proxy to work, result ends up being:
Nginx 502 Bad Gateway
[error] 31160#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server: domain.com, request: "GET /dev/ HTTP/1.1", upstream: "webapp://127.0.0.1:8080", host: "domain.com"
This only happened when trying to set up the Nginx proxy and SSL certificates so I know it's a configuration issue for either or both of these containers. If anyone can spot where I am going wrong, I would be extremely grateful!
Here are the containers in question:
...ANSWER
Answered 2019-Jan-06 at 12:48Since nginx and webapp are on two separate containers, nginx can't reach webapp on localhost(127.0.0.1) as you've configured for upstream:
QUESTION
I have been fighting with this configuration for days now and whatever I do I cannot get it to work completely. Can anyone help me please ??
I am using this solution described here: https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion which works perfectly for all my other containers but not for gitlab. Using this method only the gitlab login page is fully secured once logged in the green padlock and text Secure goes away and the https tells me; "Your connection to this site is not fully secure". I have checked the logs inside gitlab container, it finds the ssl certificates fine and gives no other errors or indication that something is wrong. Anyone?
file: start.up
...ANSWER
Answered 2018-Mar-21 at 11:37I think you are missing the nginx config in your docker-compose.yml.
QUESTION
I'm running docker-letsencrypt through a docker-compose.yml
file. It comes with PHP. I'm trying to run PHP composer with it. I can install composer while being in the container through bash
, but that won't stick when I recreate the container. How do I keep a permanent install of composer in an existing container that doesn't come with compose by default?
My docker-compose.yml
looks like this:
ANSWER
Answered 2018-Mar-12 at 12:24You're right about your comment about the command
option, it will indeed be run every time you launch your container.
One workaround would be to create your own dockerfile, as follow :
QUESTION
I have followed the directions for the recommended method of separating containers issued here: https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion by creating a docker-compose.yml
file as follows:
ANSWER
Answered 2017-Apr-26 at 21:12well, for one thing I noticed I had mounted the path to the certs for nginx-letsencrypt twice (one leftover entry from the example). I fixed that but it didn't help
the fix seemed to be to remove the volumes and re-add them. something got weird, perhaps in the order in which I ran the containers, or all the experimentation. so I've moved on but I'm not sure I know what the problem was
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-letsencrypt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page