5000, and this is my docker-compose:
version: '3.3'
services:
flask:
container_name: flask
build: .
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.whoami.rule=Host(`ttest.domain.com`)
- traefik.http.routers.whoami.tls=true
- traefik.protocol=http,https
When I request for ttest.domain.com a 404 page not found will return and Traefik logs is like this:
time="2021-07-05T06:07:49Z" level=error msg="service \"flask-traefik-reverse-proxy\" error: port is missing" providerName=docker container=flask-traefik-reverse-proxy-5b8eb1e1939bb67ea18d4bb3c4133b204dbf71483fcdbbb5b5157341f16ed153
What's wrong?
Where is the port setting?
I've read in tutorials there is no need to port and it reads the port through the docker socket am I wrong?
How does traefik knows it need to go to port 5000? Magic?
is it ok? version: '3.3' services: flask: container_name: flask build: . restart: unless-stopped labels: - traefik.enable=true - traefik.http.services.flask.loadbalancer.server.port=5000 - traefik.http.routers.whoami.rule=Host(`ttest.domain.com`) - traefik.http.routers.whoami.tls=true - traefik.protocol=http,https
test. and see the error message
I did docker-compose down and restarted traefik container I still can see errors related to my service. what can be the reason?
Обсуждают сегодня