All Projects → crazy-max → Docker Flarum

crazy-max / Docker Flarum

Licence: mit
Flarum Docker image based on Alpine Linux

Projects that are alternatives of or similar to Docker Flarum

Docker Wordpress
WordPress container with Nginx 1.16 & PHP-FPM 7.3 based on Alpine Linux
Stars: ✭ 148 (+244.19%)
Mutual labels:  alpine-linux, docker-compose, nginx
Nginx Ui
Nginx UI allows you to access and modify the nginx configurations files without cli.
Stars: ✭ 4,067 (+9358.14%)
Mutual labels:  docker-compose, nginx
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-13.95%)
Mutual labels:  docker-compose, nginx
Wordpress Nginx Docker Compose
Run WordPress with nginx using Docker Compose.
Stars: ✭ 460 (+969.77%)
Mutual labels:  docker-compose, nginx
Devilbox
A modern Docker LAMP stack and MEAN stack for local development
Stars: ✭ 3,598 (+8267.44%)
Mutual labels:  docker-compose, nginx
Stacker
Stacker - The environment for local web development, ready for use.
Stars: ✭ 356 (+727.91%)
Mutual labels:  docker-compose, nginx
Docker Laravel
🐳 Build a simple laravel development environment with docker-compose.
Stars: ✭ 415 (+865.12%)
Mutual labels:  docker-compose, nginx
Docker Mailserver
Docker Mailserver based on the famous ISPMail guide
Stars: ✭ 129 (+200%)
Mutual labels:  alpine-linux, docker-compose
Wordpress Nginx Docker
Wordpress (php7.3-fpm) using Nginx and MariaDB - deployed with docker-compose - Let's Encrypt enabled
Stars: ✭ 498 (+1058.14%)
Mutual labels:  docker-compose, nginx
Docker Alpine
Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
Stars: ✭ 574 (+1234.88%)
Mutual labels:  alpine-linux, nginx
Docker Php Nginx
Docker image with Nginx 1.18 & PHP-FPM 7.4 on Alpine Linux
Stars: ✭ 581 (+1251.16%)
Mutual labels:  alpine-linux, nginx
Docker
LibreNMS Docker image based on Alpine Linux and Nginx
Stars: ✭ 283 (+558.14%)
Mutual labels:  alpine-linux, nginx
Docker Fail2ban
Fail2ban Docker image based on Alpine Linux
Stars: ✭ 263 (+511.63%)
Mutual labels:  alpine-linux, docker-compose
Dockerfiles
Discontinued. Fork at your will.
Stars: ✭ 384 (+793.02%)
Mutual labels:  alpine-linux, nginx
Ngx mruby Package Builder
Package Builder of ngx_mruby with Docker
Stars: ✭ 25 (-41.86%)
Mutual labels:  docker-compose, nginx
Django React Boilerplate
DIY Django + React Boilerplate for starting your SaaS
Stars: ✭ 385 (+795.35%)
Mutual labels:  docker-compose, nginx
Docker Oidc Proxy
Docker Image built on Alpine Linux for secure OpenID Connect (OIDC) proxy authentication
Stars: ✭ 91 (+111.63%)
Mutual labels:  alpine-linux, nginx
Docker Matomo
Matomo (formerly Piwik) Docker image based on Alpine Linux
Stars: ✭ 117 (+172.09%)
Mutual labels:  alpine-linux, nginx
Micro Auth
A microservice that makes adding authentication with Google and Github to your application easy.
Stars: ✭ 466 (+983.72%)
Mutual labels:  docker-compose, nginx
Filterlists
🛡 The independent, comprehensive directory of filter and host lists for advertisements, trackers, malware, and annoyances.
Stars: ✭ 653 (+1418.6%)
Mutual labels:  docker-compose, nginx

Latest Version Build Status Docker Stars Docker Pulls
Become a sponsor Donate Paypal

About

Flarum Docker image based on Alpine Linux.
If you are interested, check out my other Docker images!

💡 Want to be notified of new releases? Check out 🔔 Diun (Docker Image Update Notifier) project!


Features

Build locally

git clone https://github.com/crazy-max/docker-flarum.git
cd docker-flarum

# Build image and output to docker (default)
docker buildx bake

# Build multi-platform image
docker buildx bake image-all

Image

Registry Image
Docker Hub crazymax/flarum
GitHub Container Registry ghcr.io/crazy-max/flarum

Following platforms for this image are available:

$ docker run --rm mplatform/mquery crazymax/flarum:latest
Image: crazymax/flarum:latest
 * Manifest List: Yes
 * Supported platforms:
   - linux/amd64
   - linux/arm/v6
   - linux/arm/v7
   - linux/arm64
   - linux/386
   - linux/ppc64le
   - linux/s390x

Environment variables

General

  • TZ: The timezone assigned to the container (default UTC)
  • PUID: Flarum user id (default 1000)
  • PGID: Flarum group id (default 1000)
  • MEMORY_LIMIT: PHP memory limit (default 256M)
  • UPLOAD_MAX_SIZE: Upload max size (default 16M)
  • CLEAR_ENV: Clear environment in FPM workers (default yes)
  • OPCACHE_MEM_SIZE: PHP OpCache memory consumption (default 128)
  • LISTEN_IPV6: Enable IPv6 for Nginx (default true)
  • REAL_IP_FROM: Trusted addresses that are known to send correct replacement addresses (default 0.0.0.0/32)
  • REAL_IP_HEADER: Request header field whose value will be used to replace the client address (default X-Forwarded-For)
  • LOG_IP_VAR: Use another variable to retrieve the remote IP address for access log_format on Nginx. (default remote_addr)

Flarum

  • FLARUM_DEBUG: Enables or disables debug mode, used to troubleshoot issues (default false)
  • FLARUM_BASE_URL: The URL to your Flarum installation required
  • FLARUM_FORUM_TITLE: Flarum forum title, only used during first installation (default Flarum Dockerized)
  • FLARUM_API_PATH: Flarum api path (default api)
  • FLARUM_ADMIN_PATH: Flarum admin path (default admin)

Database

  • DB_HOST: MySQL database hostname / IP address required
  • DB_PORT: MySQL database port (default 3306)
  • DB_NAME: MySQL database name (default flarum)
  • DB_USER: MySQL user (default flarum)
  • DB_PASSWORD: MySQL password
  • DB_PREFIX: MySQL database prefix (default flarum_)
  • DB_TIMEOUT: Time in seconds after which we stop trying to reach the MySQL server (useful for clusters, default 60)

💡 DB_USER_FILE and DB_PASSWORD_FILE can be used to fill in the value from a file, especially for Docker's secrets feature.

Volumes

  • /data: Contains assets, extensions and storage

⚠️ Note that the volume should be owned by the user/group with the specified PUID and PGID. If you don't give the volume correct permissions, the container may not start.

Ports

  • 8000: HTTP port

Usage

Docker Compose

Docker compose is the recommended way to run this image. You can use the following docker compose template, then run the container:

docker-compose up -d
docker-compose logs -f

Command line

You can also use the following minimal command:

docker run -d -p 8000:8000 --name flarum \
  -v $(pwd)/data:/data \
  -e "DB_HOST=db" \
  -e "FLARUM_BASE_URL=http://127.0.0.1:8000" \
  crazymax/flarum:latest

-e "DB_HOST=db"
⚠️ db must be a running MySQL instance

Upgrade

You can upgrade Flarum automatically through the UI, it works well. But I recommend to recreate the container whenever I push an update:

docker-compose pull
docker-compose up -d

Notes

First launch

On first launch, an initial administrator user will be created:

Login Password
flarum flarum

Manage extensions

You can install Flarum extensions from the command line using a specially crafted script with this image:

docker-compose exec flarum extension require <package>

To remove an extension:

docker-compose exec flarum extension remove <package>

To list all extensions:

docker-compose exec flarum extension list

Example with fof/upload extension:

$ docker-compose exec flarum extension require fof/upload
Using version ^0.10.0 for fof/upload
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
  - Installing softcreatr/php-mime-detector (3.0.0): Loading from cache
  - Installing ramsey/uuid (3.9.3): Loading from cache
  - Installing fof/upload (0.10.0): Loading from cache
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
ramsey/uuid suggests installing paragonie/random-lib (Provides RandomLib for use with the RandomLibAdapter)
fof/upload suggests installing league/flysystem-aws-s3-v3 (Uploads to AWS S3 using API version 3.)
fof/upload suggests installing overtrue/flysystem-qiniu (Uploads to QiNiu using API.)
Writing lock file
Generating autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
54 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
fof/upload extension added
Clearing the cache...

⚠️ You cannot use Bazaar marketplace extension to install extensions for now.

Sending mails with SMTP

You can use our SMTP relay msmtpd service published on port 2500 and declared in our docker-compose.yml:

How can I help?

All kinds of contributions are welcome 🙌! The most basic way to show your support is to star 🌟 the project, or to raise issues 💬 You can also support this project by becoming a sponsor on GitHub 👏 or by making a Paypal donation to ensure this journey continues indefinitely! 🚀

Thanks again for your support, it is much appreciated! 🙏

License

MIT. See LICENSE for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].