Skip to content

Commit 30ab256

Browse files
committed
fix redis url setting
1 parent 64fb854 commit 30ab256

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
app:
33
build: .
44
environment:
5-
REDIS_URL: "//redis:6379"
5+
MOCKBIN_REDIS: "//redis:6379"
66
links:
77
- redis
88
ports:

lib/routes/bins.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ module.exports = function bins(dsnStr) {
99
// parse redis dsn
1010
const dsn = new URL(dsnStr);
1111

12-
this.dsn = dsn;
13-
1412
// connect to redis
1513
const client = createClient({
1614
legacyMode: true,
17-
host: dsn.hostname,
18-
port: dsn.port,
15+
url: dsnStr,
1916
no_ready_check: true,
2017
});
2118

0 commit comments

Comments
 (0)