I’m setting up a 3 host MongoDB replica set and everything is (finally) working as expected. However, I have to build everything manually in the Rancher UI because rancher-compose is hanging when I try to run the config from my working setup. Once I build the working project in the Rancher UI, I grab the config (below) and run it as-is with rancher-compose
. It creates a new project (which I can see in the UI), then just hangs indefinitely. No errors/logs. Nothing. Even with debug mode (--debug
).
$ rancher-compose --debug up
DEBU[0000] Opening compose file: docker-compose.yml
DEBU[0000] Opening rancher-compose file: /Users/Jeremy/code/mongo/rancher-compose.yml
INFO[0000] Creating environment mongo
Can you guys help me out with this?
docker-compose.yml
mongo1:
restart: always
environment:
MONGO_ROLE: primary
tty: true
hostname: mongo1
image: jshimko/mongopri:0.1.0
links:
- mongo3:mongo3
- mongo2:mongo2
stdin_open: true
mongo3:
restart: always
tty: true
hostname: mongo3
image: jshimko/mongopri:0.1.0
links:
- mongo1:mongo1
- mongo2:mongo2
stdin_open: true
mongo2:
restart: always
tty: true
hostname: mongo2
image: jshimko/mongopri:0.1.0
links:
- mongo3:mongo3
- mongo1:mongo1
stdin_open: true
rancher-compose.yml
mongo1:
scale: 1
mongo3:
scale: 1
mongo2:
scale: 1