forked from Ms-Studio/appstore-1panel
feat: 增加 mongoDB
This commit is contained in:
parent
e222a00022
commit
0915489b45
@ -204,9 +204,24 @@
|
|||||||
"required": [],
|
"required": [],
|
||||||
"limit": 1,
|
"limit": 1,
|
||||||
"crossVersionUpdate": false,
|
"crossVersionUpdate": false,
|
||||||
"website": "https://about.gitlab.com/",
|
"website": "https://www.postgresql.org/",
|
||||||
"github": "https://github.com/postgres/postgres",
|
"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/"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
BIN
apps/mongodb/metadata/logo.png
Normal file
BIN
apps/mongodb/metadata/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
93
apps/mongodb/versions/6.0.4/README.md
Normal file
93
apps/mongodb/versions/6.0.4/README.md
Normal file
@ -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.
|
||||||
|
|
28
apps/mongodb/versions/6.0.4/config.json
Normal file
28
apps/mongodb/versions/6.0.4/config.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
18
apps/mongodb/versions/6.0.4/docker-compose.yml
Normal file
18
apps/mongodb/versions/6.0.4/docker-compose.yml
Normal file
@ -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
|
@ -6,7 +6,7 @@
|
|||||||
"labelEn": "Username",
|
"labelEn": "Username",
|
||||||
"required": true,
|
"required": true,
|
||||||
"default": "random",
|
"default": "random",
|
||||||
"envKey": "PANEL_DB_USER"
|
"envKey": "PANEL_DB_ROOT_USER"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "password",
|
"type": "password",
|
||||||
|
@ -5,7 +5,7 @@ services:
|
|||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${PANEL_DB_USER}
|
- POSTGRES_USER=${PANEL_DB_ROOT_USER}
|
||||||
- POSTGRES_PASSWORD=${PANEL_DB_ROOT_PASSWORD}
|
- POSTGRES_PASSWORD=${PANEL_DB_ROOT_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:5432
|
- ${PANEL_APP_PORT_HTTP}:5432
|
||||||
|
Loading…
Reference in New Issue
Block a user