Help with routing

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!!!

Hi @eduzen

Does your filmer container start and run the manage.py? Try publishing an alternative port to test/check independent from traefik.

The proxy-filmer rule is the default rule created for the proxy/traefik container.

Using your configuration but using the traefik/whoami image instead it works as expected.

1 Like

Thanks, @cakiwi, I was digging more into the official docs, and following a different guide I could make it work.
:smile: