2020-09-29 11:46:33 +08:00
|
|
|
{
|
|
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
|
|
"meta": {
|
2022-08-28 19:34:17 +08:00
|
|
|
"version": "PTDL_v2",
|
|
|
|
"update_url": null
|
2020-09-29 11:46:33 +08:00
|
|
|
},
|
2022-08-28 19:34:17 +08:00
|
|
|
"exported_at": "2022-08-28T13:33:51+02:00",
|
2020-09-29 11:46:33 +08:00
|
|
|
"name": "MongoDB",
|
|
|
|
"author": "parker@parkervcp.com",
|
|
|
|
"description": "MongoDB is a general purpose, document-based, distributed database built for modern application developers and for my butt era.",
|
2022-08-28 19:34:17 +08:00
|
|
|
"features": null,
|
|
|
|
"docker_images": {
|
|
|
|
"MongoDB_4": "ghcr.io\/parkervcp\/yolks:mongodb_4",
|
2022-08-28 20:15:18 +08:00
|
|
|
"MongoDB_5": "ghcr.io\/parkervcp\/yolks:mongodb_5",
|
|
|
|
"MongoDB_6": "ghcr.io\/parkervcp\/yolks:mongodb_6"
|
2022-08-28 19:34:17 +08:00
|
|
|
},
|
|
|
|
"file_denylist": [],
|
2022-04-03 03:08:31 +08:00
|
|
|
"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 && mongo --username ${MONGO_USER} --password ${MONGO_USER_PASS} --host 127.0.0.1:${SERVER_PORT} && mongo --eval \"db.getSiblingDB('admin').shutdownServer()\" 127.0.0.1:${SERVER_PORT}",
|
2020-09-29 11:46:33 +08:00
|
|
|
"config": {
|
|
|
|
"files": "{}",
|
|
|
|
"startup": "{\r\n \"done\": \"child process started successfully\"\r\n}",
|
|
|
|
"logs": "{}",
|
|
|
|
"stop": "exit"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"installation": {
|
|
|
|
"script": "#!\/bin\/bash \r\nif [ ! -d \/mnt\/server\/ ]; then\r\n mkdir \/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\nmongo --eval \"db.getSiblingDB('admin').createUser({user: '${MONGO_USER}', pwd: '${MONGO_USER_PASS}', roles: ['root']})\"\r\n\r\nmongo --eval \"db.getSiblingDB('admin').shutdownServer()\"",
|
|
|
|
"container": "mongo:4-bionic",
|
|
|
|
"entrypoint": "bash"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"variables": [
|
|
|
|
{
|
|
|
|
"name": "Mongo Admin Username",
|
|
|
|
"description": "The MongoDB Admin user",
|
|
|
|
"env_variable": "MONGO_USER",
|
|
|
|
"default_value": "admin",
|
2020-10-30 21:03:00 +08:00
|
|
|
"user_viewable": true,
|
|
|
|
"user_editable": true,
|
2022-08-28 19:34:17 +08:00
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2020-09-29 11:46:33 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Mongo Admin Password",
|
|
|
|
"description": "",
|
|
|
|
"env_variable": "MONGO_USER_PASS",
|
|
|
|
"default_value": "aP@55word",
|
2020-10-30 21:03:00 +08:00
|
|
|
"user_viewable": true,
|
|
|
|
"user_editable": true,
|
2022-08-28 19:34:17 +08:00
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2020-09-29 11:46:33 +08:00
|
|
|
}
|
|
|
|
]
|
2022-02-17 05:19:46 +08:00
|
|
|
}
|