added docker and modify the file so it work

This commit is contained in:
Rainy21
2026-03-19 02:36:53 -04:00
parent 85ff2f5c72
commit 972247ee5b
9 changed files with 71 additions and 9 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
import redis
import os
redis_client = redis.Redis(host="localhost", port=6379, decode_responses=True)
redis_host = os.getenv("REDIS_HOST", "localhost")
redis_port = int(os.getenv("REDIS_PORT", 6379))
redis_client = redis.Redis(host=redis_host, port=redis_port, decode_responses=True)