I'm a new user of Docker and Traefik, and I'm having trouble getting port 443 to route to my container (running on Ubuntu 18.04)
The container runs a large executable (FileMaker Sever) which has an admin console on port 443. This container definitely works as expected — if I close Traefik, and run the container with port 443 published, I can get to the admin console without a problem:
version: "3.9"
services:
fms-docker:
container_name: fms-docker
image: "fms-19-4:final"
ports:
- "443:443"
privileged: true
However, I'd like to use Traefik to route things, so that I can run more than one instance of the server (not for load-balancing, but to allow two instances of the server on one machine).
My Traefik instance is bound to port 443, Docker is set as a provider, and there is a suitable entrypoint defined in its config file:
entryPoints:
websecure:
address: :443
The Traefik admin console (port 8080) shows that everything is up and running as expected.
I use Docker Compose to configure the FileMaker container using a yml file:
version: "3.9"
services:
fms-docker:
container_name: fms-docker
image: "fms-19-4:final"
ports:
- 443
privileged: true
labels:
- traefik.enable=true
- traefik.http.routers.Route-WebSecure.rule=Host(`myfilemakersever.com`)
- traefik.http.routers.Route-WebSecure.entrypoints=websecure
- traefik.http.routers.Route-WebSecure.tls=true
- traefik.http.routers.Route-WebSecure.service=Service-WebSecure
- traefik.http.services.Service-WebSecure.loadbalancer.server.port=443
When I start the container, Traefik detects it, and creates the route websecure->Route-WebSecure->Service-WebSecure using TLS (I can see it on the Traefik console, and there are no warnings)
My problem is that when I try to access https://myfilemakersever.com, the connection just times out ('Gateway Timeout'). The Docker log files don't show any errors.
Can anyone help me with what I'm doing wrong? I am absolutely flummoxed!