Run MyBB - Open Source Forum Software - in Docker @i12bretro
Run MyBB - Open Source Forum Software - in Docker  @i12bretro
Uploaded May 2024 | Updated September 2026, 2 weeks ago
#MyBB #Forum #Docker

*** Updated 05/24/2024

Full steps can be found at i12bretro.github.io/tutorials/0932.html

--------------------------------------------------------------------
What is MyBB?
--------------------------------------------------------------------
MyBB is the free and open source forum software powering thousands of engaging, vibrant, and unique communities across the internet. -  mybb.com
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux host and run the following commands in a terminal window
         # install prerequisites
         sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
         # add docker gpg key
         curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
         # add docker software repository
         sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
         # install docker
         sudo apt install docker-ce docker-compose containerd.io -y
         # enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         # add the current user to the docker group
         sudo usermod -aG docker $USER
         # reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running MyBB Container
--------------------------------------------------------------------
   01. Continue with the following commands in a terminal window
         # create working directories
         mkdir ~/docker/mybb -p && mkdir ~/docker/postgresql -p && mkdir ~/docker/nginx -p
         # set owner of docker directory
         sudo chown "$USER":"$USER" ~/docker -R
         # allow the container to write to working directories
         sudo chmod a+rwx -R ~/docker/mybb
         # download the nginx conf file
         wget -O ~/docker/nginx/default.conf gist.githubusercontent.com/kawaii/ed2fbbf11309b8f635a623fa87abce8d/raw/3a5a6e36b238e55aaef519693ca16c82fbafd2fd/default.conf
         # create containers network
         docker network create containers
         # run the postgesql container
         docker run -d --name postgres --network containers -p 5432:5432 -e POSTGRES_USER=mybb_rw -e POSTGRES_PASSWORD=My44_rw$ -e POSTGRES_DB=mybb -v ~/docker/postgresql:/var/lib/postgresql/data --restart=unless-stopped postgres:latest
         # run the mybb container
         docker run -d --name mybb -v ~/docker/mybb:/var/www/html:rw --network containers --restart=unless-stopped mybb/mybb
         # run nginx webserver container
         docker run -d --name nginx --network containers -p 8081:80 -v ~/docker/mybb:/var/www/html:ro -v ~/docker/nginx:/etc/nginx/conf.d:ro --restart=unless-stopped nginx
   02. Open a web browser and navigate to http://DNSorIP:8081
   03. Click Next at the Welcome screen
   04. Click Next at the License Agreement
   05. Click Next at the Requirements Check
   06. Complete the Database Configuration as shown below
         Database Engine: PostgreSQL
         Database Server Hostname: postgres
         Database Username: mybb_rw
         Database Password: My44_rw$
         Database Name: mybb
         Table Prefix: mybb_
   07. Click Next after the table creation completes
   08. Click Next to complete the Table Population
   09. Click Next at the Theme Insertion screen
   10. Modify the Board Configuration form as needed ≫ Click Next
   11. Create an administrator account by entering a Username, Password and Email Address ≫ Click Next
   12. Click the Admin Control Panel link
   13. Login with the administrator username and password created earlier
   14. Welcome to MyBB
 
Documentation:  github.com/mybb/docker
 


### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
Run MyBB - Open Source Forum Software - in DockerInstalling and Setting Up Squid Proxy Server on DebianRunning a Vanilla ChromiumOS VM in VirtualboxRun VSCodium Containerized in DockerSelf-hosted Wikipedia Style Wiki with MediaWiki on DebianInstalling Windows Subsystem for Linux (WSL) Inside VirtualBox VMInstall Easy!Appointments - Appointment Scheduler System - on WindowsRaspberry Pi 3 vs Raspberry Pi 5Create and Apply SSL Certificates for PortainerIn-Place Upgrade Proxmox VE from 7 to 8Create a Secure Web Based Password Vault with Keepass WebMonitor Docker Container Resource Usage with cAdvisor
i12bretro |

Run MyBB - Open Source Forum Software - in Docker

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER