This guide will help you set up Cosdata using Docker for the Smart FAQ Assistant.
- Docker Desktop installed and running
- Windows PowerShell
docker pull cosdataio/cosdata:latestdocker run -d `
--name cosdata-server `
-p 8443:8443 `
-p 50051:50051 `
cosdataio/cosdata:latestExplanation:
-d- Run in detached mode (background)--name cosdata-server- Name the container-p 8443:8443- Expose HTTP API port-p 50051:50051- Expose gRPC port
# Check if container is running
docker ps
# Check logs
docker logs cosdata-server
# Verify API is reachable
# NOTE: This Cosdata image may not expose /health (it can return 404).
# Instead, test auth and then hit an authenticated endpoint.
# 1) Create a session (local docker often initializes with an empty admin key)
curl -sS -X POST http://localhost:8443/auth/create-session \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":""}'
# 2) Use the returned access_token to list collections
curl -sS http://localhost:8443/vectordb/collections \
-H "Authorization: Bearer <PASTE_ACCESS_TOKEN_HERE>"You should see a JSON response containing an access_token, then a JSON list of collections.
Stop Cosdata:
docker stop cosdata-serverStart Cosdata:
docker start cosdata-serverView Logs:
docker logs -f cosdata-serverRemove Container:
docker rm -f cosdata-serverTo keep your data between container restarts:
# Create a volume
docker volume create cosdata-data
# Run with volume mount
docker run -d `
--name cosdata-server `
-p 8443:8443 `
-p 50051:50051 `
-v cosdata-data:/root/.cosdata `
cosdataio/cosdata:latestThe backend is configured to connect to:
- Host:
http://localhost:8443 - Username:
admin(override withCOSDATA_USERNAME) - Password/Admin key: empty by default for local Docker (override with
COSDATA_PASSWORD)
Check backend/.env if you need to modify these settings.
Port Already in Use?
# Use different ports
docker run -d `
--name cosdata-server `
-p 9443:8443 `
-p 60051:50051 `
cosdataio/cosdata:latest
# Update backend/.env
# COSDATA_API_URL=http://localhost:9443Container Won't Start?
# Check logs
docker logs cosdata-server
# Ensure Docker is running
docker infoOnce Cosdata is running:
- Start the backend:
cd backend && npm run dev - Start the frontend:
cd frontend && npm run dev - Open http://localhost:5173
- Load sample FAQs and test semantic search!