rethinkdb Using RethinkDB with Docker Binding WebUI to localhost or disabling


Example

When deploying RethinkDB in production, you want to either turn off or lock down the WebUI. This will only respond to localhost to access the WebUI allowing you to SSH Tunnel to the host machine and access it for diagnostics and troubleshooting.

docker run -d \
   -v host_data_path:/data \
   rethinkdb \
   rethinkdb --bind-cluster all --bind-driver all --bind-http 127.0.0.1 -d /data

If you'd like to completely turn off the WebUI:

docker run -d \
  -v host_data_path:/data \
  rethinkdb \
  rethinkdb --bind-cluster all --bind-driver all --no-http-admin -d /data