mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-05 22:36:24 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07c32d8ee4 | ||
|
|
2e631bcbd9 | ||
|
|
c96c630fe5 | ||
|
|
f69e75cfc1 |
@@ -4,7 +4,7 @@ MAINTAINER itzg
|
|||||||
|
|
||||||
RUN apk -U add bash
|
RUN apk -U add bash
|
||||||
|
|
||||||
ENV ES_VERSION=5.2.1
|
ENV ES_VERSION=5.2.2
|
||||||
|
|
||||||
ADD https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.tar.gz /tmp/es.tgz
|
ADD https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.tar.gz /tmp/es.tgz
|
||||||
RUN cd /usr/share && \
|
RUN cd /usr/share && \
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
minecraft-server:
|
minecraft:
|
||||||
ports:
|
ports:
|
||||||
- "25570:25565"
|
- "25565:25565"
|
||||||
volumes:
|
volumes:
|
||||||
- "mcbig:/data"
|
- "mcbig:/data"
|
||||||
environment:
|
environment:
|
||||||
@@ -16,6 +16,14 @@ services:
|
|||||||
CONSOLE: "false"
|
CONSOLE: "false"
|
||||||
image: itzg/minecraft-server
|
image: itzg/minecraft-server
|
||||||
restart: always
|
restart: always
|
||||||
|
rcon:
|
||||||
|
image: itzg/rcon
|
||||||
|
ports:
|
||||||
|
- "4326:4326"
|
||||||
|
- "4327:4327"
|
||||||
|
volumes:
|
||||||
|
- "rcon:/opt/rcon-web-admin/db"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mcbig:
|
mcbig:
|
||||||
|
rcon:
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ function installForge {
|
|||||||
echo "Checking Forge version information."
|
echo "Checking Forge version information."
|
||||||
case $FORGEVERSION in
|
case $FORGEVERSION in
|
||||||
RECOMMENDED)
|
RECOMMENDED)
|
||||||
wget -q -O /tmp/forge.json -sSL http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
|
wget -q -O /tmp/forge.json http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
|
||||||
FORGE_VERSION=$(cat /tmp/forge.json | jq -r ".promos[\"$norm-recommended\"]")
|
FORGE_VERSION=$(cat /tmp/forge.json | jq -r ".promos[\"$norm-recommended\"]")
|
||||||
if [ $FORGE_VERSION = null ]; then
|
if [ $FORGE_VERSION = null ]; then
|
||||||
FORGE_VERSION=$(cat /tmp/forge.json | jq -r ".promos[\"$norm-latest\"]")
|
FORGE_VERSION=$(cat /tmp/forge.json | jq -r ".promos[\"$norm-latest\"]")
|
||||||
@@ -138,7 +138,7 @@ function installForge {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# URL format changed for 1.7.10 from 10.13.2.1300
|
# URL format changed for 1.7.10 from 10.13.2.1300
|
||||||
sorted=$( (echo $FORGE_VERSION; echo 10.13.2.1300) | sort -V | head -1)
|
sorted=$( (echo $FORGE_VERSION; echo 10.13.2.1300) | sort | head -1)
|
||||||
if [[ $norm == '1.7.10' && $sorted == '10.13.2.1300' ]]; then
|
if [[ $norm == '1.7.10' && $sorted == '10.13.2.1300' ]]; then
|
||||||
# if $FORGEVERSION >= 10.13.2.1300
|
# if $FORGEVERSION >= 10.13.2.1300
|
||||||
normForgeVersion="$norm-$FORGE_VERSION-$norm"
|
normForgeVersion="$norm-$FORGE_VERSION-$norm"
|
||||||
|
|||||||
Reference in New Issue
Block a user