How I cab add route and service to pass queries to external API server.
I use this labels in docker-compose.yml, but it's not working...
labels:
- traefik.enable=true
- traefik.http.routers.project.entrypoints=web
- traefik.http.routers.project.rule=Host(`domain.local`)
- traefik.http.routers.project.middlewares=project-fallback
- traefik.http.routers.project.service=project
- traefik.http.services.project.loadbalancer.server.port=80
- traefik.http.middlewares.project-fallback.errors.status=404
- traefik.http.middlewares.project-fallback.errors.service=project
- traefik.http.middlewares.project-fallback.errors.query=/index.html
- traefik.http.routers.project-api.entrypoints=web
- traefik.http.routers.project-api.rule=Host(`domain.local`) && PathPrefix(`/api`)
- traefik.http.routers.project-api.service=project-api
- traefik.http.services.project-api.loadBalancer.servers.url=http://10.10.10.10:6532
I dont see any routes by this rules in dashboard. Then i remove last label (service project-api), i will see both routes...