Generating certs for services that do not use port 80 #800
Replies: 7 comments
-
I'm not certain that I completely understood your question but you can use nginx-proxy's |
Beta Was this translation helpful? Give feedback.
-
Hi @buchdag In my case I have a single service which serves content in 80, 3000 and 3001 ports. Will them be mapped to my VIRTUAL_HOST:3000 and VIRTUAL_HOST:3001 ? |
Beta Was this translation helpful? Give feedback.
-
I have a similar situation. I'm using a nexus container and it serves 3 ports 8081, 8082, 8083. In my manual nginx config, I map them on different names. Is there a way for the companion to map to multiple virtual hosts in the one container? |
Beta Was this translation helpful? Give feedback.
-
I tried VIRTUAL_PORT=8081,8082,8083 with 3 matching VIRTUAL_HOSTS=nexus1.xxxx.xx,nexus2.xxxx.xx,nexus3.xxxx.xx. |
Beta Was this translation helpful? Give feedback.
-
@moracabanas no they won't. The proxy is meant to serve content over the standard 80/443 ports (or another custom pair of ports but you'll lose the ability to use the companion), not to do something like @jseparovic |
Beta Was this translation helpful? Give feedback.
-
I solved my issue swapping my nginx stack with traefik which enables the use of virtual ports for any service "connected" by docker sock and the use of labels. |
Beta Was this translation helpful? Give feedback.
-
I would recommend to use nginx to pair less complicated or microservices with a nice and simple stack with proxy load balancing. Otherwise traefik is a no brainer. |
Beta Was this translation helpful? Give feedback.
-
If I have a
docker-compose
file with a bunch of services, for instancemosquitto
, is generating certs for such services that do not expose post 80? For instance in this case,mosquitto
exposes 2 ports for SSL8883
and8083
. Without a docker-ized solution here, the general instructions are to usecertbot
in standalone mode, and the configuration formosquitto
links against the letsencrypt directory directly. (reference)Beta Was this translation helpful? Give feedback.
All reactions