Skip to content

PipecraftNet/flarum-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

flarum-docker-compose

A docker-compose.yml for flarum

使用方法

  1. 复制一份 .env.sample 文件命名为 .env

  2. 修改 .env 里的内容。

  3. docker-compose up -d 启动一个新的 flarum 网站。

Install an extension

docker-compose exec flarum extension require some/extension

Remove an extension

docker-compose exec flarum extension remove some/extension

List all extensions

docker-compose exec flarum extension list

Updating your database and removing old assets & extensions

docker-compose exec flarum php /flarum/app/flarum migrate
docker-compose exec flarum php /flarum/app/flarum cache:clear

More commands

docker-compose exec flarum php /flarum/app/flarum --help
docker-compose exec flarum php /flarum/app/flarum info

Upgrade

docker-compose exec flarum composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies -d /flarum/app/ \
&& docker-compose exec flarum php /flarum/app/flarum migrate \
&& docker-compose exec flarum php /flarum/app/flarum cache:clear

Crontab

* * * * * cd /path-to-your-project && /usr/local/bin/docker-compose exec -T flarum php /flarum/app/flarum schedule:run >> /dev/null 2>&1

Related

  • flarum/flarum - Simple forum software for building great communities.
  • flarum/core - Simple forum software for building great communities.
  • docker-flarum - 💬 🐳 Docker image of Flarum

License

Copyright (c) 2021 Pipecraft. Licensed under the MIT license.

>_

Pipecraft BestXTools PZWD

About

A docker-compose.yml for flarum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages