mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +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"
|
- "27017:27017"
|
||||||
command: mongod
|
command: mongod
|
||||||
restart: always
|
restart: always
|
||||||
|
tarantool:
|
||||||
|
image: tarantool/tarantool:2.3.1
|
||||||
|
ports:
|
||||||
|
- "5200:5200"
|
||||||
|
- "3301:3301"
|
||||||
|
command: tarantool
|
||||||
|
restart: always
|
||||||
planetmint:
|
planetmint:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
|
|||||||
@ -47,8 +47,8 @@ _database_tarantool = {
|
|||||||
'max_tries': 3,
|
'max_tries': 3,
|
||||||
"reconnect_delay": 0.5,
|
"reconnect_delay": 0.5,
|
||||||
"ctl_config": {
|
"ctl_config": {
|
||||||
"login": "admin",
|
"login": "guest",
|
||||||
"host": "admin:pass@127.0.0.1:3301",
|
"host": "guest@127.0.0.1:3301",
|
||||||
"service": "tarantoolctl connect",
|
"service": "tarantoolctl connect",
|
||||||
"init_config": init_config,
|
"init_config": init_config,
|
||||||
"drop_config": drop_config
|
"drop_config": drop_config
|
||||||
|
|||||||
@ -22,7 +22,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class TarantoolDB:
|
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):
|
reset_database: bool = False):
|
||||||
self.db_connect = tarantool.connect(host=host, port=port, user=user, password=password)
|
self.db_connect = tarantool.connect(host=host, port=port, user=user, password=password)
|
||||||
if reset_database:
|
if reset_database:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user