mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
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:
parent
39f5de660f
commit
7df59aa144
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user