What might be wrong with my Nuxt / Docker / Traefik config? What might be wrong with my Nuxt / Docker / Traefik config? docker docker

What might be wrong with my Nuxt / Docker / Traefik config?


I know that this is a little late, but you should remove the proxy from the webpack-dev-server and instead set the right rules using labels on your api service.

So if you're using Traefik v2, the label on your nuxt service should be

labels:  - "traefik.http.routers.nuxt.rule=Host(`myhost`)"

then the label on your api should be

labels:  - "traefik.http.routers.api.rule=Host(`myhost`) && PathPrefix(`/api`)"