feat: Containerize Ollama service in Docker Compose and update the installation script to manage it.

This commit is contained in:
2026-01-17 03:38:27 -03:00
parent dd2c3f666d
commit 3424384ff3
2 changed files with 26 additions and 14 deletions
+17
View File
@@ -30,6 +30,7 @@ services:
- "host.docker.internal:host-gateway"
depends_on:
- db
- ollama
experience:
build:
@@ -45,6 +46,7 @@ services:
env_file: .env
depends_on:
- db
- ollama
whisper:
image: ${WHISPER_IMAGE:-fedirz/faster-whisper-server:latest-cpu}
@@ -63,6 +65,20 @@ services:
count: 1
capabilities: [ gpu ]
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
e2e:
build:
context: ./e2e
@@ -81,3 +97,4 @@ volumes:
postgres_data:
uploads_data:
whisper_cache:
ollama_data: