From a19ab9380df5e2d8828fd3e7e09fc8696b74cc31 Mon Sep 17 00:00:00 2001 From: autocommit Date: Sun, 12 Apr 2026 19:01:17 -0700 Subject: [PATCH] =?UTF-8?q?chore(relationship-worker):=20=F0=9F=94=A7=20Up?= =?UTF-8?q?date=20dev=20environment=20configs:=20.gitignore,=20tsconfig.js?= =?UTF-8?q?on,=20environment=20variables,=20and=20Docker=20Compose=20for?= =?UTF-8?q?=20the=20relationship-worker=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .env.development | 12 +++++++ .gitignore | 1 + docker-compose.yml | 38 ++++++++++++++++++++++ services/relationship-worker/tsconfig.json | 19 +++++++++++ 4 files changed, 70 insertions(+) create mode 100644 .env.development create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100644 services/relationship-worker/tsconfig.json diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..7b108a7 --- /dev/null +++ b/.env.development @@ -0,0 +1,12 @@ +PORT=3790 +DATABASE_URL=postgresql://postgres:devpassword@localhost:26405/ai +DATABASE_HOST=localhost +DATABASE_PORT=26405 +DATABASE_USER=postgres +DATABASE_PASSWORD=devpassword +DATABASE_NAME=ai +REDIS_URL=redis://localhost:26404 +MIGRATIONS_RUN=true +NAG_MODEL=ministral-3b-instruct +MODEL_BOSS_URL=http://localhost:8210 +SPEECH_SYNTHESIS_URL=http://localhost:8000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..dcdfc3e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +services: + ai-postgres: + image: postgres:16-alpine + container_name: lilith-ai-postgres + restart: unless-stopped + environment: + POSTGRES_USER: ${POSTGRES_USER:-postgres} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword} + POSTGRES_DB: ${POSTGRES_DB:-ai} + ports: + - "${POSTGRES_PORT:-26405}:5432" + volumes: + - ai-postgres-data:/var/lib/postgresql/data + healthcheck: + test: ['CMD-SHELL', 'pg_isready -U postgres -d ai'] + interval: 10s + timeout: 5s + retries: 5 + + ai-redis: + image: redis/redis-stack:latest + container_name: lilith-ai-redis + restart: unless-stopped + ports: + - "${REDIS_PORT:-26404}:6379" + volumes: + - ai-redis-data:/data + healthcheck: + test: ['CMD', 'redis-cli', 'ping'] + interval: 10s + timeout: 3s + retries: 5 + +volumes: + ai-postgres-data: + name: lilith-${LILITH_ENV:-dev}-ai-postgres-data + ai-redis-data: + name: lilith-${LILITH_ENV:-dev}-ai-redis-data diff --git a/services/relationship-worker/tsconfig.json b/services/relationship-worker/tsconfig.json new file mode 100644 index 0000000..bfd41a0 --- /dev/null +++ b/services/relationship-worker/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "bundler", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "outDir": "dist", + "rootDir": "src", + "declaration": true, + "sourceMap": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true + }, + "include": ["src/**/*.ts"], + "exclude": ["node_modules", "dist"] +}