chore(backend-api): 🔧 Update Vitest config and Docker Compose services for client-intel, reviews, and trust modules

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-19 06:20:29 -08:00
parent 46c680aacd
commit 06df0c9aaa
6 changed files with 191 additions and 0 deletions

View file

@ -0,0 +1,10 @@
import { nestPreset } from '@lilith/test-utils/vitest-presets'
import path from 'path'
export default nestPreset({
resolve: {
alias: [
{ find: /^@\/(.*)$/, replacement: path.resolve(__dirname, './src/$1') },
],
},
})

View file

@ -0,0 +1,71 @@
# =============================================================================
# CLIENT-INTEL: Database Infrastructure
# =============================================================================
#
# PostgreSQL for intel reports and safety data.
# Redis for safety score caching.
#
# Usage:
# docker-compose up -d # Start all
# docker-compose logs -f # Follow logs
# docker-compose down # Stop
#
# =============================================================================
services:
client-intel-postgres:
image: postgres:16-alpine
container_name: lilith-client-intel-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-client_intel}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
POSTGRES_DB: ${POSTGRES_DB:-lilith_client_intel}
ports:
- "${POSTGRES_PORT:-25462}:5432"
volumes:
- client-intel-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-client_intel} -d ${POSTGRES_DB:-lilith_client_intel}']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
client-intel-redis:
image: redis:7-alpine
container_name: lilith-client-intel-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-26397}:6379"
volumes:
- client-intel-redis-data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
volumes:
client-intel-postgres-data:
name: lilith-${LILITH_ENV:-dev}-client-intel-postgres-data
client-intel-redis-data:
name: lilith-${LILITH_ENV:-dev}-client-intel-redis-data

View file

@ -0,0 +1,10 @@
import { nestPreset } from '@lilith/test-utils/vitest-presets'
import path from 'path'
export default nestPreset({
resolve: {
alias: [
{ find: /^@\/(.*)$/, replacement: path.resolve(__dirname, './src/$1') },
],
},
})

View file

@ -0,0 +1,45 @@
# =============================================================================
# REVIEWS: Database Infrastructure
# =============================================================================
#
# PostgreSQL for provider reviews, client reviews, and disputes.
#
# Usage:
# docker-compose up -d # Start postgres
# docker-compose logs -f # Follow logs
# docker-compose down # Stop
#
# =============================================================================
services:
reviews-postgres:
image: postgres:16-alpine
container_name: lilith-reviews-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-reviews}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
POSTGRES_DB: ${POSTGRES_DB:-lilith_reviews}
ports:
- "${POSTGRES_PORT:-25461}:5432"
volumes:
- reviews-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-reviews} -d ${POSTGRES_DB:-lilith_reviews}']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
volumes:
reviews-postgres-data:
name: lilith-${LILITH_ENV:-dev}-reviews-postgres-data

View file

@ -0,0 +1,10 @@
import { nestPreset } from '@lilith/test-utils/vitest-presets'
import path from 'path'
export default nestPreset({
resolve: {
alias: [
{ find: /^@\/(.*)$/, replacement: path.resolve(__dirname, './src/$1') },
],
},
})

View file

@ -0,0 +1,45 @@
# =============================================================================
# TRUST: Database Infrastructure
# =============================================================================
#
# PostgreSQL for trust scores, verification records, and safety metrics.
#
# Usage:
# docker-compose up -d # Start postgres
# docker-compose logs -f # Follow logs
# docker-compose down # Stop
#
# =============================================================================
services:
trust-postgres:
image: postgres:16-alpine
container_name: lilith-trust-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-trust}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
POSTGRES_DB: ${POSTGRES_DB:-lilith_trust}
ports:
- "${POSTGRES_PORT:-25463}:5432"
volumes:
- trust-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-trust} -d ${POSTGRES_DB:-lilith_trust}']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
volumes:
trust-postgres-data:
name: lilith-${LILITH_ENV:-dev}-trust-postgres-data