added tarantool docker image and set the default user to guest

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2022-03-15 12:38:08 +01:00
parent 39f5de660f
commit 7df59aa144
3 changed files with 10 additions and 3 deletions

View File

@ -14,6 +14,13 @@ services:
- "27017:27017"
command: mongod
restart: always
tarantool:
image: tarantool/tarantool:2.3.1
ports:
- "5200:5200"
- "3301:3301"
command: tarantool
restart: always
planetmint:
depends_on:
- mongodb

View File

@ -47,8 +47,8 @@ _database_tarantool = {
'max_tries': 3,
"reconnect_delay": 0.5,
"ctl_config": {
"login": "admin",
"host": "admin:pass@127.0.0.1:3301",
"login": "guest",
"host": "guest@127.0.0.1:3301",
"service": "tarantoolctl connect",
"init_config": init_config,
"drop_config": drop_config

View File

@ -22,7 +22,7 @@ logger = logging.getLogger(__name__)
class TarantoolDB:
def __init__(self, host: str = "localhost", port: int = 3301, user: str = "admin", password: str = "pass",
def __init__(self, host: str = "localhost", port: int = 3301, user: str = "guest", password: str = "",
reset_database: bool = False):
self.db_connect = tarantool.connect(host=host, port=port, user=user, password=password)
if reset_database: