Documentation Index
Fetch the complete documentation index at: https://mintlify.com/backtest-kit/backtest-ollama-crontab/llms.txt
Use this file to discover all available pages before exploring further.
backtest-ollama-crontab requires three infrastructure components: MongoDB (persistent document storage for parsed and screened items), Redis (job queue and caching layer), and an Ollama instance (local or remote LLM inference). Two ready-to-use Docker Compose files are provided under docker/mongodb/ and docker/redis/ so you can get a fully working local stack running with a single command each.
Prerequisites: Docker Desktop or Docker Engine with the Compose plugin installed and running.
MongoDB
The MongoDB service runs version 8.0.4 using the official community server image on UBI 8.docker/mongodb/docker-compose.yaml
./docker/mongodb/mongo_data/ on your host filesystem, so the database survives container restarts. Mongoose creates the application collections automatically on first use — you do not need to run any migrations:
| Collection | Purpose |
|---|---|
parser-items | Raw messages fetched from Telegram channels |
screen-items | Screened and scored trading signals |
Redis
The Redis service runs version 7.4.1 with password authentication enforced via the--requirepass flag.
docker/redis/docker-compose.yaml
./docker/redis/redis_data/. The default password is mysecurepassword — ensure the CC_REDIS_PASSWORD environment variable in your .env file matches this value. If you change the password in the Compose file, update the env var as well. See the Environment guide for the full variable reference.
Verify Connections
After both services start, confirm they are reachable before running the application. MongoDB — open amongosh shell inside the container:
PING command:
Ollama Setup
Ollama provides the local LLM inference backend. The application uses the modelgpt-oss:120b (configured in ollama_outline_format.completion.ts).
Install Ollama from ollama.com, then pull the required model:
https://ollama.com as configured in packages/core/src/config/ollama.ts. The CC_OLLAMA_TOKEN bearer token is always included in every request header.
Set the CC_OLLAMA_TOKEN environment variable to your API bearer token:
.env
packages/core/src/config/ollama.ts automatically includes this token in the Authorization header of every request.