A docker-compose.yml for flarum
-
复制一份
.env.sample
文件命名为.env
。 -
修改
.env
里的内容。 -
docker-compose up -d
启动一个新的 flarum 网站。
docker-compose exec flarum extension require some/extension
docker-compose exec flarum extension remove some/extension
docker-compose exec flarum extension list
docker-compose exec flarum php /flarum/app/flarum migrate
docker-compose exec flarum php /flarum/app/flarum cache:clear
docker-compose exec flarum php /flarum/app/flarum --help
docker-compose exec flarum php /flarum/app/flarum info
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
* * * * * cd /path-to-your-project && /usr/local/bin/docker-compose exec -T flarum php /flarum/app/flarum schedule:run >> /dev/null 2>&1
- flarum/flarum - Simple forum software for building great communities.
- flarum/core - Simple forum software for building great communities.
- docker-flarum - 💬 🐳 Docker image of Flarum
Copyright (c) 2021 Pipecraft. Licensed under the MIT license.