Compare commits

...
Sign in to create a new pull request.

1 commit
master ... dev

Author SHA1 Message Date
Bilal Dieumegard
493ea2f1d9 Fix .env docker-compose.yml 2024-12-18 12:11:23 +01:00
3 changed files with 1 additions and 19 deletions

View file

@ -1,22 +1,5 @@
services: 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: mongodb:
build: ./mongodb_rs build: ./mongodb_rs
hostname: mongodb hostname: mongodb

View file

@ -6,7 +6,6 @@
generator client { generator client {
provider = "prisma-client-js" 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 { datasource db {

View file

@ -1,7 +1,7 @@
import { createClient } from 'redis'; import { createClient } from 'redis';
const client = await createClient({ const client = await createClient({
url: process.env.REDIS_URL || 'redis://redis-server:6379' url: process.env.REDIS_URL || 'redis://localhost:6379'
}); });