McMyAdmin Panel docker file to administrate and run all variants of a Java Minecraft Server.
Note: As the below is overseen often, the default user/password for the McMyAdmin Login is admin / pass123
Like some of my work? Buy me a coffee ☕ (or more likely a beer 🍺, or even more likly shoes 👠 or purse 👜 for the wify 😄)
Goal of this docker image is to create an easy to use docker file providing the up to date McMyAdmin Panel which can run all kinds of Java Minecraft versions. Most images on Docker Hub do not save the world when stopping the container, which has been added to this image. The actual persistent data e.g. worlds, configuration, etc. is mounted to a volume so it can be configured easily. Also this docker image tails the latest McMyAdmin log file to provide logging information e.g. Portainer or on the command line.
Basic run command to get things up and running
docker run -d \
--name mcmyadmin \
-p 8080:8080 \
-p 25565:25565 \
--stop-timeout 30 \
--restart unless-stopped \
tekgator/docker-mcmyadmin:latest
Map to local storage using an existing user on the host machine (get UID/GID via ID command)
-v /home/xxx/McMyAdmin:/data
-e PUID=xxx
-e PGID=xxx
Option to accept the Minecraft Server EULA automatically
-e EULA=1
Start and Re-start container automatically
--restart unless-stopped
Allow enough time when the container is stopped to shutdown Minecraft and McMyAdmin gracefully
--stop-timeout 30
If you like to expose other ports for some plugins e.g. Dynmap
-p 8123:8123 \
useradd minecraftmkdir ~/mcmyadminid minecraft e.g. UID 1000 / GID 100docker run -d \
--name mcmyadmin \
-p 8080:8080 \
-p 25565:25565 \
-v /home/minecraft/mcmyadmin:/data \
-e PUID=1000 \
-e PGID=100 \
-e EULA=1 \
--restart unless-stopped \
--stop-timeout 30 \
tekgator/docker-mcmyadmin:latest
A sample docker-compose file can be found within the repository.
mcmyadmin:
image: tekgator/docker-mcmyadmin:latest
container_name: mcmyadmin
environment:
PUID: 1000
PGID: 100
EULA: 1
volumes:
- /home/minecraft/mcmyadmin:/data
ports:
- 8080:8080
- 25565:25565
stop_grace_period: 30s
restart: unless-stopped
Now you have access to the Minecraft game data via the minecraft user on the host system by accessing cd ~/mcmyadmin
HAVE FUN!
McMyAdmin.conf in your locale storage in an editorWithin the mounted volume you can find:
McMyAdmin.conf file to configure the McMyAdmin Panel like Java RAM usage, etc.Minecraft directory where you can find the server.properties, logs, etc.plugin directory to add mods and change the configuration of modsdocker exec -it mcmyadmin /bin/bashdocker logs -f mcmyadminContent type
Image
Digest
Size
262.5 MB
Last updated
over 4 years ago
docker pull tekgator/docker-mcmyadmin