hey I'm trying this since a looong time. I have this setup:
proxy:
image: traefik:v2.5.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
- "8080:8080"
command:
- --providers.docker
- --api.insecure=true
- --accesslog
- --log
filmer:
tty: true
image: eduzen/filmer:main
labels:
- "traefik.enable=true"
- "traefik.http.routers.filmer.rule=Host(`f.film.dev`)"
build:
context: .
expose:
- 80
command:
- python
- manage.py
- runserver
- 0.0.0.0:80
My dockerfile also has the expose 80.
I'm doing curl -H Host:f.film.dev http://127.0.0.1
and I'm always getting the 404. I also added f.film.dev to /etc/hosts pointing to 127.0.0.1 and still the same. I tried many things without success. If I go the dashboard of traefik I see the rule in the http
RULE
Host(`proxy-filmer`)
Many thanks!!!