Docker Compose
Below are a set of useful commands to interact with a TrustGraph
pipeline using Docker
.
Compose Files​
Below are the available Docker Compose
files:
Model Deployment | Graph Store | Launch File |
---|---|---|
AWS Bedrock | Cassandra | tg-launch-bedrock-cassandra.yaml |
AWS Bedrock | Neo4j | tg-launch-bedrock-neo4j.yaml |
AzureAI Serverless Endpoint | Cassandra | tg-launch-azure-cassandra.yaml |
AzureAI Serverless Endpoint | Neo4j | tg-launch-azure-neo4j.yaml |
Anthropic API | Cassandra | tg-launch-claude-cassandra.yaml |
Anthropic API | Neo4j | tg-launch-claude-neo4j.yaml |
Cohere API | Cassandra | tg-launch-cohere-cassandra.yaml |
Cohere API | Neo4j | tg-launch-cohere-neo4j.yaml |
Llamafile | Cassandra | tg-launch-llamafile-cassandra.yaml |
Llamafile | Neo4j | tg-launch-llamafile-neo4j.yaml |
Mixed Depoloyment | Cassandra | tg-launch-mix-cassandra.yaml |
Mixed Depoloyment | Neo4j | tg-launch-mix-neo4j.yaml |
Ollama | Cassandra | tg-launch-ollama-cassandra.yaml |
Ollama | Neo4j | tg-launch-ollama-neo4j.yaml |
OpenAI | Cassandra | tg-launch-openai-cassandra.yaml |
OpenAI | Neo4j | tg-launch-openai-neo4j.yaml |
VertexAI | Cassandra | tg-launch-vertexai-cassandra.yaml |
VertexAI | Neo4j | tg-launch-vertexai-neo4j.yaml |
Running Docker Compose Files​
Launch a set of containers using Docker Compose:
docker compose -f <tg-launch-file-here> up -d
List running containers:
docker ps
List running containers and ones that have exited:
docker ps -a
List all volumes:
docker volume ls
When shutting down the TrustGraph
pipeline, it's best to shut down all containers and remove all volumes:
docker compose -f <tg-launch-file-here> down -v
Logging​
The provided TrustGraph
modules all generate logs.
Check container log:
docker logs <container-name-here>
TrustGraph
module container names:
trustgraph-text-completion-1
trustgraph-text-completion-rag-1
trustgraph-prometheus-1
trustgraph-chunker-1
trustgraph-etcd-1
trustgraph-pulsar-manager-1
trustgraph-graph-rag-1
trustgraph-qdrant-1
trustgraph-kg-extract-relationships-1
trustgraph-pulsar-1
trustgraph-embeddings-1
trustgraph-cassandra-1
trusrgraph-neo4j-1
trustgraph-vectorize-1
trustgraph-store-triples-1
trustgraph-store-graph-embeddings-1
trustgraph-grafana-1
trustgraph-kg-extract-definitions-1
trustgraph-kg-extract-topics-1
trustgraph-minio-1
trustgraph-pdf-decoder-1