Clone the repository
You need Git, Docker Engine, and Docker Compose v2.
git clone https://github.com/DocManFu/DocManFu.git
cd DocManFuCreate your configuration
Copy the production example and set a strong PostgreSQL password and JWT secret. The deployment guide documents every option.
cp .env.production.example .env
$EDITOR .envPOSTGRES_PASSWORD and JWT_SECRET_KEY before starting.Start DocManFu
./prod up -d
./prod psThe first build downloads images and prepares OCR dependencies. Open http://localhost:8080 when the services are healthy.
Create your administrator
The first-run setup screen creates the admin account. Sign in, upload a document, and watch OCR progress in real time.
Optional: enable AI
DocManFu works without AI. Add OpenAI, Anthropic, or Ollama when you want automated names, types, tags, and metadata.
AI_PROVIDER=ollama
AI_BASE_URL=http://host.docker.internal:11434
AI_MODEL=llama3.2
DocManFu