From 0f64050a972c362d0868df92c6ae6cb2f11c263f Mon Sep 17 00:00:00 2001 From: Tormak3D <143688732+Tormak3D@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:35:37 +0200 Subject: [PATCH 1/3] Update Dockerfile - required for versions >= 1.20.5 Updated Dockerfile for new version of Java Version 21 is required for 1.20.5 Server does not start without it. REF: https://www.minecraft.net/en-us/article/minecraft-java-edition-1-20-5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e79f2f40..6fe6749a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \ curl \ rlwrap \ unzip \ - openjdk-17-jre-headless \ + openjdk-21-jre-headless \ openjdk-8-jre-headless \ ca-certificates-java \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* From 94a3b685c59760e5f65c3473c132bad92aade8cd Mon Sep 17 00:00:00 2001 From: Tormak3D <143688732+Tormak3D@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:44:23 +0200 Subject: [PATCH 2/3] Update docker-compose.yml - Fix timezone Map the container's time zone and local time files to use that of the host machine in the docker compose file --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 353ecb32..2e9c075f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,9 @@ services: # with permissions that prevent normal users from accessing # the folder structure. - /var/games/mineos/minecraft:/var/games/minecraft + # Set timezone from the host + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro environment: # Should the web interface use HTTPS or HTTP? From 2d53ec8df499c0e072eefb22fcf2e1d476543bd6 Mon Sep 17 00:00:00 2001 From: Tormak3D <143688732+Tormak3D@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:47:21 +0200 Subject: [PATCH 3/3] Update docker-compose.yml - Fix timezone Map the container's time zone and local time files to use that of the host machine in the docker compose file --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2e9c075f..8d3f700f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: # with permissions that prevent normal users from accessing # the folder structure. - /var/games/mineos/minecraft:/var/games/minecraft - # Set timezone from the host + # Set timezone from the host - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro