Fix .env docker-compose.yml

This commit is contained in:
Bilal Dieumegard 2024-12-18 12:11:23 +01:00
parent 0d9538bb8c
commit 493ea2f1d9
3 changed files with 1 additions and 19 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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'
});