feat: added environment variables to the redis server in docker-compose.yml

This commit is contained in:
Nabil Ould Hamou 2024-11-30 15:38:32 +01:00
parent 22b54827c0
commit aab0226861

View file

@ -24,8 +24,10 @@ services:
ports: ports:
- "6379:6379" - "6379:6379"
command: redis-server --save 20 1 --loglevel warning command: redis-server --save 20 1 --loglevel warning
environment:
- REDIS_PASSWORD=temp-redis-password
volumes: volumes:
- redis-data:/data - redis-data:/root/redis
networks: networks:
- redis_network - redis_network