diff --git a/list.json b/list.json index 22be89f21..3238f8a7f 100644 --- a/list.json +++ b/list.json @@ -204,9 +204,24 @@ "required": [], "limit": 1, "crossVersionUpdate": false, - "website": "https://about.gitlab.com/", + "website": "https://www.postgresql.org/", "github": "https://github.com/postgres/postgres", - "document": "https://docs.gitlab.com/" + "document": "https://www.postgresql.org/docs/" + }, + { + "key": "mongodb", + "name": "MongoDB", + "tags": ["Database"], + "versions": ["6.0.4"], + "shortDescZh": "分布式文件存储数据库", + "shortDescEn": "Fractional file storage database", + "type": "runtime", + "required": [], + "limit": 1, + "crossVersionUpdate": false, + "website": "https://www.mongodb.com/", + "github": "https://github.com/mongodb/mongo", + "document": "https://www.mongodb.com/docs/" } ] } \ No newline at end of file diff --git a/mongodb/metadata/logo.png b/mongodb/metadata/logo.png new file mode 100644 index 000000000..6fc7a99d4 Binary files /dev/null and b/mongodb/metadata/logo.png differ diff --git a/mongodb/versions/6.0.4/README.md b/mongodb/versions/6.0.4/README.md new file mode 100644 index 000000000..2119f1c9b --- /dev/null +++ b/mongodb/versions/6.0.4/README.md @@ -0,0 +1,93 @@ +Welcome to MongoDB! + +## Components + +- `mongod` - The database server. +- `mongos` - Sharding router. +- `mongo` - The database shell (uses interactive javascript). + + +## Download MongoDB +- https://www.mongodb.com/try/download/community +- Using homebrew `brew tap mongodb/brew` +- Using docker image `docker pull mongo` + + +## Building + +See [Building MongoDB](docs/building.md). + +## Running + +For command line options invoke: + + ```bash + $ ./mongod --help + ``` + +To run a single server database: + + ```bash + $ sudo mkdir -p /data/db + $ ./mongod + $ + $ # The mongo javascript shell connects to localhost and test database by default: + $ ./mongo + > help + ``` + +## Installing Compass + +You can install compass using the `install_compass` script packaged with MongoDB: + + ```bash + $ ./install_compass + ``` + +This will download the appropriate MongoDB Compass package for your platform +and install it. + +## Drivers + +Client drivers for most programming languages are available at +https://docs.mongodb.com/manual/applications/drivers/. Use the shell +(`mongo`) for administrative tasks. + +## Bug Reports + +See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports. + +## Packaging + +Packages are created dynamically by the [buildscripts/packager.py](buildscripts/packager.py) script. +This will generate RPM and Debian packages. + +## Learn MongoDB + +Documentation - https://docs.mongodb.com/manual/ +Developer Center - https://www.mongodb.com/developer/ +MongoDB University - https://learn.mongodb.com + +## Cloud Hosted MongoDB + +https://www.mongodb.com/cloud/atlas + +## Forums + +- https://community.mongodb.com + + Technical questions about using MongoDB. + +- https://community.mongodb.com/c/server-dev + + Technical questions about building and developing MongoDB. + + +## LICENSE + +MongoDB is free and the source is available. Versions released prior to +October 16, 2018 are published under the AGPL. All versions released after +October 16, 2018, including patch fixes for prior versions, are published +under the [Server Side Public License (SSPL) v1](LICENSE-Community.txt). +See individual files for details. + diff --git a/mongodb/versions/6.0.4/config.json b/mongodb/versions/6.0.4/config.json new file mode 100644 index 000000000..63e61ef7a --- /dev/null +++ b/mongodb/versions/6.0.4/config.json @@ -0,0 +1,28 @@ +{ + "formFields": [ + { + "type": "text", + "labelZh": "Root 用户名", + "labelEn": "Root Username", + "required": true, + "default": "random", + "envKey": "PANEL_DB_ROOT_USER" + }, + { + "type": "password", + "labelZh": "Root 用户密码", + "labelEn": "Root Password", + "required": true, + "default": "random", + "envKey": "PANEL_DB_ROOT_PASSWORD" + }, + { + "type": "number", + "labelZh": "端口", + "labelEn": "Port", + "required": true, + "default": 27017, + "envKey": "PANEL_APP_PORT_HTTP" + } + ] +} \ No newline at end of file diff --git a/mongodb/versions/6.0.4/docker-compose.yml b/mongodb/versions/6.0.4/docker-compose.yml new file mode 100644 index 000000000..1fdcd6efa --- /dev/null +++ b/mongodb/versions/6.0.4/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3' +services: + mongodb: + container_name: ${CONTAINER_NAME} + image: mongo:6.0.4 + environment: + MONGO_INITDB_ROOT_USERNAME: ${PANEL_DB_ROOT_USER} + MONGO_INITDB_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD} + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:27017 + volumes: + - ./data:/data/db + +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/postgresql/versions/15.2-alpine/config.json b/postgresql/versions/15.2-alpine/config.json index d6fae7156..b3d40c0eb 100644 --- a/postgresql/versions/15.2-alpine/config.json +++ b/postgresql/versions/15.2-alpine/config.json @@ -6,7 +6,7 @@ "labelEn": "Username", "required": true, "default": "random", - "envKey": "PANEL_DB_USER" + "envKey": "PANEL_DB_ROOT_USER" }, { "type": "password", diff --git a/postgresql/versions/15.2-alpine/docker-compose.yml b/postgresql/versions/15.2-alpine/docker-compose.yml index f259ae64b..51f16dbef 100644 --- a/postgresql/versions/15.2-alpine/docker-compose.yml +++ b/postgresql/versions/15.2-alpine/docker-compose.yml @@ -5,7 +5,7 @@ services: image: postgres:15.2-alpine restart: always environment: - - POSTGRES_USER=${PANEL_DB_USER} + - POSTGRES_USER=${PANEL_DB_ROOT_USER} - POSTGRES_PASSWORD=${PANEL_DB_ROOT_PASSWORD} ports: - ${PANEL_APP_PORT_HTTP}:5432