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.
Hacemos click en CONNECT
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
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
/etc/php/7.0/apache2/php.ini
post_max_size = 1024M
upload_max_filesize = 1024M
Crear dentro de "apache2" en el servidor, las siguientes carpetas
Añadir delante de los comandos lo siguiente
docker exec -it "id contenedor"
docker exec -it "id contenedor" apt install -y openjdk-17-jdk
https://hub.docker.com/r/ubuntu/apache2
https://github.com/Konata400/McWebPanel