Skip to content

Commit c1aab3f

Browse files
committed
Add: MongoDB 8
Resolves #26
1 parent efdf492 commit c1aab3f

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3+
"meta": {
4+
"version": "PTDL_v2",
5+
"update_url": null
6+
},
7+
"exported_at": "2025-08-22T13:41:06+00:00",
8+
"name": "MongoDB 8",
9+
"author": "[email protected]",
10+
"description": "MongoDB Server is a general purpose, document-based, distributed database built for modern application developers and for the cloud era.",
11+
"features": [],
12+
"docker_images": {
13+
"MongoDB_8": "ghcr.io\/ptero-eggs\/yolks:mongodb_8"
14+
},
15+
"file_denylist": [],
16+
"startup": "mongod --fork --dbpath \/home\/container\/mongodb\/ --port ${SERVER_PORT} --bind_ip 0.0.0.0 --logpath \/home\/container\/logs\/mongo.log -f \/home\/container\/mongod.conf; until nc -z -v -w5 127.0.0.1 ${SERVER_PORT}; do echo 'Waiting for mongodb connection...'; sleep 5; done; mongosh --username ${MONGO_USER} --password ${MONGO_USER_PASS} --host 127.0.0.1:${SERVER_PORT} && mongosh --username ${MONGO_USER} --password ${MONGO_USER_PASS} --host 127.0.0.1:${SERVER_PORT} --eval \"db.getSiblingDB('admin').shutdownServer()\"",
17+
"config": {
18+
"files": "{\r\n \"mongod.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"#security:\": \"security: \\r\\n authorization: \\\"enabled\\\"\"\r\n }\r\n }\r\n}",
19+
"startup": "{\r\n \"done\": \"child process started successfully\"\r\n}",
20+
"logs": "{}",
21+
"stop": "exit"
22+
},
23+
"scripts": {
24+
"installation": {
25+
"script": "#!\/bin\/bash \r\nif [ ! -d \/mnt\/server\/ ]; then\r\n mkdir -p \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\/\r\n\r\ncp \/etc\/mongod.conf.orig \/mnt\/server\/mongod.conf\r\n\r\nmkdir mongodb logs\r\n\r\nmongod --port 27017 --dbpath \/mnt\/server\/mongodb\/ --logpath \/mnt\/server\/logs\/mongo.log --fork\r\n\r\nmongosh --eval \"db.getSiblingDB('admin').createUser({user: '${MONGO_USER}', pwd: '${MONGO_USER_PASS}', roles: ['root']})\"\r\n\r\nmongosh --eval \"db.getSiblingDB('admin').shutdownServer()\"\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
26+
"container": "mongo:8-noble",
27+
"entrypoint": "bash"
28+
}
29+
},
30+
"variables": [
31+
{
32+
"name": "Mongo Admin Username",
33+
"description": "The MongoDB Admin user",
34+
"env_variable": "MONGO_USER",
35+
"default_value": "admin",
36+
"user_viewable": true,
37+
"user_editable": true,
38+
"rules": "required|string",
39+
"field_type": "text"
40+
},
41+
{
42+
"name": "Mongo Admin Password",
43+
"description": "",
44+
"env_variable": "MONGO_USER_PASS",
45+
"default_value": "",
46+
"user_viewable": true,
47+
"user_editable": true,
48+
"rules": "required|string",
49+
"field_type": "text"
50+
}
51+
]
52+
}

0 commit comments

Comments
 (0)