Sửa lỗi tạo docker
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
const { Queue } = require('bullmq');
|
||||
const IORedis = require('ioredis');
|
||||
|
||||
// Cấu hình kết nối Redis (Mặc định localhost:6379)
|
||||
// Cấu hình kết nối Redis sử dụng biến môi trường từ Docker
|
||||
const connection = new IORedis({
|
||||
host: process.env.REDIS_HOST || '127.0.0.1',
|
||||
port: process.env.REDIS_PORT || 6379,
|
||||
maxRetriesPerRequest: null
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user