Skip to content

JhonDesayuna/MinecraftPanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Como instalar "MinecraftPanel" en docker con portainer (ubuntu 20.04)

Docker:

Docker Compose

version: '3.0'

services:
    apache:
        container_name: apache2
        image: ubuntu/apache2:2.4-20.04_beta
        networks:
          - nginx
        volumes:
            - ./data:/usr/local/apache2/htdocs
            - ./html:/var/www/html
            - ./php:/etc/php
        restart: always
        environment:
            - [email protected]
            - LETSENCRYPT_HOST=McServer.JhonFast.v0x.eu
            - VIRTUAL_HOST=McServer.JhonFast.v0x.eu
            - VIRTUAL_PROTO=http
        ports:
            - 25565:25565

networks:
    nginx:
        external: true

volumes:
    php:
        external: true

Después, una vez creado el contenedor entramos y accedemos a consola.

image

Hacemos click en CONNECT

image

Java 21 (OpenJDK 21)

apt update
apt upgrade
apt install -y openjdk-21-jdk

Entrar en el contenedor y usar la consola desde dentro

docker-compose exec "nombre del contenedor" bash
docker-compose exec apache bash

Panel de Minecraft Web

apt install wget
apt install unzip

nuevo

apt install apache2 php libapache2-mod-php default-jdk screen vim php-cli php-json gawk wget tar gzip git zip unzip pigz

antiguo

apt install -y apache2 php libapache2-mod-php default-jdk screen php-mbstring php-zip php-cli php-json gawk wget zip unzip
wget https://github.com/JhonDesayuna/MinecraftPanel/raw/main/McWebPanel.zip
unzip McWebPanel.zip
chmod -R 775 McWebPanel

Cambiar Limite de Subida

/etc/php/7.0/apache2/php.ini
post_max_size = 1024M
upload_max_filesize = 1024M

Mediante la Terminal

Crear dentro de "apache2" en el servidor, las siguientes carpetas

image

Añadir delante de los comandos lo siguiente

docker exec -it "id contenedor"
docker exec -it "id contenedor" apt install -y openjdk-17-jdk

Bibliografia:

https://hub.docker.com/r/ubuntu/apache2

https://github.com/Konata400/McWebPanel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published