From eb4dae6b9bcf076ad7bb3841e07d190ce5ab26dd Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Sun, 7 Apr 2024 14:52:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20MongoDB=206.x=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mongodb/6.0.14/data.yml | 25 +++++++++++++++++++++++++ mongodb/6.0.14/docker-compose.yml | 20 ++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100755 mongodb/6.0.14/data.yml create mode 100644 mongodb/6.0.14/docker-compose.yml diff --git a/mongodb/6.0.14/data.yml b/mongodb/6.0.14/data.yml new file mode 100755 index 000000000..319227fcd --- /dev/null +++ b/mongodb/6.0.14/data.yml @@ -0,0 +1,25 @@ +additionalProperties: + formFields: + - default: mongo + envKey: PANEL_DB_ROOT_USER + labelEn: Username + labelZh: 用户名 + random: true + required: true + rule: paramCommon + type: text + - default: mongo + envKey: PANEL_DB_ROOT_PASSWORD + labelEn: Password + labelZh: 用户密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 27017 + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number diff --git a/mongodb/6.0.14/docker-compose.yml b/mongodb/6.0.14/docker-compose.yml new file mode 100644 index 000000000..77f285c6d --- /dev/null +++ b/mongodb/6.0.14/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3' +services: + mongodb: + container_name: ${CONTAINER_NAME} + image: mongo:6.0.14 + restart: always + 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 + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file