diff --git a/roles/rocketchat/templates/docker-compose.yml.j2 b/roles/rocketchat/templates/docker-compose.yml.j2 index 731ae5a..5297e44 100644 --- a/roles/rocketchat/templates/docker-compose.yml.j2 +++ b/roles/rocketchat/templates/docker-compose.yml.j2 @@ -61,9 +61,9 @@ services: image: mongo:4.0 networks: - cdt - command: 'bash -c "for i in `seq 1 30`; do mongo mongo/rocketchat --eval \"rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})\" && s=$$? && break || s=$$?; echo \"Tried $$i times. Waiting 5 secs...\"; sleep 5; done; (exit $$s)"' + command: 'bash -c "for i in `seq 1 30`; do mongo rocketchat_db/rocketchat --eval \"rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})\" && s=$$? && break || s=$$?; echo \"Tried $$i times. Waiting 5 secs...\"; sleep 5; done; (exit $$s)"' depends_on: - - mongo + - rocketchat_db # hubot, the popular chatbot (add the bot user first and change the password before starting this image) hubot: