Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker port trouble #25

Closed
RyoIshikawa-h opened this issue Oct 25, 2023 · 1 comment
Closed

docker port trouble #25

RyoIshikawa-h opened this issue Oct 25, 2023 · 1 comment

Comments

@RyoIshikawa-h
Copy link

Thanks for the great development.
When I create an environment with docker container in wsl on windows, if the port number mapped in docker-compose.yml and the port number described in server.js are the same, the server cannot start and does not output any errors. I imagine this is related to something in this library. Do you have any idea what it could be?

For example, in the following example, node server.js will not start, and i must either change the mapping to 8080:8081 or devise a way to change the port specification in server.js to 8082.

version: '3' services: app: container_name: app build: context: . dockerfile: Dockerfile restart: always tty: true volumes: - type: bind source: . target: /app ports: - 8080:8080

@RyoIshikawa-h
Copy link
Author

Sorry, my lack of web development knowledge was not the problem with this library.
I had to specify the server.js host as 0.0.0.0.
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant