chore(relationship-worker): 🔧 Update dev environment configs: .gitignore, tsconfig.json, environment variables, and Docker Compose for the relationship-worker service
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
9afd34ebc6
commit
a19ab9380d
4 changed files with 70 additions and 0 deletions
12
.env.development
Normal file
12
.env.development
Normal file
|
|
@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
node_modules/
|
||||
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
|
|
@ -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
|
||||
19
services/relationship-worker/tsconfig.json
Normal file
19
services/relationship-worker/tsconfig.json
Normal file
|
|
@ -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"]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue