Easily set up pterodactyl on Docker, adhering to the one service per container mantra.
(Well, mostly. Cron and php-fpm run on the same container, but cron doesn't count, right?)
I think it should be compatible with Docker Swarm, but I'm not able to test this myself yet.
docker-compose.yml
to somewhere on your computer.docker-compose.yml
to choose a secure username and password for your database. You'll need to use the same credentials for both mariadb's MYSQL_USER/MYSQL_PASSWORD and PHP-FPM's DB_USERNAME/DB_PASSWORD environment variables.docker-compose up -d
.docker ps
. It should be something like docker-pterodactyl-panel_php-fpm_1
.docker exec -it docker-pterodactyl-panel_php-fpm_1 php artisan p:user:make
and follow the prompts to set up your first user.By default this stack includes its own MariaDB server, but with a few modifications you can have it use an existing database server instead. You will need to make several modifications to docker-compose.yml.