diff --git a/features/client-intel/backend-api/vitest.config.ts b/features/client-intel/backend-api/vitest.config.ts new file mode 100644 index 000000000..f10b9e9b5 --- /dev/null +++ b/features/client-intel/backend-api/vitest.config.ts @@ -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') }, + ], + }, +}) diff --git a/features/client-intel/docker-compose.yml b/features/client-intel/docker-compose.yml new file mode 100644 index 000000000..75ef665ee --- /dev/null +++ b/features/client-intel/docker-compose.yml @@ -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 diff --git a/features/reviews/backend-api/vitest.config.ts b/features/reviews/backend-api/vitest.config.ts new file mode 100644 index 000000000..f10b9e9b5 --- /dev/null +++ b/features/reviews/backend-api/vitest.config.ts @@ -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') }, + ], + }, +}) diff --git a/features/reviews/docker-compose.yml b/features/reviews/docker-compose.yml new file mode 100644 index 000000000..a43be881a --- /dev/null +++ b/features/reviews/docker-compose.yml @@ -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 diff --git a/features/trust/backend-api/vitest.config.ts b/features/trust/backend-api/vitest.config.ts new file mode 100644 index 000000000..f10b9e9b5 --- /dev/null +++ b/features/trust/backend-api/vitest.config.ts @@ -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') }, + ], + }, +}) diff --git a/features/trust/docker-compose.yml b/features/trust/docker-compose.yml new file mode 100644 index 000000000..cd4be4df7 --- /dev/null +++ b/features/trust/docker-compose.yml @@ -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