Ollama nur intern - Proxy entfernt, Ports angepasst
This commit is contained in:
parent
86f7178b2b
commit
8d39d8e9a3
3 changed files with 5 additions and 27 deletions
|
|
@ -1,10 +0,0 @@
|
|||
:80 {
|
||||
# Fix Blinko Bug: /embed* -> /api/embed*
|
||||
handle /embed* {
|
||||
uri replace /embed /api/embed
|
||||
reverse_proxy ollama:11434
|
||||
}
|
||||
|
||||
# Alles andere direkt zu Ollama
|
||||
reverse_proxy ollama:11434
|
||||
}
|
||||
|
|
@ -30,22 +30,20 @@ NEXT_PUBLIC_BASE_URL=https://blink.your-domain.com
|
|||
|---------|------|--------------|
|
||||
| blinko-website | 1110 | Web UI |
|
||||
| postgres | 5435 | Datenbank (nur intern empfohlen) |
|
||||
| ollama | 11434 | Ollama API |
|
||||
| ollama | ❌ | **Nur intern** - nicht exponiert |
|
||||
|
||||
## Caddy
|
||||
|
||||
Für externen Zugriff:
|
||||
Für externen Zugriff auf Blinko:
|
||||
|
||||
```caddyfile
|
||||
blink.example.com {
|
||||
reverse_proxy localhost:1110
|
||||
}
|
||||
|
||||
ollama.example.com {
|
||||
reverse_proxy localhost:11434
|
||||
}
|
||||
```
|
||||
|
||||
**Hinweis:** Ollama ist bewusst nicht extern erreichbar und läuft nur im internen Docker-Netzwerk.
|
||||
|
||||
## Ollama Models
|
||||
|
||||
Nach dem Deploy Modelle pullen:
|
||||
|
|
|
|||
|
|
@ -56,17 +56,7 @@ services:
|
|||
- ollama_data:/root/.ollama
|
||||
networks:
|
||||
- blinko-network
|
||||
|
||||
ollama-proxy:
|
||||
image: caddy:2
|
||||
container_name: blinko-ollama-proxy
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- ollama
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
networks:
|
||||
- blinko-network
|
||||
# Kein Port exponiert - nur intern im Docker-Netzwerk erreichbar
|
||||
|
||||
volumes:
|
||||
blinko_data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue