komodo-stacks/stacks/blinko/README.md

66 lines
1.4 KiB
Markdown

# Blinko
📝 Self-hosted note-taking app with AI integration (Ollama)
## Deploy in Komodo
**Pfad:** `stacks/blinko/`
## Secrets
Erstelle eine `.env` Datei im Stack-Verzeichnis:
```bash
# NextAuth
NEXTAUTH_SECRET=<openssl rand -base64 48>
# PostgreSQL
POSTGRES_PASSWORD=<secure-password>
POSTGRES_USER=postgres
POSTGRES_DB=postgres
# Domain (optional, default: https://blink.nocci.it)
NEXTAUTH_URL=https://blink.your-domain.com
NEXT_PUBLIC_BASE_URL=https://blink.your-domain.com
```
## Ports
| Service | Port | Beschreibung |
|---------|------|--------------|
| blinko-website | 1110 | Web UI |
| postgres | 5435 | Datenbank (nur intern empfohlen) |
| ollama | ❌ | **Nur intern** - nicht exponiert |
## Caddy
Für externen Zugriff auf Blinko:
```caddyfile
blink.example.com {
reverse_proxy localhost:1110
}
```
**Hinweis:** Ollama ist bewusst nicht extern erreichbar und läuft nur im internen Docker-Netzwerk.
## Ollama Models
Nach dem Deploy Modelle pullen:
```bash
docker exec -it blinko-ollama ollama pull llama3.2
docker exec -it blinko-ollama ollama pull nomic-embed-text
```
## Volumes
- `blinko_data``/app/.blinko` (Notizen & Daten)
- `postgres_data``/var/lib/postgresql/data` (Datenbank)
- `ollama_data``/root/.ollama` (AI Modelle)
## Health Checks
- Blinko: HTTP Check auf Port 1111
- PostgreSQL: `pg_isready` Check
- Ollama: Container läuft