Skip to content
/ docker Public
forked from mybb/docker

The official Dockerfile for the MyBB forum software.

License

Notifications You must be signed in to change notification settings

KevinVR/docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls Docker Stars MicroBadger Size

Supported tags and respective Dockerfile links

Quick reference

What is MyBB?

MyBB is the free and open source, intuitive, extensible, and incredibly powerful forum software you've been looking for. With everything from forums to threads, posts to private messages, search to profiles, and reputation to warnings, MyBB features everything you need to run an efficient and captivating community. Through plugins and themes, you can extend MyBB's functionality to build your community exactly as you'd like it. Learn more at MyBB.com.

wikipedia.org/wiki/MyBB

logo

How to use this image

Example stack.yml for mybb:

services:
  mybb:
    image: mybb/mybb:latest
    volumes:
    - ${PWD}/mybb:/var/www/html:rw

  nginx:
    image: nginx:mainline-alpine
    ports:
    - published: 8080
      target: 80
    volumes:
    - ${PWD}/nginx:/etc/nginx/conf.d:ro
    - ${PWD}/mybb:/var/www/html:ro

  postgresql:
    environment:
      POSTGRES_DB: mybb
      POSTGRES_PASSWORD: changeme
      POSTGRES_USER: mybb
    image: postgres:13.2-alpine
    volumes:
    - ${PWD}/postgres/data:/var/lib/postgresql/data:rw

version: '3.8'

Note, you'll also need a virtual host configuration file for the provided nginx container. You can find a very basic example here. Create this file as nginx/default.conf, respective to the location of your docker-compose.yml file.

You should note that static content such as images and JavaScript or CSS files must be cross-mounted between the mybb and nginx containers - as PHP-FPM is not capable of serving those natively.

How to build this image

You must provide four build-time arguments when building this Docker image; BUILD_AUTHORS, BUILD_DATE, BUILD_SHA1SUM and BUILD_VERSION.

docker build \
  --build-arg BUILD_AUTHORS="Kane 'kawaii' Valentine <[email protected]>" \
  --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
  --build-arg BUILD_SHA1SUM=5cd4771ef396964869d3b42ec520d2bea80084ce \
  --build-arg BUILD_VERSION=1826 \
  --tag mybb/mybb:1.8 \
  --tag mybb/mybb:1.8.26 \
  --tag mybb/mybb:latest \
  $PWD

The resulting image can then be pushed to the mybb/mybb Docker Hub repository:

docker push mybb/mybb:1.8.26

About

The official Dockerfile for the MyBB forum software.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 85.2%
  • Shell 14.8%