browsh
browsh copied to clipboard
How to configure HTTP endpoint in Docker?
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.
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/
Is there any sample docker-compose file availabe, that I'm just missing? (Trying my luck. :D )
I guess you can close this issue.