add persistent mongodb bot context to live deployment
@@ -188,6 +188,19 @@ services:
- solr
- matcher_service
+ # mongodb for persistent debug bot
+ mongodb:
+ image: tutum/mongodb:3.2
+ environment:
+ - "MONGODB_USER=won"
+ - "MONGODB_DATABASE=live_bot"
+ - "MONGODB_PASS=$mongo_db_passwd"
+ ports:
+ - "27017:27017"
+ - "28017:28017"
+ volumes:
+ - $base_folder/mongodb/data/db:/data/db
+
# debug bot used to test need communication, connect to wonnodes (proxied: node.matchat.org)
debug_bot:
build: ../../image/bots
@@ -198,7 +211,16 @@ services:
- "node.default.http.port=443"
- "uri.prefix.node.default=https://node.matchat.org/won"
- "won.node.uris=https://node.matchat.org/won/resource"
+ - "botContext.impl=mongoBotContext"
+ - "botContext.mongodb.user=won"
+ - "botContext.mongodb.pass=$mongo_db_passwd"
+ - "botContext.mongodb.host=satvm01.researchstudio.at"
+ - "botContext.mongodb.port=27017"
+ - "botContext.mongodb.database=live_bot"
depends_on:
- wonnode
+ - mongodb
+
+
