Added Database

main
kB01 2024-02-20 21:53:04 +01:00
parent 219962ec1d
commit 11e4045d52
3 changed files with 65 additions and 3 deletions

13
.gitignore vendored
View File

@ -4,6 +4,10 @@
*/plugins/luckperms/libs
*/plugins/luckperms/translations/repository
*/plugins/Negativity/lang
*/plugins/ArmorStandEditor/lang
*/plugins/ChestShop/languages
*/plugins/EconomyPlus/messages
*/plugins/MoreMobHeads/lang
*/cache/
*/libraries/
*/versions/
@ -18,6 +22,11 @@
*/.papermc-manifest.json
*/.mc-health.env
*/plugins/.var-list-manifest.json
*/plugins/ChestShop/config.yml.bak
*/plugins/ChestShop/items.db
*/plugins/ChestShop/users.db
*/plugins/Chunky/tasks
*/plugins/DailyRewards/config.yml.bak
*/permissions.yml
proxy/lang/*
proxy/plugins/Geyser-Velocity/cache/
@ -34,9 +43,11 @@ proxy/plugins/librelogin/lib/
*/.rcon-cli.env
*/.rcon-cli.yaml
*/plugins/bStats
*/plugins/DailyRewards/data.yml
*/plugins/luckperms/luckperms-h2-v2.mv.db
*/plugins/Negativity/user
*/plugins/Negativity/player-ips.yml
proxy/plugins/floodgate/key.pem
proxy/plugins/librelogin/user-data.db
proxy/forwarding.secret
proxy/forwarding.secret
database/data/

41
database/init/01.sql Normal file
View File

@ -0,0 +1,41 @@
-- Create linking Database for Floodgate Plugin (BungeeCord)
CREATE DATABASE bedrocklink;
create user floodgate identified by 'change-me-password-floodgate-db' ;
GRANT ALL PRIVILEGES ON bedrocklink.* TO floodgate;
flush privileges;
-- Create Database for AdvancedBan Plugin (BungeeCord)
CREATE DATABASE ban;
create user advancedban identified by 'change-me-password-advancedban-db' ;
GRANT ALL PRIVILEGES ON ban.* TO advancedban;
flush privileges;
-- Create Database for LuckPerms Plugin (BungeeCord, Main, Survival)
CREATE DATABASE permission;
create user luckperms identified by 'change-me-password-luckperms-db' ;
GRANT ALL PRIVILEGES ON permission.* TO luckperms;
flush privileges;
-- Create Database for BungeeTeleportManager Plugin (Main, Survival)
CREATE DATABASE btm;
create user btmuser identified by 'change-me-password-btm-db' ;
GRANT ALL PRIVILEGES ON btm.* TO btmuser;
flush privileges;
-- Create Database for PlotSquared Plugin (Main)
CREATE DATABASE plot;
create user plotsquared identified by 'change-me-password-plot-db' ;
GRANT ALL PRIVILEGES ON plot.* TO plotsquared;
flush privileges;
-- Create Database for DailyRewards Plugin (Main, Survival)
CREATE DATABASE rewards;
create user rewardsuser identified by 'change-me-password-rewards-db' ;
GRANT ALL PRIVILEGES ON rewards.* TO rewardsuser;
flush privileges;
-- Create Database for EconomyPlus Plugin (Main, Survival)
CREATE DATABASE economy;
create user economyplus identified by 'change-me-password-economy-db' ;
GRANT ALL PRIVILEGES ON economy.* TO economyplus;
flush privileges;

View File

@ -2,6 +2,16 @@ version: "3.8"
services:
database:
image: mariadb
container_name: database
environment:
MYSQL_ROOT_PASSWORD: change-me-password-root-db
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./database/data:/var/lib/mysql
- ./database/init:/docker-entrypoint-initdb.d
proxy:
hostname: proxy
container_name: proxy
@ -11,9 +21,9 @@ services:
volumes:
- ./proxy:/server
ports:
- "25565:25565"
- "25565:25565" # Minecraft Java
- "25565:25565/udp"
- "19132:19132"
- "19132:19132" # Minecraft Bedrock Edition
- "19132:19132/udp"
healthcheck:
disable: true