Installation via Docker

Guide to installing PteroCA using Docker Compose for fast and isolated deployment.

Overview

PteroCA can be quickly deployed using Docker Compose, which automates the setup of all required services (web server, database, and optional tools) in isolated containers. This method is ideal for both development and production environments, ensuring consistent configuration and easy management.


1. Prerequisites

Before you begin, ensure you have the following installed on your server:

On Windows and macOS, Docker Compose is included with Docker Desktop.


2. Quick Start

Clone the PteroCA repository and run the initialization script:

git clone https://github.com/pteroca-com/panel.git
cd panel
bash docker-init.sh

The script will:

  • Check for Docker and Docker Compose installation

  • Verify that the Docker daemon is running

  • Guide you through environment selection (development or production)

  • Configure database credentials and environment variables

  • Build and start all required containers


3. Environment Selection

During initialization, you will be prompted to choose:

  • Development (dev)

    • Runs on port 8000

    • Includes PHPMyAdmin for database management (port 8080)

    • Uses default credentials for easier local testing

  • Production (prod)

    • Runs on port 80

    • Generates secure, random database passwords

    • Disables PHPMyAdmin for security


4. Configuration Steps

The script will automatically:

  • Detect existing database volumes and environment files

  • Generate or update the .env configuration file

  • Set up database credentials and application secrets

  • Build Docker containers for the selected environment

  • Start the database and web server, running migrations automatically

  • Set proper file permissions for uploads and cache


5. Accessing PteroCA

After installation, you can access the panel at:

Database credentials and other important information will be displayed at the end of the installation.


6. Managing Containers

Common Docker Compose commands:

# Stop all containers
docker-compose -f docker-compose.yml down

# View logs
docker-compose -f docker-compose.yml logs -f

# Restart containers
docker-compose -f docker-compose.yml restart

Replace docker-compose.yml with docker-compose.prod.yml for production.


7. First-Time Configuration

After containers are running, complete the setup using one of two methods:

  • Web Wizard: Visit /first-configuration in your browser for a guided setup.

  • CLI Wizard: Run the following command inside the web container: docker-compose -f exec web php bin/console app:configure-system


8. Pterodactyl Plugin Installation

Read more about Pterodactyl Configuration and PteroCA Plugin for Pterodactyl here.

Installing the Pterodactyl plugin is recommended, and without it, some PteroCA features will not be available. The PteroCA Plugin for Pterodactyl provides functionalities such as access to the server console, editing server variables directly from the server management panel, SSO Login, and more.


9. Troubleshooting

If you encounter issues:

  • Ensure Docker and Docker Compose are installed and running

  • Check that ports 80 or 8000 are not blocked by other services

  • Review logs using docker-compose logs -f

Last updated