Add Ollama status checks and Docker deployment
This commit is contained in:
51
README.md
Normal file
51
README.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# Monthy Tracker
|
||||
|
||||
Private monthly expense tracking with local-first storage, offline category suggestions, and offline monthly insights via `Ollama`.
|
||||
|
||||
## Local app
|
||||
|
||||
1. Install dependencies:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Create env config from `.env.example` and keep your local runtime settings:
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
3. Apply migrations and start the app:
|
||||
|
||||
```bash
|
||||
npx prisma migrate deploy
|
||||
npm run dev
|
||||
```
|
||||
|
||||
4. Keep `Ollama` running with the configured model:
|
||||
|
||||
```bash
|
||||
ollama serve
|
||||
ollama pull qwen3.5:9b
|
||||
```
|
||||
|
||||
## Docker Compose
|
||||
|
||||
Start both the app and `Ollama` together:
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
This compose stack will:
|
||||
- start `Ollama`
|
||||
- pull `qwen3.5:9b` through the `ollama-init` service
|
||||
- start the Next.js app on `http://localhost:3000`
|
||||
- persist the SQLite database and pulled model with named Docker volumes
|
||||
|
||||
## Environment
|
||||
|
||||
- `DATABASE_URL` - Prisma SQLite connection string
|
||||
- `OLLAMA_URL` - local or container Ollama base URL
|
||||
- `OLLAMA_MODEL` - selected model tag, default `qwen3.5:9b`
|
||||
Reference in New Issue
Block a user