mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-26 16:19:04 +08:00
commit
c110c28d1e
11
README.md
11
README.md
@ -47,15 +47,18 @@ If you are reading this it looks like you are looking to add an egg to your serv
|
|||||||
* [JTS3ServerMod](/bots/teamspeak3/jts3servermod/)
|
* [JTS3ServerMod](/bots/teamspeak3/jts3servermod/)
|
||||||
|
|
||||||
## [Database](/database/)
|
## [Database](/database/)
|
||||||
### [SQL] Databases
|
|
||||||
* [MariaDB](/database/sql/mariadb/)
|
|
||||||
* [PostgreSQL](/database/sql/postgres/)
|
|
||||||
|
|
||||||
### In-Memory Databases
|
### In-Memory Databases
|
||||||
[Redis](/database/redis/)
|
[Redis](/database/redis/)
|
||||||
* [Redis 5](/database/redis/redis-5)
|
* [Redis 5](/database/redis/redis-5)
|
||||||
* [Redis 6](/database/redis/redis-6)
|
* [Redis 6](/database/redis/redis-6)
|
||||||
|
|
||||||
|
[noSQL](/database/nosql/)
|
||||||
|
* [mongoDB](/database/nosql/mongodb)
|
||||||
|
|
||||||
|
### [SQL] Databases
|
||||||
|
* [MariaDB](/database/sql/mariadb/)
|
||||||
|
* [PostgreSQL](/database/sql/postgres/)
|
||||||
|
|
||||||
## Game Eggs
|
## Game Eggs
|
||||||
[ET Legacy](/enemy_territory/etlegacy/)
|
[ET Legacy](/enemy_territory/etlegacy/)
|
||||||
|
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
# databases
|
# databases
|
||||||
|
|
||||||
## SQL Databases
|
|
||||||
### [mariadb](/mariadb/)
|
|
||||||
https://mariadb.org/
|
|
||||||
|
|
||||||
### [postgres](/postgres/)
|
|
||||||
https://www.postgresql.org/
|
|
||||||
|
|
||||||
|
|
||||||
## In-Memory Databases
|
## In-Memory Databases
|
||||||
### [redis](/redis/)
|
### [redis](/redis/)
|
||||||
https://redis.io/
|
https://redis.io/
|
||||||
|
|
||||||
|
## NoSQL
|
||||||
|
### [mongodb](/nosql/mongodb/)
|
||||||
|
https://www.mongodb.com/
|
||||||
|
|
||||||
|
## SQL Databases
|
||||||
|
### [mariadb](/sql/mariadb/)
|
||||||
|
https://mariadb.org/
|
||||||
|
|
||||||
|
### [postgres](/sql/postgres/)
|
||||||
|
https://www.postgresql.org/
|
14
database/nosql/mongodb/README.md
Normal file
14
database/nosql/mongodb/README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# mongoDB
|
||||||
|
### From their [Website](https://www.mongodb.com/)
|
||||||
|
MongoDB is a general purpose, document-based, distributed database built for modern application developers and for the cloud era.
|
||||||
|
|
||||||
|
### Minimum RAM warning
|
||||||
|
MongoDB requires approximately 1GB of RAM per 100.000 assets. If the system has to start swapping memory to disk, this will have a severely negative impact on performance, and should be avoided.
|
||||||
|
|
||||||
|
|
||||||
|
### Server Ports
|
||||||
|
Ports required to run the server in a table format.
|
||||||
|
|
||||||
|
| Port | default |
|
||||||
|
|---------|---------|
|
||||||
|
| Server | 27017 |
|
45
database/nosql/mongodb/egg-mongo-d-b.json
Normal file
45
database/nosql/mongodb/egg-mongo-d-b.json
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||||
|
"meta": {
|
||||||
|
"version": "PTDL_v1"
|
||||||
|
},
|
||||||
|
"exported_at": "2020-09-28T23:37:49-04: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.",
|
||||||
|
"image": "quay.io\/parkervcp\/pterodactyl-images:db_mongo-4",
|
||||||
|
"startup": "mongod --fork --dbpath \/home\/container\/mongodb\/ --port ${SERVER_PORT} --logpath \/home\/container\/logs\/mongo.log; until nc -z -v -w5 127.0.0.1 ${SERVER_PORT}; do echo 'Waiting for mongodb connection...'; sleep 5; done && mongo 127.0.0.1:${SERVER_PORT} && mongo --eval \"db.getSiblingDB('admin').shutdownServer()\" 127.0.0.1:${SERVER_PORT}",
|
||||||
|
"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",
|
||||||
|
"user_viewable": 1,
|
||||||
|
"user_editable": 1,
|
||||||
|
"rules": "required|string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Mongo Admin Password",
|
||||||
|
"description": "",
|
||||||
|
"env_variable": "MONGO_USER_PASS",
|
||||||
|
"default_value": "aP@55word",
|
||||||
|
"user_viewable": 1,
|
||||||
|
"user_editable": 1,
|
||||||
|
"rules": "required|string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user