Merge pull request #97 from christroutner/redis-rate-limits

fix(docker): Updating docker containers to use redis
This commit is contained in:
Chris Troutner
2020-02-07 19:35:52 -08:00
committed by GitHub
3 changed files with 19 additions and 8 deletions
+4 -4
View File
@@ -1,17 +1,17 @@
bch-api:
bch-api-main:
build: .
dockerfile: Dockerfile
#image: bitcore
container_name: bch-api-main
links:
- redis
- redis-main
ports:
- "12400:3000"
restart: always
redis:
redis-main:
image: redis:latest
container_name: redis-bch-api-main
container_name: redis-main
restart: always
ports:
- "6379:6379"
+11 -4
View File
@@ -1,10 +1,17 @@
bch-api:
bch-api-test:
build: .
dockerfile: Dockerfile
#image: bitcore
container_name: bch-api
#links:
# - mongodb
container_name: bch-api-test
links:
- redis-test
ports:
- "13400:3000"
restart: always
redis-test:
image: redis:latest
container_name: redis-test
restart: always
ports:
- "6380:6379"
+4
View File
@@ -17,4 +17,8 @@ export BLOCKBOOK_URL=https://172.17.0.1:19131/
# Allow node.js to make network calls to https using self-signed certificate.
export NODE_TLS_REJECT_UNAUTHORIZED=0
# Redis DB
export REDIS_PORT=6380
export REDIS_HOST=172.17.0.1
npm start