I am trying to get a rails app running with traefik on front, this is working but I have some problems with webpack-dev-server
, this normally runs using port 3035, so I need to open this port and route the request to the container running it.I add a new entryPoint:
webpack:
address: ":3035"
http:
redirections:
entryPoint:
scheme: https
and set the labels like this:
labels:
- "traefik.http.routers.${PROJECT_NAME}-webpack.entrypoints=webpack"
- "traefik.http.routers.${PROJECT_NAME}-webpack.rule=Host(project.test)"
- "traefik.http.routers.${PROJECT_NAME}-webpack.service=${PROJECT_NAME}-webpack"
- "traefik.http.routers.${PROJECT_NAME}-webpack.tls=true"
- "traefik.http.services.${PROJECT_NAME}-webpack.loadbalancer.server.port=3035"
- "traefik.http.routers.${PROJECT_NAME}-webpack.middlewares=${PROJECT_NAME}-webpack-headers"
- "traefik.http.middlewares.${PROJECT_NAME}-webpack-headers.headers.accesscontrolalloworigin=origin-list-or-null"
it is not working, but not sure where is the error. Would be great if anyone could help
thanks