{"id":18859833,"url":"https://github.com/mybb/docker","last_synced_at":"2025-04-14T12:20:31.524Z","repository":{"id":30924770,"uuid":"126336772","full_name":"mybb/docker","owner":"mybb","description":"The official Dockerfile for the MyBB forum software.","archived":false,"fork":false,"pushed_at":"2023-04-27T19:32:32.000Z","size":55,"stargazers_count":55,"open_issues_count":4,"forks_count":22,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-11T13:44:42.842Z","etag":null,"topics":["docker","forum","mybb","php"],"latest_commit_sha":null,"homepage":"https://mybb.com","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mybb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-22T13:08:20.000Z","updated_at":"2025-03-12T07:01:44.000Z","dependencies_parsed_at":"2023-01-14T17:58:24.641Z","dependency_job_id":"8eb873df-ee1c-4bc7-9e5f-b81d957479bc","html_url":"https://github.com/mybb/docker","commit_stats":{"total_commits":60,"total_committers":2,"mean_commits":30.0,"dds":"0.033333333333333326","last_synced_commit":"871047b4ef058dd11d5d4d596c938433ba9d2c5d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybb%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybb%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybb%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybb%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mybb","download_url":"https://codeload.github.com/mybb/docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248699066,"owners_count":21147582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","forum","mybb","php"],"created_at":"2024-11-08T04:19:25.683Z","updated_at":"2025-04-14T12:20:31.487Z","avatar_url":"https://github.com/mybb.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Docker Pulls](https://img.shields.io/docker/pulls/mybb/mybb.svg) ![Docker Stars](https://img.shields.io/docker/stars/mybb/mybb.svg)\n# Supported tags and respective `Dockerfile` links\n\n-\t[`latest`, `1.8`, `1.8.30` (*Dockerfile*)](https://github.com/mybb/docker/blob/master/Dockerfile)\n\n# Quick reference\n\n-\t**Where to get help**:\n\t[the MyBB Community Forums](https://community.mybb.com/)\n\n-\t**Where to file issues**:\n\t[https://github.com/mybb/docker/issues](https://github.com/mybb/docker/issues)\n\n-\t**Maintained by**:\n\t[the MyBB Team](https://mybb.com/about/team/)\n\n# What is MyBB?\n\nMyBB 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).\n\n\u003e [wikipedia.org/wiki/MyBB](https://en.wikipedia.org/wiki/MyBB)\n\n![logo](https://mybb.com/assets/images/logo.png)\n\n# How to use this image\n\n## ... via [`docker stack deploy`](https://docs.docker.com/engine/reference/commandline/stack_deploy/) or [`docker-compose`](https://github.com/docker/compose)\n\nExample `stack.yml` for `mybb`:\n\n```yaml\nservices:\n  mybb:\n    image: mybb/mybb:latest\n    volumes:\n    - ${PWD}/mybb:/var/www/html:rw\n\n  nginx:\n    image: nginx:mainline-alpine\n    ports:\n    - published: 8080\n      target: 80\n    volumes:\n    - ${PWD}/nginx:/etc/nginx/conf.d:ro\n    - ${PWD}/mybb:/var/www/html:ro\n\n  postgresql:\n    environment:\n      POSTGRES_DB: mybb\n      POSTGRES_PASSWORD: changeme\n      POSTGRES_USER: mybb\n    image: postgres:14-alpine\n    volumes:\n    - ${PWD}/postgres/data:/var/lib/postgresql/data:rw\n\nversion: '3.8'\n```\n\nNote, 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.\n\nYou 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.\n\n# Preserving existing files\n\nIf you wish to run this image and preserve any updated `lang` or `config` files, you can add the following flag:\n\n```\ndocker run mybb/mybb --skip-old-files php-fpm\n```\n\nor, within your compose file, specify the following command argument:\n\n```yaml\nservices:\n  mybb:\n    image: mybb/mybb:latest\n    command: --skip-old-files php-fpm\n    volumes:\n    - ${PWD}/mybb:/var/www/html:rw\n\n    ...\n```\n\n# How to build this image\n\nYou must provide four build-time arguments when building this Docker image; `BUILD_AUTHORS`, `BUILD_DATE`, `BUILD_SHA512SUM` and `BUILD_VERSION`.\n```\ndocker build \\\n  --build-arg BUILD_AUTHORS=\"Kane 'kawaii' Valentine \u003ckawaii@mybb.com\u003e\" \\\n  --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \\\n  --build-arg BUILD_SHA512SUM=be3bdec9617050abbabbfcfa40e9cd145db3a57ae70e740bc62d807b04c08a5fa42ac690a5502c344f0f7452276aa0f3802501e6d62fa76edc64ac36da25b3cd \\\n  --build-arg BUILD_VERSION=1830 \\\n  --tag mybb/mybb:1.8 \\\n  --tag mybb/mybb:1.8.30 \\\n  --tag mybb/mybb:latest \\\n  $PWD\n```\nThe resulting image can then be pushed to the [`mybb/mybb`](https://cloud.docker.com/u/mybb/repository/docker/mybb/mybb) Docker Hub repository:\n```\ndocker push mybb/mybb:1.8.30\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybb%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmybb%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybb%2Fdocker/lists"}