add minecraft :D

This commit is contained in:
CeciliaKelley33Mm 2024-10-05 18:34:43 +07:00
parent ae607cf714
commit d61495a6f4
3 changed files with 40 additions and 1 deletions

View file

@ -53,13 +53,18 @@ jobs:
run: |
mkdir /tmp/muse
cd /tmp/muse
wget https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/docker-compose.yml
wget -O docker-compose.yml https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/muse-compose.yml
sed -i 's/DISCORD_TOKEN_PLACEHOLDER/${{ secrets.DISCORD_TOKEN }}/g' docker-compose.yml
sed -i 's/YOUTUBE_API_KEY_PLACEHOLDER/${{ secrets.YOUTUBE_API_KEY }}/g' docker-compose.yml
sed -i 's/SPOTIFY_CLIENT_ID_PLACEHOLDER/${{ secrets.SPOTIFY_CLIENT_ID }}/g' docker-compose.yml
sed -i 's/SPOTIFY_CLIENT_SECRET_PLACEHOLDER/${{ secrets.SPOTIFY_CLIENT_SECRET }}/g' docker-compose.yml
docker compose up -d &
mkdir /tmp/minecraft
cd /tmp/minecraft
wget -O docker-compose.yml https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/minecraft-compose.yml
docker compose up -d &
cd /tmp/CeciliaKelley33Mm.github.io-main/backend
npm i
node index.js &

34
minecraft-compose.yml Normal file
View file

@ -0,0 +1,34 @@
services:
minecraft:
image: itzg/minecraft-server
tty: true
stdin_open: true
ports:
- "25565:25565"
environment:
TZ: "America/Los_Angeles"
EULA: "TRUE"
INIT_MEMORY: "4G"
MAX_MEMORY: "14G"
USE_AIKAR_FLAGS: "true"
TYPE: "paper"
MOTD: "§dA Minecraft Server hosted on GitHub Actions :D"
ONLINE_MODE: "false"
DIFFICULTY: "peaceful"
MAX_PLAYERS: "100"
ENABLE_COMMAND_BLOCK: "true"
MODE: "creative"
ALLOW_FLIGHT: "true"
RCON_PASSWORD: "minecraft" # totally secure password wow
PLUGINS: |
https://github.com/EssentialsX/Essentials/releases/download/2.20.1/EssentialsX-2.20.1.jar
https://hangarcdn.papermc.io/plugins/ViaVersion/ViaBackwards/versions/5.0.3/PAPER/ViaBackwards-5.0.3.jar
https://cdn.modrinth.com/data/fRQREgAc/versions/AdtrWcU2/Dynmap-3.7-beta-7-spigot.jar
SPIGET_RESOURCES: "19254,52109" # viaversion, viarewind
volumes:
- ./data:/data