This project provides a versatile Docker image for MyBB forum software, allowing users to select any version with ease. Key features include persistent data storage, a secure default configuration, and a safe upgrade mode that preserves existing settings and files. Ideal for both novices and seasoned developers, it enhances deployment efficiency using Docker or Docker Compose.
This repository provides a flexible Docker image for MyBB forum software, allowing users to leverage any version of MyBB while simplifying deployment and management. Key features of this Docker image include:
- Effortless Deployment: Deploy MyBB effortlessly using Docker or Docker Compose.
- Version Flexibility: Configurable support for any MyBB version, ensuring the latest features and enhancements.
- Data Persistence: Leverage Docker volumes for persistent data storage, ensuring that changes remain intact across container restarts.
- Secure Configuration: Comes with a secure default configuration to safeguard your forum from common vulnerabilities.
- Optimized PHP Configuration: The image is designed with an optimized PHP setup tailored for MyBB.
- Safe Upgrade Mode: This feature allows users to upgrade MyBB while preserving configurations, uploads, themes, and plugins, minimizing disruption.
- Health Checks: Integrated health checks for container orchestration, ensuring the reliability of your deployment.
- SFTP Support: An optional SFTP server is included for convenient file management, such as uploading themes and plugins.
- Database Management: Optionally includes phpMyAdmin for efficient database operations.
Usage
To get started quickly with the MyBB Docker image, users can choose between Docker Compose or the Docker CLI:
Docker Compose Example
This image comes with a predefined Docker Compose file for easy setup.
Docker CLI Example
Here’s a quick setup using the Docker command line:
# Build the image
docker build -t mybb .
# Create a network
docker network create mybb-network
# Start MariaDB container
docker run -d \
--name mybb-db \
--network mybb-network \
-e MYSQL_ROOT_PASSWORD=root_password \
-e MYSQL_DATABASE=mybb \
-e MYSQL_USER=mybb \
-e MYSQL_PASSWORD=mybb_password \
-v mybb_db_data:/var/lib/mysql \
mariadb:10.11
# Start MyBB container
docker run -d \
--name mybb-forum \
--network mybb-network \
-p 8080:80 \
-e MYBB_VERSION=1839 \
-e DB_HOST=mybb-db \
-e DB_USER=mybb \
-e DB_PASSWORD=mybb_password \
-e DB_NAME=mybb \
-v mybb_data:/var/www/html \
mybb
# Access MyBB at http://localhost:8080
The repository is designed with user-friendliness in mind, providing environment variable options to adjust configurations easily. Managing files via SFTP allows for seamless updates of themes and plugins, enhancing customization.
Upgrade Process
The image supports a safe upgrade mode that retains settings and customizations during updates. By enabling this mode, users can perform upgrades without the risk of losing critical forum data.
Regular backups and security recommendations are included to ensure the system remains stable and secure over time. For those looking to harness the potential of MyBB in a Docker environment, this repository offers a comprehensive solution.
No comments yet.
Sign in to be the first to comment.