Giter VIP home page Giter VIP logo

xiuno-docker's Introduction

xiuno-docker

基于 修罗/XiunoBBS 的 Docker 方案

依赖

  • docker
  • docker-compose

环境变量

  • MySQL 用户名和密码在 .env 文件下
  • 请将 .env.example 重命名为 .env

安装

  • 前置请先安装 docker 和 docker-compose
git clone https://github.com/wanghaiwei/xiuno-docker.git
cd xiuno-docker

#解压官方包
#解压目录为 xiuno
#如若修改了解压目录
#请对应修改docker-compose.yml中的目录映射
unzip xiunobbs-4.0.4.zip -d xiuno

#创建环境变量
mv .env.example .env

#修改对应配置项
vim .env
#如果修改了MYSQL_USER请同步修改mysql/init-xiuno.sql
#数据库名在init-xiuno.sql中定义
#安装时需保持一直
#否则可能会导致数据库库读写权限问题

启动命令

docker-compose up -d

设置参考

环境变量名称 默认值 说明
NGINX_PORT 8018 nginx 暴露端口
DOCKER_NET 10.10.0.1/16 Docker 内部网段
MYSQL_SERVER_ADDRESS 10.10.100.1 MySQL 服务器地址
MYSQL_ROOT_PASSWORD 123456 MySQL root 密码
MYSQL_USER xiuno MySQL 普通用户名
MYSQL_PASSWORD 123456 MySQL 普通用户密码

MySQL 初始化

  • 文件为 mysql/init-xiuno.sql
  • 如果修改了 .env 下的数据库用户名,需同步修改数据库名和数据库用户名
    • 注:数据库名在安装时需要

修罗安装程序

  • 启动后访问 127.0.0.1:NGINX_PORT/install/index.php
  • 安装完成后请删除 xiuno/install 目录

xiuno-docker's People

Contributors

rayfalling avatar zhanglianxin avatar ducksoft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.