Containers
Lightweight, portable packages containing an application and all its dependencies, providing consistent runtime environments across different systems.
Infrastructure
Containers package applications with their dependencies into isolated, portable units that run consistently across environments.
Docker Example
# Dockerfile for TrustGraph
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
CMD ["node", "server.js"]
# Build and run
docker build -t trustgraph .
docker run -p 8080:8080 trustgraph
TrustGraph Deployment
# docker-compose.yml
version: '3.8'
services:
trustgraph:
image: trustgraph/platform
ports:
- "8080:8080"
depends_on:
- neo4j
- qdrant
neo4j:
image: neo4j:5
ports:
- "7687:7687"
volumes:
- neo4j-data:/data
qdrant:
image: qdrant/qdrant
ports:
- "6333:6333"
volumes:
- qdrant-data:/qdrant/storage
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: trustgraph
spec:
replicas: 3
template:
spec:
containers:
- name: trustgraph
image: trustgraph/platform:latest
ports:
- containerPort: 8080
See Also
Examples
- •Docker container running TrustGraph with Neo4j and all dependencies
- •Kubernetes pod with multiple containers working together