Skip to main content

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 DeploymentGraph StoreLaunch File
AWS BedrockCassandratg-launch-bedrock-cassandra.yaml
AWS BedrockNeo4jtg-launch-bedrock-neo4j.yaml
AzureAI Serverless EndpointCassandratg-launch-azure-cassandra.yaml
AzureAI Serverless EndpointNeo4jtg-launch-azure-neo4j.yaml
Anthropic APICassandratg-launch-claude-cassandra.yaml
Anthropic APINeo4jtg-launch-claude-neo4j.yaml
Cohere APICassandratg-launch-cohere-cassandra.yaml
Cohere APINeo4jtg-launch-cohere-neo4j.yaml
LlamafileCassandratg-launch-llamafile-cassandra.yaml
LlamafileNeo4jtg-launch-llamafile-neo4j.yaml
Mixed DepoloymentCassandratg-launch-mix-cassandra.yaml
Mixed DepoloymentNeo4jtg-launch-mix-neo4j.yaml
OllamaCassandratg-launch-ollama-cassandra.yaml
OllamaNeo4jtg-launch-ollama-neo4j.yaml
OpenAICassandratg-launch-openai-cassandra.yaml
OpenAINeo4jtg-launch-openai-neo4j.yaml
VertexAICassandratg-launch-vertexai-cassandra.yaml
VertexAINeo4jtg-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