You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
361 B

  1. #!/bin/bash
  2. set -e
  3. DBNAME="$(relation-get dbname)" || exit 1
  4. MONGO_URL=mongodb://${TARGET_SERVICE_NAME}:27017/${DBNAME}?replicaSet=rs01
  5. MONGO_OPLOG_URL=mongodb://${TARGET_SERVICE_NAME}:27017/local?replicaSet=rs01
  6. config-add "\
  7. services:
  8. $MASTER_BASE_SERVICE_NAME:
  9. environment:
  10. MONGO_URL: $MONGO_URL
  11. MONGO_OPLOG_URL: $MONGO_OPLOG_URL
  12. "