We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64fb854 commit 30ab256Copy full SHA for 30ab256
docker-compose.yml
@@ -2,7 +2,7 @@ services:
2
app:
3
build: .
4
environment:
5
- REDIS_URL: "//redis:6379"
+ MOCKBIN_REDIS: "//redis:6379"
6
links:
7
- redis
8
ports:
lib/routes/bins.js
@@ -9,13 +9,10 @@ module.exports = function bins(dsnStr) {
9
// parse redis dsn
10
const dsn = new URL(dsnStr);
11
12
- this.dsn = dsn;
13
-
14
// connect to redis
15
const client = createClient({
16
legacyMode: true,
17
- host: dsn.hostname,
18
- port: dsn.port,
+ url: dsnStr,
19
no_ready_check: true,
20
});
21
0 commit comments