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

How to configure host address (0.0.0.0) for server in Docker environment? #451

Open
PastaGringo opened this issue Nov 29, 2024 · 2 comments

Comments

@PastaGringo
Copy link

How to configure host address for server in Docker environment?

Description
I'm trying to run srcbook in a Docker container, but I can't access it from outside the container. The server seems to listen only on localhost by default, even with proper port mapping in Docker.

Current Setup

  • Running srcbook in a Docker container
  • Using npx srcbook@latest start
  • Port mapped correctly in docker-compose
  • Server starts but only accessible inside container

Question
Is there a way to configure the server to listen on 0.0.0.0 instead of localhost? I couldn't find this option in the documentation.

Environment

  • srcbook version: 0.0.15
  • Running in Docker container
@glassBead-tc
Copy link

Reproduced the issue. Working on a fix now.

@glassBead-tc
Copy link

PR: #460

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

2 participants