-
Notifications
You must be signed in to change notification settings - Fork 877
Description

I have already tried the solutions mentioned in similar issues, but the problem still persists:
#252
#198
#106
I am using the Docker image to start DeepWiki. The repository to be parsed is on my local machine, and the LLM is ollama qwen3:1.7b.
This is my docker-compose.xml configuration, where I have added a mapping for the project path: - /data/home/xxxx/project:/app/local-repos :
deepwiki:
build:
context: .
dockerfile: Dockerfile
ports:
- "${PORT:-8001}:${PORT:-8001}" # API port
- "3001:3000" # Next.js port
env_file:
- .env
environment:
- PORT=${PORT:-8001}
- NODE_ENV=production
- SERVER_BASE_URL=http://localhost:${PORT:-8001}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- LOG_FILE_PATH=${LOG_FILE_PATH:-api/logs/application.log}
volumes:
- ~/.adalflow:/root/.adalflow # Persist repository and embedding data
- ./api/logs:/app/api/logs # Persist log files across container restarts
- /data/home/xxxx/project:/app/local-repos
# Resource limits for docker-compose up (not Swarm mode)
mem_limit: 6g
mem_reservation: 2g
# Health check configuration
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-8001}/health"]
interval: 60s
timeout: 10s
retries: 3
start_period: 30s
The path I entered is: /app/local-repos/dpw/network-expansion-msvc I have also logged into the container and confirmed that the repository exists in this directory.
Here is the backend log when the error occurs. I have also set the log level to DEBUG, but I did not see any exception log information:
WARN[0000] /data/home/xxxx/dpw/deepwiki-open/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 2/0
✔ Network deepwiki-open_default Created 0.0s
✔ Container deepwiki-open-deepwiki-1 Created 0.0s
Attaching to deepwiki-1
deepwiki-1 | declare -x GPG_KEY="A035C8C19219BA821ECEA86B64E628F8D684696D"
deepwiki-1 | declare -x HOME="/root"
deepwiki-1 | declare -x HOSTNAME="002ab6ecc0a9"
deepwiki-1 | declare -x LANG="C.UTF-8"
deepwiki-1 | declare -x LOG_FILE_PATH="api/logs/application.log"
deepwiki-1 | declare -x LOG_LEVEL="ERROR"
deepwiki-1 | declare -x NODE_ENV="production"
deepwiki-1 | declare -x OLDPWD
deepwiki-1 | declare -x OLLAMA_HOST="http://xxxxx:11434"
deepwiki-1 | declare -x PATH="/opt/venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
deepwiki-1 | declare -x PORT="8001"
deepwiki-1 | declare -x PWD="/app"
deepwiki-1 | declare -x PYTHON_SHA256="8fb5f9fbc7609fa822cb31549884575db7fd9657cbffb89510b5d7975963a83a"
deepwiki-1 | declare -x PYTHON_VERSION="3.11.13"
deepwiki-1 | declare -x SERVER_BASE_URL="http://localhost:8001"
deepwiki-1 | declare -x SHLVL="1"
deepwiki-1 | Warning: OPENAI_API_KEY and/or GOOGLE_API_KEY environment variables are not set.
deepwiki-1 | These are required for DeepWiki to function properly.
deepwiki-1 | You can provide them via a mounted .env file or as environment variables when running the container.
deepwiki-1 | ▲ Next.js 15.3.1
deepwiki-1 | - Local: http://localhost:3000
deepwiki-1 | - Network: http://0.0.0.0:3000
deepwiki-1 |
deepwiki-1 | ✓ Starting...
deepwiki-1 | ✓ Ready in 178ms
deepwiki-1 | INFO: Started server process [10]
deepwiki-1 | INFO: Waiting for application startup.
deepwiki-1 | INFO: Application startup complete.
deepwiki-1 | INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit)
deepwiki-1 | INFO: 127.0.0.1:53958 - "GET /auth/status HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:53960 - "GET /api/processed_projects HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:53962 - "GET /models/config HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:53964 - "GET /lang/config HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:53962 - "GET /auth/status HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:53966 - "GET /api/wiki_cache?owner=local&repo=network-expansion-msvc&repo_type=local&language=zh&comprehensive=false HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:53968 - "GET /local_repo/structure?path=%2Fapp%2Flocal-repos%2Fdpw%2Fnetwork-expansion-msvc HTTP/1.1" 200 OK
This is my embedder.json configuration:
{
"embedder": {
"client_class": "OllamaClient",
"model_kwargs": {
"model": "nomic-embed-text"
}
},
"embedder_ollama": {
"client_class": "OllamaClient",
"model_kwargs": {
"model": "nomic-embed-text"
}
},
"retriever": {
"top_k": 20
},
"text_splitter": {
"split_by": "word",
"chunk_size": 200,
"chunk_overlap": 50
}
}
I have also added the embedding model to Ollama.

I have also confirmed that Ollama is running properly by testing it with curl. Additionally, what’s even more strange is that when I do not select a local project but instead choose a project from GitHub, such as https://github.com/AsyncFuncAI/deepwiki-open, the wiki can be generated normally.
After each attempt above, I rebuilt the image, but the error still exists.
Any suggestions would be greatly appreciated! Thank you!