Run MoneyPrinter frontend, API, worker, and Postgres with Docker Compose.
cp .env.example .envSet required keys in .env:
TIKTOK_SESSION_IDPEXELS_API_KEY
Database defaults (already in .env.example):
POSTGRES_DB=moneyprinterPOSTGRES_USER=moneyprinterPOSTGRES_PASSWORD=moneyprinterDATABASE_URL=postgresql+psycopg://moneyprinter:moneyprinter@postgres:5432/moneyprinter
By default, Docker backend expects Ollama on host machine:
OLLAMA_BASE_URL=http://host.docker.internal:11434
Linux support is included via compose extra_hosts host-gateway mapping.
If Ollama runs in another container or machine, set OLLAMA_BASE_URL accordingly.
docker compose up --build- Frontend:
http://localhost:8001 - Backend API:
http://localhost:8080 - Postgres:
localhost:5432
curl http://localhost:8080/api/modelsYou should receive a JSON payload with models and default.
curl -X POST http://localhost:8080/api/generate \
-H "Content-Type: application/json" \
-d '{"videoSubject":"AI business ideas","aiModel":"llama3.1:8b","voice":"en_us_001","paragraphNumber":1,"customPrompt":""}'Response includes jobId. Query status and events:
curl http://localhost:8080/api/jobs/<jobId>
curl "http://localhost:8080/api/jobs/<jobId>/events?after=0"