chore: docker profiles, spring-ai-openai dep, spring-dotenv, env example updates

This commit is contained in:
Rodrigo Verdiani 2026-07-04 15:38:24 -03:00
parent dd19eb6a76
commit 7c721cd75f
4 changed files with 37 additions and 11 deletions

View File

@ -12,5 +12,4 @@ uploads/
.env
.env.example
docker-compose.yml
Dockerfile*
engines/

View File

@ -4,18 +4,27 @@
# Copy this file to .env and fill in your values.
# .env is git-ignored and never committed.
# --- LLM Provider ---
# Default chat provider (ollama)
AI_DEFAULT_CHAT_PROVIDER=ollama
# --- Model overrides (optional) ---
# --- LLM (Ollama local) ---
# Ollama chat model (default: gemma4:12b)
# AI_CHAT_MODEL_OLLAMA=gemma4:12b
# Ollama embedding model (default: qwen3-embedding:latest)
# AI_EMBEDDING_MODEL=qwen3-embedding:latest
# Ollama embedding model (default: nomic-embed-text)
# AI_EMBEDDING_MODEL=nomic-embed-text
# Embedding vector dimension (default: 4096)
# AI_EMBEDDING_DIMENSION=4096
# Embedding vector dimension (default: 768)
# AI_EMBEDDING_DIMENSION=768
# --- Cloud Chat (Ollama Cloud, DeepSeek, etc.) ---
# Chat provider: "ollama" (local, default), "ollama-cloud", or "deepseek"
# AI_DEFAULT_CHAT_PROVIDER=ollama
# Cloud API key (required for ollama-cloud or deepseek)
# AI_CLOUD_API_KEY=sk-...
# Cloud base URL (Ollama Cloud: https://api.ollama.ai/v1 | DeepSeek: https://api.deepseek.com)
# AI_CLOUD_BASE_URL=https://api.ollama.ai/v1
# Cloud chat model (Ollama Cloud: gemma4:31b-cloud | DeepSeek: deepseek-chat)
# AI_CLOUD_CHAT_MODEL=gemma4:31b-cloud

View File

@ -1,5 +1,7 @@
services:
backend:
profiles:
- all
container_name: decompile-ai-backend
build: .
ports:
@ -20,6 +22,9 @@ services:
- decompile-ai-network
postgres:
profiles:
- dev
- all
container_name: decompile-ai-postgres
image: pgvector/pgvector:pg18
environment:
@ -39,6 +44,9 @@ services:
- decompile-ai-network
rabbitmq:
profiles:
- dev
- all
container_name: decompile-ai-rabbitmq
image: rabbitmq:4-management
ports:

10
pom.xml
View File

@ -151,10 +151,19 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-openai</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-client-chat</artifactId>
</dependency>
<dependency>
<groupId>me.paulschwarz</groupId>
<artifactId>spring-dotenv</artifactId>
<version>5.1.0</version>
</dependency>
</dependencies>
<dependencyManagement>
@ -193,6 +202,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<executions>
<execution>
<id>default-compile</id>