WebSocket connection to 'ws://localhost:8002/socket' failed: in Docker #9027
-
I found at #2958 that the solution is this: /** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
serverModuleFormat: "esm",
dev: {
port: 8002,
},
} but it didn't work. Then I tried adding this to dockerfile & that didn't work either: ENV REMIX_DEV_SERVER_WS_PORT 8002 i'm not sure if i have to expose this port too somehow in docker. i don't even know how to do it? i do have how do i fix this in docker? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
had to map port this question had a snippet that solved it for me.
|
Beta Was this translation helpful? Give feedback.
had to map port
8002:8002
indocker-compose.yml
to fix this.this question had a snippet that solved it for me.
i didn't need to add env variables shown in those stackoverflow answers.apparently, they are for hmr in docker which i haven't tried yet.