Chroma database systemd
- Install chroma database as systemd daemon.
- Run daemon with your regular user.
- Linux
- miniconda
- chromadb
Step 1: Clone repo.
$ cd ~
$ git clone https://github.com/adrianmarino/chromadb-systemd.git
$ mv chromadb-systemd chromadb
$ cd chromadb
Step 2: Create conda environment required to run chromadb.
$ conda env update -f environment.yml
Step 3: Copy service file user level systemd config path:
$ cp chromadb.service ~/.config/systemd/user/
Step 4: Refresh systemd daemon with updated config.
$ systemctl --user daemon-reload
Step 5: Start service on boot.
$ systemctl --user enable chromadb
Step 6: Start chromadb as systemd daemon.
$ systemctl --user start chromadb
config.conf
:
CONDA_PATH="/opt/miniconda3"
ENV="chromadb"
PORT="9090"
HOST="0.0.0.0"