LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
services:
db:
image: "pgvector/pgvector:pg15"
container_name: unstract-db
restart: unless-stopped
# set shared memory limit when using docker-compose
shm_size: 128mb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./scripts/db-setup/db_setup.sh:/docker-entrypoint-initdb.d/db_setup.sh
env_file:
- ./essentials.env
labels:
- traefik.enable=false
redis:
image: "redis:7.2.3"
container_name: unstract-redis
restart: unless-stopped
# uncomment below command if persistance required.
#command: redis-server --save 20 1 --loglevel warning --
ports:
- "6379:6379"
volumes:
- redis_data:/data
labels:
- traefik.enable=false
minio:
# Mirror of cgr.dev/chainguard/minio (upstream minio/* images are gone from Docker Hub
# and quay.io now requires auth) - pinned by digest so a tag change can't break us
image: "unstract/minio:RELEASE.2026-09-22T19-25-18Z@sha256:bd014394a80898e68c149f2311fdf8d5a2c2f3bb2c33b9327ae6d02b4b065ae1"
# Chainguard runs as uid 65532; keep root so existing root-owned minio_data volumes stay writable
user: root
container_name: unstract-minio
hostname: minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
env_file:
- ./essentials.env
command: server /data --console-address ":9001"
labels:
- traefik.enable=true
- traefik.http.routers.minio.rule=Host(`minio.unstract.localhost`)
- traefik.http.services.minio.loadbalancer.server.port=9001
minio-bootstrap:
# Mirror of cgr.dev/chainguard/minio-client:latest-dev (-dev variant ships /bin/sh for the entrypoint)
image: "unstract/minio-client:2026-09-24-dev@sha256:f0dd93b48af1f8a641edcd3c64661c8dbe05189bd2ef2f8cea216eb18af10bf8"
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 5;
mc alias set minio http://unstract-minio:9000 minio minio123;
mc mb minio/unstract;
mc mirror /app/prompt-studio-data minio/unstract/prompt-studio-data;
exit 0;
"
volumes:
- prompt_studio_data:/app/prompt-studio-data
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v3.6.2
container_name: unstract-proxy
restart: unless-stopped
# - Enables the web UI.
# - Tells Traefik to use docker and file providers.
# - Direct Traefik to the correct network for docker provider.
# This is required because Traefik by default tries available networks in a
# round-robin fashion. With multiple providers, services can be on multiple
# networks causing 504 Gateway Timeout.
command: --api.insecure=true
--accesslog=true --log.level=INFO
--providers.docker=true --providers.docker.network=unstract-network
--providers.file.filename=/proxy_overrides.yaml --providers.file.watch=true
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
# Proxy overrides for components run directly in Docker host
- ./proxy_overrides.yaml:/proxy_overrides.yaml
# Since any proxy overrides need to point to Docker host for relevant routes.
extra_hosts:
# "host-gateway" is a special string that translates to host docker0 i/f IP.
- "host.docker.internal:host-gateway"
feature-flag:
image: docker.flipt.io/flipt/flipt:v2.3.1
container_name: unstract-flipt
restart: unless-stopped
ports: # Forwarded to available host ports
- "8082:8080" # REST API port
- "9005:9000" # gRPC port
volumes:
- flipt_data:/var/opt/flipt
labels:
- traefik.enable=true
- traefik.http.routers.feature-flag.rule=Host(`feature-flag.unstract.localhost`)
- traefik.http.services.feature-flag.loadbalancer.server.port=8080
unstructured-io:
profiles:
- optional
image: downloads.unstructured.io/unstructured-io/unstructured-api:0.0.61
container_name: unstract-unstructured-io
restart: unless-stopped
ports: # Forwarded to available host ports
- "8083:8000"
labels:
- traefik.enable=false
qdrant:
# Vector DB for doc indexer.
# Server minor version must track qdrant-client pin in unstract/sdk1/pyproject.toml;
# the 1.16 client calls endpoints the 1.8 server lacks and returns 404 with empty body.
image: "qdrant/qdrant:v1.16.1"
container_name: unstract-vector-db
restart: unless-stopped
ports:
- "6333:6333"
volumes:
- qdrant_data:/var/lib/qdrant/data/
labels:
- traefik.enable=false
env_file:
- ./essentials.env
rabbitmq:
image: rabbitmq:4.1.0-management
container_name: unstract-rabbitmq
hostname: unstract-rabbit
restart: unless-stopped
env_file:
- ./essentials.env
ports:
- "5672:5672" # AMQP port
- "15672:15672" # Management UI port
volumes:
- rabbitmq_data:/var/lib/rabbitmq
volumes:
flipt_data:
minio_data:
postgres_data:
qdrant_data:
redis_data:
prompt_studio_data:
rabbitmq_data: