{"id":18289874,"url":"https://github.com/tiredofit/docker-flarum","last_synced_at":"2025-04-05T09:31:49.676Z","repository":{"id":38974835,"uuid":"209680823","full_name":"tiredofit/docker-flarum","owner":"tiredofit","description":"Dockerized web based forum software","archived":false,"fork":false,"pushed_at":"2024-12-20T19:32:42.000Z","size":57,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T02:21:58.923Z","etag":null,"topics":["alpine","docker","flarum","forums"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiredofit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["tiredofit"]}},"created_at":"2019-09-20T01:38:15.000Z","updated_at":"2025-03-12T15:20:42.000Z","dependencies_parsed_at":"2023-02-16T21:45:35.322Z","dependency_job_id":null,"html_url":"https://github.com/tiredofit/docker-flarum","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-flarum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-flarum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-flarum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiredofit%2Fdocker-flarum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiredofit","download_url":"https://codeload.github.com/tiredofit/docker-flarum/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318315,"owners_count":20919457,"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":["alpine","docker","flarum","forums"],"created_at":"2024-11-05T14:08:39.144Z","updated_at":"2025-04-05T09:31:49.656Z","avatar_url":"https://github.com/tiredofit.png","language":"Shell","funding_links":["https://github.com/sponsors/tiredofit","https://www.paypal.me/tiredofit"],"categories":[],"sub_categories":[],"readme":"# github.com/tiredofit/docker-flarum\n\n[![GitHub release](https://img.shields.io/github/v/tag/tiredofit/docker-flarum?style=flat-square)](https://github.com/tiredofit/docker-flarum/releases/latest)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/tiredofit/docker-flarummain.yml?branch=main\u0026style=flat-square)](https://github.com/tiredofit/docker-flarum.git/actions)\n[![Docker Stars](https://img.shields.io/docker/stars/tiredofit/flarum.svg?style=flat-square\u0026logo=docker)](https://hub.docker.com/r/tiredofit/flarum/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/tiredofit/flarum.svg?style=flat-square\u0026logo=docker)](https://hub.docker.com/r/tiredofit/flarum/)\n[![Become a sponsor](https://img.shields.io/badge/sponsor-tiredofit-181717.svg?logo=github\u0026style=flat-square)](https://github.com/sponsors/tiredofit)\n[![Paypal Donate](https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal\u0026style=flat-square)](https://www.paypal.me/tiredofit)\n## About\n\nThis will build a Docker Image for [Flarum](https://www.flarum.org/). A web based discussion forum. It will:\n\n* Supports Data Persistence\n* Automatically detect new version of Image/Flarum and upgrade it\n\n## Maintainer\n\n- [Dave Conroy](https://github.com/tiredofit/)\n\n## Table of Contents\n\n- [About](#about)\n- [Maintainer](#maintainer)\n- [Table of Contents](#table-of-contents)\n- [Prerequisites and Assumptions](#prerequisites-and-assumptions)\n- [Installation](#installation)\n  - [Build from Source](#build-from-source)\n  - [Prebuilt Images](#prebuilt-images)\n    - [Multi Architecture](#multi-architecture)\n- [Configuration](#configuration)\n  - [Quick Start](#quick-start)\n  - [Persistent Storage](#persistent-storage)\n  - [Environment Variables](#environment-variables)\n    - [Base Images used](#base-images-used)\n- [Maintenance](#maintenance)\n  - [Shell Access](#shell-access)\n  - [Installing Plugins and Extensions](#installing-plugins-and-extensions)\n- [Support](#support)\n  - [Usage](#usage)\n  - [Bugfixes](#bugfixes)\n  - [Feature Requests](#feature-requests)\n  - [Updates](#updates)\n- [License](#license)\n- [Maintenance](#maintenance-1)\n  - [Shell Access](#shell-access-1)\n- [References](#references)\n\n## Prerequisites and Assumptions\n*  Assumes you are using some sort of SSL terminating reverse proxy such as:\n   *  [Traefik](https://github.com/tiredofit/docker-traefik)\n   *  [Nginx](https://github.com/jc21/nginx-proxy-manager)\n   *  [Caddy](https://github.com/caddyserver/caddy)\n\n## Installation\n\n### Build from Source\nClone this repository and build the image with `docker build \u003carguments\u003e (imagename) .`\n\n### Prebuilt Images\nBuilds of the image are available on [Docker Hub](https://hub.docker.com/r/tiredofit/flarum) and is the recommended method of installation.\n\n```bash\ndocker pull tiredofit/flarum:(imagetag)\n```\n\nThe following image tags are available along with their tagged release based on what's written in the [Changelog](CHANGELOG.md):\n\n| PHP Version | OS     | Tag       |\n| ----------- | ------ | --------- |\n| 8.1.x       | Alpine | `:latest` |\n\n#### Multi Architecture\nImages are built primarily for `amd64` architecture, and may also include builds for `arm/v7`, `arm64` and others. These variants are all unsupported. Consider [sponsoring](https://github.com/sponsors/tiredofit) my work so that I can work with various hardware. To see if this image supports multiple architecures, type `docker manifest (image):(tag)`\n\n\n## Configuration\n### Quick Start\n\n* The quickest way to get started is using [docker-compose](https://docs.docker.com/compose/). See the examples folder for a working [docker-compose.yml](examples/docker-compose.yml) that can be modified for development or production use.\n\n* Set various [environment variables](#environment-variables) to understand the capabilities of this image.\n* Map [persistent storage](#data-volumes) for access to configuration and data files for backup.\n\n### Persistent Storage\n\nThe following directories are used for configuration and can be mapped for persistent storage.\n\n| Directory   | Description                |\n| ----------- | -------------------------- |\n| `/data`     | Persistent Storage         |\n| `/www/logs` | Nginx and php-fpm logfiles |\n\n### Environment Variables\n\n#### Base Images used\n\nThis image relies on an [Alpine Linux](https://hub.docker.com/r/tiredofit/alpine) base image that relies on an [init system](https://github.com/just-containers/s6-overlay) for added capabilities. Outgoing SMTP capabilities are handlded via `msmtp`. Individual container performance monitoring is performed by [zabbix-agent](https://zabbix.org). Additional tools include: `bash`,`curl`,`less`,`logrotate`,`nano`.\n\nBe sure to view the following repositories to understand all the customizable options:\n\n| Image                                                         | Description                            |\n| ------------------------------------------------------------- | -------------------------------------- |\n| [OS Base](https://github.com/tiredofit/docker-alpine/)        | Customized Image based on Alpine Linux |\n| [Nginx](https://github.com/tiredofit/docker-nginx/)           | Nginx webserver                        |\n| [PHP-FPM](https://github.com/tiredofit/docker-nginx-php-fpm/) | PHP Interpreter                        |\n\n| Parameter                | Description                                                                            | Default         |\n| ------------------------ | -------------------------------------------------------------------------------------- | --------------- |\n| `ADMIN_EMAIL`            | Email address for the Administrator - Needed to run                                    |                 |\n| `ADMIN_USER`             | Username for the Administrator                                                         | `admin`         |\n| `ADMIN_PASS`             | Password for the Administrator - Needed to run                                         |                 |\n| `ADMIN_PATH`             | What folder to access admin panel                                                      | `admin`         |\n| `API_PATH`               | What folder to access API                                                              | `api`           |\n| `DB_HOST`                | MariaDB external container hostname (e.g. flarum-db)                                   |                 |\n| `DB_NAME`                | MariaDB database name i.e. (e.g. flarum)                                               |                 |\n| `DB_USER`                | MariaDB username for database (e.g. flarum)                                            |                 |\n| `DB_PASS`                | MariaDB password for database (e.g. userpassword)                                      |                 |\n| `DB_PREFIX`              | MariaDB Prefix for `DB_NAME`                                                           | `flarum_`       |\n| `EXTENSIONS_AUTO_UPDATE` | Automatically update extensions on container startup `TRUE` / `FALSE`                  | `TRUE`          |\n| `SITE_TITLE`             | The title of the Website                                                               | `Docker Flarum` |\n| `SITE_URL`               | The Full site URL of the installation e.g. `flarum.example.com` - Required for Install |                 |\n\n\n* * *\n## Maintenance\n\n### Shell Access\n\nFor debugging and maintenance purposes you may want access the containers shell.\n\n```bash\ndocker exec -it (whatever your container name is) bash\n```\n\n### Installing Plugins and Extensions\n\n* Make a file in your `/data/extensions` folder called `install` and place on each line the Github Repositories name. Upon startup, the container will fetch the source code via composer, save a cache of the install, and then install. Upon further restarts of the container, the image will check to see if there are any updates to the extension, and will proceed with upgrading to the latest.\n\nExample:\n\n````\n[/data/flarum] 1 $ cd data\n[/data/flarum/data] $ ls\nassets  composer.json  extensions  storage\n[/data/flarum/data] $ cd extensions/\n[/data/flarum/data/extensions] $ ls\nlist\n[/data/flarum/data/extensions] $ cat list\nflagrow/upload\nmichaelbelgium/flarum-discussion-views\n[/data/flarum/data/extensions] $\n````\n\nAlternatively, if you wish to install an extension while the container is running without restarting, you can use the tool located in `/usr/sbin/extension-tool`\n\nSyntax is as follows:\n````\nUsage:\n  extension-tool {install|remove|update} {packagename}\n  extension-tool {install|remove|update} {packagename} --debug\n  extension-tool -h|--help\n````\n\nFor example, if you wished to install `fof/drafts` then here is a command to do it from your host:\n\n`docker exec -it (yourcontainername) extension-tool install fof/drafts`\n\nThe rest of the options are self explanatory.\n\n\n## Support\n\nThese images were built to serve a specific need in a production environment and gradually have had more functionality added based on requests from the community.\n### Usage\n- The [Discussions board](../../discussions) is a great place for working with the community on tips and tricks of using this image.\n- [Sponsor me](https://tiredofit.ca/sponsor) personalized support.\n### Bugfixes\n- Please, submit a [Bug Report](issues/new) if something isn't working as expected. I'll do my best to issue a fix in short order.\n\n### Feature Requests\n- Feel free to submit a feature request, however there is no guarantee that it will be added, or at what timeline.\n- [Sponsor me](https://tiredofit.ca/sponsor) regarding development of features.\n\n### Updates\n- Best effort to track upstream changes, More priority if I am actively using the image in a production environment.\n- [Sponsor me](https://tiredofit.ca/sponsor) for up to date releases.\n\n## License\nMIT. See [LICENSE](LICENSE) for more details.\n## Maintenance\n### Shell Access\n\nFor debugging and maintenance purposes you may want access the containers shell.\n\n```bash\ndocker exec -it (whatever your container name is e.g. flarum) bash\n```\n\n## References\n\n* https://www.flarum.org\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiredofit%2Fdocker-flarum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiredofit%2Fdocker-flarum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiredofit%2Fdocker-flarum/lists"}