mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 04:08:15 +00:00 
			
		
		
		
	Role Name: Docker MyBB
Dependencies
- nginx-docker-reverse-proxy
 
Variables
docker_compose_instance_directory: The directory where Docker Compose files for MyBB are stored.conf_d_docker_directory: Directory for Docker Nginx configuration.default_conf_server_file: The default Nginx configuration file for the server.conf_d_server_directory: The Nginx server's configuration directory.
Tasks
- Domain Certificate Retrieval: Automates the process of obtaining SSL certificates for the specified domain using Certbot.
 - Nginx Configuration: Handles the configuration of Nginx for the MyBB domain.
 - Directory Creation: Ensures the creation of necessary directories including parent directories as required.
 - MyBB and Nginx Configuration: Manages the configuration for MyBB and Nginx, including setting up the 
default.conffile. - Docker Compose Setup: Adds and manages the 
docker-compose.ymlfile necessary for running MyBB with Docker. 
Usage
Install Plugins
To install MyBB plugins, extract them to a mounted volume and sync using the provided docker run command
docker run --rm -v mybb-data:/target/ -v /mnt/:/origin/ "kevinveenbirkenbach/alpine-rsync" sh -c "rsync -avv /origin/inc/plugins/ /target/"
Running the Role
Execute the Ansible playbook containing this role to set up MyBB in a Docker environment.
Docker Compose Configuration
The docker-compose.yml.j2 template outlines the services required for MyBB, including the application server, Nginx web server, and database (MariaDB).
Additional Information
- For detailed configuration and customization, refer to the contents of the 
default.conftemplate and thedocker-compose.yml.j2template. - Ensure that the environment variables and paths are correctly set as per your system's configuration.
 
Created with ChatGPT
This README was created with the assistance of ChatGPT, based on a conversation held at this link. ChatGPT provided guidance on structuring this document and outlining the key components of the Docker MyBB role.