add Dockerfile, docker-compose, dependencies, and documentation

This commit is contained in:
2026-01-17 23:43:05 -06:00
commit 3c89075eaa
7 changed files with 169 additions and 0 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
services:
minecraft_server:
image: minecraft_server
container_name: minecraft_server
restart: unless-stopped
stop_grace_period: 120s
volumes:
- data:/minecraft_data
ports:
- 25565:25565
environment:
# note: this is only used when initializing a new volume (technically, initializing a new server.properties file)
# if you want to change the password to your RCON server, edit it in your existing volume's server.properties file
MCRCON_PASS: YourPasswordHere
# note: again, this download URL is only used when initializing a new volume
# this is where the container will attempt to download a server.jar from
SERVER_JAR_DOWNLOAD_URL: https://piston-data.mojang.com/v1/objects/450698d1863ab5180c25d7c804ef0fe6369dd1ba/server.jar
volumes:
data:
name: minecraft_server_data