Build flarum running environment with docker.
Inspired by wanghaiwei/xiuno-docker.
First of all, be sure docker and docker-compose are installed.
Next, copy .env.example
file to .env
, and change it to your own circumstance.
Attention:
When set the
MYSQL_USER
variable, please make sure user inmysql/init-db.sql
is consistent with this.
Before this, make sure you've already fetch the flarum repo content to local.
docker-compose up -d
Visit YOUR-IP:NGINX_PORT
in the browser, you'll get the installation page.
Please feel free to use it at your convenience.