Docker安装Flarum(开源论坛)

2024-01-03 19:40:18
  1. Flarum介绍
  2. 安装命令
    #----------------------------------------------------------
    mkdir -p /opt/flarum && cd /opt/flarum
    #----------------------------------------------------------
    docker run -p 8888:8888 --name flarum \
    --restart=always \
    -v /opt/flarum/assets:/flarum/app/public/assets \
    -v /opt/flarum/extensions:/flarum/app/extensions \
    -v /opt/flarum/logs:/flarum/app/storage/logs \
    -v /opt/flarum/nginx:/etc/nginx/flarum \
    -e FORUM_URL=http://192.168.1.111:8888 \
    -e DB_HOST=192.168.1.111 \
    -e DB_PORT=3306 \
    -e DB_USER=root \
    -e DB_PASS=123456 \
    -e DB_NAME=flarum \
    -e DB_PREF=flarum_ \
    -e FLARUM_ADMIN_USER=admin \
    -e FLARUM_ADMIN_PASS=123456 \
    -e FLARUM_ADMIN_MAIL=123456@qq.com \
    -d mondedie/flarum
    #----------------------------------------------------------
    firewall-cmd --zone=public --add-port=8888/tcp --permanent && firewall-cmd --reload
    #----------------------------------------------------------
    # 注意:数据库flarum需要提前创建好
    #----------------------------------------------------------
  3. 访问路径
    http://192.168.1.111:8888
    账号:admin 密码:123456



  4. 创建角色
    图标:https://fontawesome.com/v5/search?m=free



  5. 授权角色


  6. 创建用户



  7. 分配角色



  8. 创建话题

  9. 参与话题



  10. 资源链接
    wwvv.fun

文章来源:https://blog.csdn.net/tongxin_tongmeng/article/details/135365021
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。