Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mybb/docker
The official Dockerfile for the MyBB forum software.
https://github.com/mybb/docker
docker forum mybb php
Last synced: 2 months ago
JSON representation
The official Dockerfile for the MyBB forum software.
- Host: GitHub
- URL: https://github.com/mybb/docker
- Owner: mybb
- License: bsd-3-clause
- Created: 2018-03-22T13:08:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-27T19:32:32.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:54:45.263Z (2 months ago)
- Topics: docker, forum, mybb, php
- Language: Dockerfile
- Homepage: https://mybb.com
- Size: 53.7 KB
- Stars: 53
- Watchers: 14
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![Docker Pulls](https://img.shields.io/docker/pulls/mybb/mybb.svg) ![Docker Stars](https://img.shields.io/docker/stars/mybb/mybb.svg)
# Supported tags and respective `Dockerfile` links- [`latest`, `1.8`, `1.8.30` (*Dockerfile*)](https://github.com/mybb/docker/blob/master/Dockerfile)
# Quick reference
- **Where to get help**:
[the MyBB Community Forums](https://community.mybb.com/)- **Where to file issues**:
[https://github.com/mybb/docker/issues](https://github.com/mybb/docker/issues)- **Maintained by**:
[the MyBB Team](https://mybb.com/about/team/)# 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](https://mybb.com).
> [wikipedia.org/wiki/MyBB](https://en.wikipedia.org/wiki/MyBB)
![logo](https://mybb.com/assets/images/logo.png)
# How to use this image
## ... via [`docker stack deploy`](https://docs.docker.com/engine/reference/commandline/stack_deploy/) or [`docker-compose`](https://github.com/docker/compose)
Example `stack.yml` for `mybb`:
```yaml
services:
mybb:
image: mybb/mybb:latest
volumes:
- ${PWD}/mybb:/var/www/html:rwnginx:
image: nginx:mainline-alpine
ports:
- published: 8080
target: 80
volumes:
- ${PWD}/nginx:/etc/nginx/conf.d:ro
- ${PWD}/mybb:/var/www/html:ropostgresql:
environment:
POSTGRES_DB: mybb
POSTGRES_PASSWORD: changeme
POSTGRES_USER: mybb
image: postgres:14-alpine
volumes:
- ${PWD}/postgres/data:/var/lib/postgresql/data:rwversion: '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](https://gist.github.com/kawaii/ed2fbbf11309b8f635a623fa87abce8d). 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.
# Preserving existing files
If you wish to run this image and preserve any updated `lang` or `config` files, you can add the following flag:
```
docker run mybb/mybb --skip-old-files php-fpm
```or, within your compose file, specify the following command argument:
```yaml
services:
mybb:
image: mybb/mybb:latest
command: --skip-old-files php-fpm
volumes:
- ${PWD}/mybb:/var/www/html:rw...
```# How to build this image
You must provide four build-time arguments when building this Docker image; `BUILD_AUTHORS`, `BUILD_DATE`, `BUILD_SHA512SUM` and `BUILD_VERSION`.
```
docker build \
--build-arg BUILD_AUTHORS="Kane 'kawaii' Valentine " \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg BUILD_SHA512SUM=be3bdec9617050abbabbfcfa40e9cd145db3a57ae70e740bc62d807b04c08a5fa42ac690a5502c344f0f7452276aa0f3802501e6d62fa76edc64ac36da25b3cd \
--build-arg BUILD_VERSION=1830 \
--tag mybb/mybb:1.8 \
--tag mybb/mybb:1.8.30 \
--tag mybb/mybb:latest \
$PWD
```
The resulting image can then be pushed to the [`mybb/mybb`](https://cloud.docker.com/u/mybb/repository/docker/mybb/mybb) Docker Hub repository:
```
docker push mybb/mybb:1.8.30
```