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
377 B
20 lines
377 B
#!/bin/bash
|
|
|
|
|
|
set -e
|
|
|
|
DBNAME="$(relation-get dbname)" || exit 1
|
|
|
|
MONGO_URL=mongodb://${TARGET_SERVICE_NAME}:27017/${PROJECT_NAME}_${DBNAME}?replicaSet=rs01
|
|
MONGO_OPLOG_URL=mongodb://${TARGET_SERVICE_NAME}:27017/local?replicaSet=rs01
|
|
|
|
config-add "\
|
|
services:
|
|
$MASTER_BASE_SERVICE_NAME:
|
|
environment:
|
|
MONGO_URL: $MONGO_URL
|
|
MONGO_OPLOG_URL: $MONGO_OPLOG_URL
|
|
"
|
|
|
|
|
|
|