-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose.yaml cannot work from outside the local environment. #67
Comments
|
Yes, |
any updates on this @tencent-adm @OMG-By @vinchen @Evil-crow |
In my env. it can work success. you can use |
And If you've ever failed to build. you should rm tendis tmp data dir |
fix some bugs fix some bugs: 1. add check for changing ReplManager::_logRecycStatus::saveBinlogId 2. RocksKVStore::truncateBinlogV2 need change newSave #71 3. RepllogCursorV2 use BinlogCursor instead of Cursor 4. change Transaction::createCursor() and RocksTxn::createCursor() to be protected #67 5. RocksKVCursor dont call seek("") anymore, and add a check of seeked. #67 [OPT] deleteRangeBinlog call compactRange() after deleteRange() #70
Description
I am following the docker compose cluster tutorial from here - http://tendis.cn/#/Tendisplus/%E8%BF%90%E7%BB%B4/new_cluster_compose?id=docker-compose%e7%89%88
It works as expected. But, i want to access this cluster from outside (i deployed this docker-compose in a vm)
But, when I try to access this from outside the vm through the vm's global ip it does not work because I believe in the docker compose file there are hard coded ip address and also subnet is also 192.168.98.0/24 so when accessing it from out side it gets forwarded to 192.168.98.12 but for a global network this is not possible as 192.168.98.12 is the local ip of the virtual machine.
Expected Behavior
It should be docker host binded so when accessing from outside it should be redirected to host ip of the local machine.
Current Behavior
mentioned in the desciption
Possible Solution
something like this --network: host should be added in networks of compose file.
Steps to Reproduce (for bugs)
just run the docker-compose file on a cloud vm and try to access it from outside where the redis host is the global ip of the vm

eg.
My global ip of the cloud vm is -
40.114.118.11
But when i try to access the cluster:
However from inside the vm:

Context
Trying to deploy the cluster for PROD.
Your Environment
The text was updated successfully, but these errors were encountered: