mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 09:44:00 +00:00
#201 fixed DB url for docker mongo installation
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
DEVMODE=1
|
DEVMODE=1
|
||||||
|
|
||||||
CONNECTIONS=mysql,postgres
|
CONNECTIONS=mysql,postgres,mongo,mongo2
|
||||||
|
|
||||||
LABEL_mysql=MySql localhost
|
LABEL_mysql=MySql localhost
|
||||||
SERVER_mysql=localhost
|
SERVER_mysql=localhost
|
||||||
@@ -15,3 +15,13 @@ USER_postgres=postgres
|
|||||||
PASSWORD_postgres=test
|
PASSWORD_postgres=test
|
||||||
PORT_postgres=5433
|
PORT_postgres=5433
|
||||||
ENGINE_postgres=postgres@dbgate-plugin-postgres
|
ENGINE_postgres=postgres@dbgate-plugin-postgres
|
||||||
|
|
||||||
|
LABEL_mongo=Mongo URL
|
||||||
|
URL_mongo=mongodb://localhost:27017
|
||||||
|
ENGINE_mongo=mongo@dbgate-plugin-mongo
|
||||||
|
|
||||||
|
LABEL_mongo2=Mongo Server
|
||||||
|
SERVER_mongo2=localhost
|
||||||
|
ENGINE_mongo2=mongo@dbgate-plugin-mongo
|
||||||
|
|
||||||
|
# docker run -p 3000:3000 -e CONNECTIONS=mongo -e URL_mongo=mongodb://localhost:27017 -e ENGINE_mongo=mongo@dbgate-plugin-mongo -e LABEL_mongo=mongo dbgate/dbgate:beta
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ function getPortalCollections() {
|
|||||||
password: process.env[`PASSWORD_${id}`],
|
password: process.env[`PASSWORD_${id}`],
|
||||||
port: process.env[`PORT_${id}`],
|
port: process.env[`PORT_${id}`],
|
||||||
databaseUrl: process.env[`URL_${id}`],
|
databaseUrl: process.env[`URL_${id}`],
|
||||||
|
useDatabaseUrl: !!process.env[`URL_${id}`],
|
||||||
databaseFile: process.env[`FILE_${id}`],
|
databaseFile: process.env[`FILE_${id}`],
|
||||||
defaultDatabase: process.env[`DATABASE_${id}`],
|
defaultDatabase: process.env[`DATABASE_${id}`],
|
||||||
singleDatabase: !!process.env[`DATABASE_${id}`],
|
singleDatabase: !!process.env[`DATABASE_${id}`],
|
||||||
|
|||||||
Reference in New Issue
Block a user