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:
To get started quickly with the MyBB Docker image, users can choose between Docker Compose or the Docker CLI:
This image comes with a predefined Docker Compose file for easy setup.
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.
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.