M1_ProjetWeb/docker-compose.yml
Nabil Ould Hamou 22b54827c0 fix: issues in server.ts
fix: added @types/node to fix errors due to types missing.
fix: prisma.schema to deal with some mongodb specific issues.
2024-11-30 15:21:52 +01:00

39 lines
No EOL
763 B
YAML

services:
mongodb:
image: mongo:latest
hostname: mongodb
restart: always
env_file:
- .env
environment:
- MONGO_INITDB_ROOT_USERNAME=temp-root-username
- MONGO_INITDB_ROOT_PASSWORD=temp-password
- MONGO_INITDB_DATABASE=chat_projetweb
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db/
- mongo-logs:/var/log/mongodb/
networks:
- mongodb_network
redis:
image: redis:latest
hostname: redis
restart: always
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis-data:/data
networks:
- redis_network
networks:
mongodb_network:
redis_network:
volumes:
mongo-data:
mongo-logs:
redis-data: