Docker Compose
The Docker Compose self hosted option is the easiest way to get started self hosting Trieve. Things you need- Domain name
- System with at least 4 CPU cores and 8GB of RAM (excluding the cpu embedding servers)
- System with at least 4 CPU cores and >25GB of RAM (including the cpu embedding servers)
Install Docker
Clone Trieve repository
Create .env
file
Start Trieve Services
Start Embedding servers
We offer 2 docker-compose files for embedding servers. One for GPU and one for CPU.Setup Caddy reverse proxy
Install Caddy Edit the CaddyfileSet the following A records for your domain to point to the server IP address.
Edit .env
Most values can be left as default, the ones you do need to edit areAuthorize keycloak redirect URLs
Go to auth.yourdomain.com and login with the default credentials (user: admin password: aintsecure)- Change the Realm from master to trieve
- Go to Clients -> vault -> Settings
- Add the following to the Valid Redirect URIs and Valid Post Logout Redirect URIs