I tried this configuration via file provider and I want to have the database publicly available on the port 65441
:
---
entryPoints:
some-db:
address: ':65441'
tcp:
services:
some-db:
loadBalancer:
servers:
- address: "some-db:3306"
routers:
some-db:
rule: 'HostSNI(`*`)'
entrypoints:
- "some-db"
service: "some-db"
Traefik and the database container share a docker network but traefik complains with:
level=error msg="In service \"some-db@file\" server \"some-db:3306\": lookup some-db on 127.0.0.11:53: no such host" routerName=some-db@file serviceName=some-db entryPointName=http
And I don't even know why it says entryPointName=http
— because this should be a tcp routing. So I guess I have something wrong.
I'm using Docker Swarm in case this makes any difference.
Any advice? Thank you in advance!