diff --git a/docker-compose.yml b/docker-compose.yml index b2ed544..b3f13aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,22 +1,5 @@ services: - app: - build: . - hostname: app - depends_on: - - mongodb - - redis - environment: - - DATABASE_URL=mongodb://temp-root-username:temp-password@mongodb/chat_projetweb?authSource=admin - - JWT_SECRET=ba63466f102443f4bb6f3670891358bc4488d0c717f6ebcd3ee3c5144e55fe2d - ports: - - "3000:3000" - networks: - - app_network - volumes: - - .:/usr/src/app - - /usr/src/app/node_modules - mongodb: build: ./mongodb_rs hostname: mongodb diff --git a/prisma/schema.prisma b/prisma/schema.prisma index a0e70da..5de370e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,7 +6,6 @@ generator client { provider = "prisma-client-js" - binaryTargets = ["debian-openssl-1.1.x", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"] } datasource db { diff --git a/src/lib/redisClient.ts b/src/lib/redisClient.ts index 62fec25..2b06109 100644 --- a/src/lib/redisClient.ts +++ b/src/lib/redisClient.ts @@ -1,7 +1,7 @@ import { createClient } from 'redis'; const client = await createClient({ - url: process.env.REDIS_URL || 'redis://redis-server:6379' + url: process.env.REDIS_URL || 'redis://localhost:6379' });