removed docker compose dependency and added dedicated pgvector db

This commit is contained in:
2026-03-25 00:30:21 +01:00
parent dd7d468063
commit 99fe65fb57
3 changed files with 56 additions and 14 deletions
-2
View File
@@ -33,9 +33,7 @@ dependencies {
implementation("org.springframework.ai:spring-ai-starter-model-openai")
compileOnly("org.projectlombok:lombok")
developmentOnly("org.springframework.boot:spring-boot-devtools")
// developmentOnly("org.springframework.boot:spring-boot-docker-compose")
runtimeOnly("org.postgresql:postgresql")
// developmentOnly("org.springframework.ai:spring-ai-spring-boot-docker-compose")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
// testImplementation("org.springframework.boot:spring-boot-starter-security-test")
+7 -5
View File
@@ -1,9 +1,11 @@
services:
postgres:
image: 'postgres:latest'
vaessl-db:
image: 'pgvector/pgvector:pg18'
environment:
- 'POSTGRES_DB=mydatabase'
- 'POSTGRES_PASSWORD=secret'
- 'POSTGRES_USER=myuser'
- 'POSTGRES_DB=vaessl'
- 'POSTGRES_PASSWORD=password'
- 'POSTGRES_USER=user'
ports:
- '5432'
labels:
- "org.springframework.boot.service-connection=postgres"