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 local AI
DocManFu works without AI. For CPU-only local Ollama, add these values to .env, start the Ollama profile, pull the model, and recreate the application services. NVIDIA and native macOS options are covered in the deployment guide.
# Add to .env
AI_PROVIDER=ollama
AI_BASE_URL=http://ollama-cpu:11434
AI_MODEL=llama3.2
# Then run
./prod up -d --profile ollama-cpu
./prod pull-models
DocManFu