Embeddinghub is quite easy to deploy and use with Docker. It will listen on port 7462 by default. This can be mapped to the host port using the docker CLI.
docker run -d -p 7462:7462 featureformcom/embeddinghub
Embeddinghub writes to ~/.embeddinghub/data by default. Docker's filesystem is not optimized for heavy write and read workloads. To increase performance, the data directory that Embeddinghub writes to should be mapped to a docker volume.
docker run -d -v /custom/mount:/root/.embeddinghub/data -p 7462:7462 featureformcom/embeddinghub
To interact with the docker container, install the python library using pip.
pip install embeddinghub
Afterwards, we can connect to the instance and start reading and writing to it.
Embeddinghub supports a few different environmental variables that can be used to configure its behavior.
By default, Embeddinghub listens on port 7462, but this can be overrided by setting EMBEDDINGHUB_PORT.
docker run -d -e EMBEDDINGHUB_PORT=7000 -p 7000:7000 featureformcom/embeddinghub
By default, Embeddinghub writes all user data to ~/.embeddinghub/data. On the alpine linux base image, this means it writes to /root/.embeddinghub/data. This can be overrided by setting the EMBEDDINGHUB_DATA flag.
docker run -d -e EMBEDDINGHUB_DATA=/embeddinghub -v /custom/mount:/embeddinghub -p 7462:7462 featureformcom/embeddinghub