Docker डिप्लॉयमेंट
Docker Compose का उपयोग करके ArchiCore को डिप्लॉय करें।
त्वरित शुरुआत
1. कॉन्फ़िगरेशन क्लोन करें
mkdir archicore && cd archicore
2. docker-compose.yml बनाएं
version: '3.8'
services:
archicore:
image: archicore/archicore:latest
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=postgresql://archicore:password@postgres:5432/archicore
- REDIS_URL=redis://redis:6379
- QDRANT_URL=http://qdrant:6333
- JWT_SECRET=${JWT_SECRET}
- JINA_API_KEY=${JINA_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
depends_on:
- postgres
- redis
- qdrant
restart: unless-stopped
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=archicore
- POSTGRES_PASSWORD=password
- POSTGRES_DB=archicore
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
restart: unless-stopped
qdrant:
image: qdrant/qdrant:latest
volumes:
- qdrant_data:/qdrant/storage
restart: unless-stopped
volumes:
postgres_data:
redis_data:
qdrant_data:
3. .env फ़ाइल बनाएं
JWT_SECRET=आपकी-बहुत-सुरक्षित-गुप्त-कुंजी-कम-से-कम-32-अक्षर
JINA_API_KEY=jina_xxxxxxxxxxxx
ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxx
4. सेवाएं शुरू करें
docker compose up -d
5. सत्यापित करें
docker compose ps
docker compose logs -f archicore
curl http://localhost:3000/health
अपडेट करें
docker compose pull
docker compose up -d
docker image prune -f
बैकअप
docker compose exec postgres pg_dump -U archicore archicore > backup.sql