@rpcbase/server 0.53.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/run_docker.js CHANGED
@@ -15,6 +15,8 @@ const run_docker = async(infrastructure_dir, proj_prefix) => {
15
15
  }
16
16
  else compose_files.push("-f dev.yml")
17
17
 
18
+ console.log("got compose files", compose_files)
19
+
18
20
  const opts = ["--build", "--remove-orphans"]
19
21
  if (!is_production) opts.push("--abort-on-container-exit")
20
22
 
package/database.js CHANGED
@@ -12,7 +12,8 @@ if (typeof DATABASE_NAME !== "string") {
12
12
  throw new Error("expected DATABASE_NAME to be a string")
13
13
  }
14
14
 
15
- const mongo_url = `mongodb://127.0.0.1:${DATABASE_PORT}/${DATABASE_NAME}`
15
+ const mongo_url = `mongodb://database:${DATABASE_PORT}/${DATABASE_NAME}?directConnection=true&replicaSet=rs0`
16
+
16
17
 
17
18
  module.exports = async() => {
18
19
 
@@ -0,0 +1,19 @@
1
+ # docker-compose
2
+ version: "3"
3
+
4
+ services:
5
+ # connect-redis session store
6
+ session-store:
7
+ image: redis:6.2.7-alpine
8
+ volumes:
9
+ - ./redis/redis.conf:/usr/local/etc/redis/redis.conf
10
+ - ./data/session-store/log/:/var/log/
11
+ networks:
12
+ - local-network
13
+ ports:
14
+ - "127.0.0.1:$SESSION_STORE_PORT:$SESSION_STORE_PORT"
15
+ command: [
16
+ "redis-server",
17
+ "/usr/local/etc/redis/redis.conf",
18
+ "--port", $SESSION_STORE_PORT
19
+ ]