mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
fix(docker): Updating docker containers to use redis
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user