Hi,
Can anyone help, I have traefik working for HTTP and HTTPS traffic - no problems. I have placed a mongodb in a container - i know its working as I am port mapping 27017 > 27028 and i connect on 27028.
The only thing I did with traefik was added the extra endpoint, here they are
--entryPoints.http.address=:80,
--entryPoints.https.address=:443,
--entryPoints.mongo.address=:27017,
and then setting up the following labels on the container - but i just cant connect
- traefik.enable=true
- traefik.port=27017
- traefik.tcp.routers.mongo.entrypoints=mongo
- traefik.tcp.routers.mongo.service=mongo
- traefik.tcp.routers.mongo.tls=true
- traefik.tcp.routers.mongo.tls.certresolver=le
- traefik.tcp.services.mongo.loadbalancer.server.port=27017
- traefik.tcp.routers.mongo.rule=HostSNI(`mongo.xxxx.dev`)
Does anyone have a dummy guide of getting mongodb (or tcp) working ?
As far as I know letsencrypt is supposed to work with tcp also.
I am doing something wrong but I have been scratching my head for hours
Any help or ideas anyone can offer would be really appreciated
Thanks