mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fixed not being able to connect to mongo
From version 3.6+ mongodb by default binds only to localhost (127.0.0.1) IP. That can be checked with "netstat -tulpn | grep LISTEN" command in container. It will return "127.0.0.1:27017 | 0.0.0.0:* | LISTEN | 15/mongod" for mongod. That causes inability to connect to running mongo from host machine. Proposed change allows mongo to bind to container network interface, thus allowing connections from host machine.
This commit is contained in:
parent
b54c31539f
commit
f50ceb54a9
@ -10,7 +10,7 @@
|
|||||||
# BigchainDB configuration
|
# BigchainDB configuration
|
||||||
bigchaindb-monit-config
|
bigchaindb-monit-config
|
||||||
|
|
||||||
nohup mongod > "$HOME/.bigchaindb-monit/logs/mongodb_log_$(date +%Y%m%d_%H%M%S)" 2>&1 &
|
nohup mongod --bind_ip_all > "$HOME/.bigchaindb-monit/logs/mongodb_log_$(date +%Y%m%d_%H%M%S)" 2>&1 &
|
||||||
|
|
||||||
# Tendermint configuration
|
# Tendermint configuration
|
||||||
tendermint init
|
tendermint init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user