computer-playbook/roles/docker-mybb/README.md

41 lines
2.2 KiB
Markdown
Raw Normal View History

2023-12-06 11:36:18 +01:00
# Role Name: Docker MyBB
2023-12-05 22:17:47 +01:00
2023-12-06 11:36:18 +01:00
## Dependencies
2023-12-05 22:17:47 +01:00
- nginx-docker-reverse-proxy
2023-12-06 11:36:18 +01:00
## Variables
2023-12-05 22:17:47 +01:00
- `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.
2023-12-06 11:36:18 +01:00
## Tasks
2023-12-05 22:17:47 +01:00
1. **Domain Certificate Retrieval:** Automates the process of obtaining SSL certificates for the specified domain using Certbot.
2. **Nginx Configuration:** Handles the configuration of Nginx for the MyBB domain.
3. **Directory Creation:** Ensures the creation of necessary directories including parent directories as required.
4. **MyBB and Nginx Configuration:** Manages the configuration for MyBB and Nginx, including setting up the `default.conf` file.
5. **Docker Compose Setup:** Adds and manages the `docker-compose.yml` file necessary for running MyBB with Docker.
2023-12-06 11:36:18 +01:00
## Usage
2023-12-05 22:17:47 +01:00
2023-12-06 11:36:18 +01:00
### Install Plugins
2023-12-05 22:17:47 +01:00
To install MyBB plugins, extract them to a mounted volume and sync using the provided `docker run` command
2020-12-24 14:27:31 +01:00
```bash
docker run --rm -v mybb-data:/target/ -v /mnt/:/origin/ "kevinveenbirkenbach/alpine-rsync" sh -c "rsync -avv /origin/inc/plugins/ /target/"
```
2023-12-05 22:17:47 +01:00
2023-12-06 11:36:18 +01:00
### Running the Role
2023-12-05 22:17:47 +01:00
Execute the Ansible playbook containing this role to set up MyBB in a Docker environment.
2023-12-06 11:36:18 +01:00
## Docker Compose Configuration
2023-12-05 22:17:47 +01:00
The `docker-compose.yml.j2` template outlines the services required for MyBB, including the application server, Nginx web server, and database (MariaDB).
2023-12-06 11:36:18 +01:00
## Additional Information
2023-12-05 22:17:47 +01:00
- For detailed configuration and customization, refer to the contents of the `default.conf` template and the `docker-compose.yml.j2` template.
- Ensure that the environment variables and paths are correctly set as per your system's configuration.
2023-12-06 11:36:18 +01:00
## Created with ChatGPT
This README was created with the assistance of ChatGPT, based on a conversation held at this [link](https://chat.openai.com/share/83828f9a-b817-48d8-86ed-599f64850b4d). ChatGPT provided guidance on structuring this document and outlining the key components of the Docker MyBB role.
## More Information
- https://github.com/mybb/docker