Merge pull request 'Bleeding edge' (#1) from bleeding-edge into main
Reviewed-on: #1
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
name: Verify configuration
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||||
|
SERVER_PORT: 50000
|
||||||
|
VOICE_CHAT_PORT: 50001
|
||||||
|
RCON_PORT: 50002
|
||||||
|
BLUEMAP_PORT: 50003
|
||||||
|
GEYSER_PORT: 50004
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
verify-healthy:
|
||||||
|
runs-on: linux-amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Start stack
|
||||||
|
run: docker compose up -d
|
||||||
|
|
||||||
|
- name: Check health
|
||||||
|
run: |
|
||||||
|
for i in {1..60}; do
|
||||||
|
status=$(docker inspect --format='{{if .State.Health}}{{.State.Health.Status}}{{else}}starting{{end}}' minecraftserver-mc-1 2>/dev/null || echo "missing")
|
||||||
|
if [ "$status" = "healthy" ]; then
|
||||||
|
echo "Server healthy"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Server failed health check"
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: Cleanup
|
||||||
|
if: always()
|
||||||
|
run: docker compose down -v
|
||||||
+10
-28
@@ -6,38 +6,22 @@ services:
|
|||||||
stdin_open: true
|
stdin_open: true
|
||||||
user: "${UID}:${GID}"
|
user: "${UID}:${GID}"
|
||||||
ports:
|
ports:
|
||||||
- "25565:25565"
|
- "${SERVER_PORT}:25565"
|
||||||
- "24454:24454/udp"
|
- "${VOICE_CHAT_PORT}:24454/udp"
|
||||||
- "25585:25585"
|
- "${RCON_PORT}:25585"
|
||||||
- "8100:8100"
|
- "${BLUEMAP_PORT}:8100"
|
||||||
- "19132:19132/udp"
|
- "${GEYSER_PORT}:19132/udp"
|
||||||
environment:
|
environment:
|
||||||
VERSION: "1.21.4"
|
VERSION: "1.21.4"
|
||||||
ANNOUNCE_PLAYER_ACHIEVEMENTS: false
|
ANNOUNCE_PLAYER_ACHIEVEMENTS: false
|
||||||
EULA: "TRUE"
|
EULA: "TRUE"
|
||||||
TYPE: PAPER
|
TYPE: PAPER
|
||||||
PLUGINS: |
|
PLUGINS:
|
||||||
#https://download.geysermc.org/v2/projects/floodgate/versions/latest/builds/latest/downloads/spigot
|
|
||||||
#https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest/downloads/spigot
|
|
||||||
https://github.com/SkinsRestorer/SkinsRestorer/releases/latest/download/SkinsRestorer.jar
|
|
||||||
https://github.com/oddlama/vane/releases/download/v1.18.0/vane-core-1.18.0.jar
|
|
||||||
#https://github.com/oddlama/vane/releases/download/v1.18.0/vane-permissions-1.18.0.jar
|
|
||||||
https://github.com/oddlama/vane/releases/download/v1.18.0/vane-trifles-1.18.0.jar
|
|
||||||
https://github.com/oddlama/vane/releases/download/v1.18.0/vane-admin-1.18.0.jar
|
|
||||||
#https://github.com/oddlama/vane/releases/download/v1.18.0/vane-bedtime-1.18.0.jar
|
|
||||||
https://github.com/BlueMap-Minecraft/BlueMap/releases/download/v5.7/bluemap-5.7-paper.jar
|
|
||||||
https://github.com/froobynooby/SeeMore/releases/download/v1.0.2/SeeMore-1.0.2.jar
|
|
||||||
#https://github.com/ViaVersion/ViaVersion/releases/download/5.3.2/ViaVersion-5.3.2.jar
|
|
||||||
#https://github.com/ViaVersion/ViaBackwards/releases/download/5.3.2/ViaBackwards-5.3.2.jar
|
|
||||||
#https://github.com/ViaVersion/ViaRewind/releases/download/4.0.7/ViaRewind-4.0.7.jar
|
|
||||||
#https://github.com/4drian3d/AuthMeVelocity/releases/download/4.1.2/AuthMeVelocity-Paper-4.1.2.jar
|
|
||||||
#https://github.com/AuthMe/AuthMeReloaded/releases/download/5.6.0/AuthMe-5.6.0.jar
|
|
||||||
#https://github.com/TuxCoding/FastLogin/releases/download/1.12-kick-toggle/FastLoginBukkit.jar
|
|
||||||
COPY_CONFIG_DEST: "/data"
|
COPY_CONFIG_DEST: "/data"
|
||||||
ONLINE_MODE: false
|
ONLINE_MODE: false
|
||||||
RCON_PASSWORD: ${RCON_PASSWORD}
|
RCON_PASSWORD: ${RCON_PASSWORD}
|
||||||
RCON_PORT: 25585
|
RCON_PORT: ${RCON_PORT}
|
||||||
MAX_MEMORY: "8G"
|
MAX_MEMORY: "4G"
|
||||||
SPAWN_PROTECTION: 0
|
SPAWN_PROTECTION: 0
|
||||||
ENABLE_WHITELIST: true
|
ENABLE_WHITELIST: true
|
||||||
volumes:
|
volumes:
|
||||||
@@ -47,9 +31,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
broadcaster:
|
broadcaster:
|
||||||
build:
|
image: ghcr.io/mcxboxbroadcast/standalone:latest
|
||||||
context: ./mcxboxbroadcast
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
user: "${UID}:${GID}"
|
user: "${UID}:${GID}"
|
||||||
depends_on:
|
depends_on:
|
||||||
#proxy:
|
#proxy:
|
||||||
@@ -57,5 +39,5 @@ services:
|
|||||||
mc:
|
mc:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
- ./broadcast-data:/app
|
- ./mcxboxbroadcast/config:/opt/data/config
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Use a base image with Java installed
|
# Use a base image with Java installed
|
||||||
FROM openjdk:17-jdk
|
FROM amazoncorretto:17.0.19-al2023-headless
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user