Skip to content

Commit

Permalink
feat: add third-party server suppor
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowballXueQiu committed Sep 13, 2023
1 parent 62eb31c commit 5ccc4b9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions minecraft-third-party/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.7'

networks:
minecraft-third-party:
name: minecraft-third-party
driver: bridge
ipam:
driver: default
config:
- subnet: 172.31.0.0/16
gateway: 172.31.0.1

services:
xkball:
image: vastsea/mc-zulu20-python3-env:latest
container_name: 30001-Xkball
hostname: xkball
restart: unless-stopped
ports:
- "30001:30001"
networks:
minecraft-third-party:
ipv4_address: 172.31.0.2
volumes:
- ../[30001]xkball/:/home/[30001]xkball/
entrypoint: /bin/bash
command: -c "/home/[30001]xkball/launch-build.sh"
tty: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /bin/sh

echo ----------------------------------------
echo [1.20.1-Vanilla] xkballServer
echo By:Snowball_233
echo ----------------------------------------

while true
do

echo Loading server...

cd "/home/[30001]xkball/"

python3 -m mcdreforged

sleep 5

done

0 comments on commit 5ccc4b9

Please sign in to comment.