browsh icon indicating copy to clipboard operation
browsh copied to clipboard

How to configure HTTP endpoint in Docker?

Open zblesk opened this issue 6 years ago • 2 comments

I've managed to get the Browsh container running - partially. This command:

docker run -d --name browsh -p2222:2222 -p4333:4333 -v /cert/path:/etc/browsh/id_rsa -it gcr.io/browsh-193210/baas

starts browsh and I can ssh to port 2222. When I try to curl localhost:4333 however, I only get curl: (56) Recv failure: Connection reset by peer. (I guessed at the port, because that's the one mentioned in the Configuration section of the website.)

So, two questions:

  • how can I set up the HTTP endpoint?
  • how do I configure anything? I see a config file on the website, but no options for configuring the docker container. (I'd expect some env vars or something like that, but have found nothing.) E.g. I'd like to extend the max lifetime of a SSH session.

zblesk avatar Sep 12 '18 07:09 zblesk

Sorry for the delay in responding. I still haven't had a chance to try this myself. But I know you need to actually pass the --http-server-mode flag. So maybe;

docker run -d --name browsh -p2222:2222 -p4333:4333 -v /cert/path:/etc/browsh/id_rsa -it gcr.io/browsh-193210/baas browsh --http-server-mode

Full configuration instructions are here: https://www.brow.sh/docs/config/

tombh avatar Sep 22 '18 13:09 tombh

Is there any sample docker-compose file availabe, that I'm just missing? (Trying my luck. :D )

I guess you can close this issue.

zblesk avatar Sep 25 '20 18:09 zblesk