7

使用docker-compose构建武林外传服务器

 3 years ago
source link: https://www.lujun9972.win/blog/2018/12/09/%E4%BD%BF%E7%94%A8docker-compose%E6%9E%84%E5%BB%BA%E6%AD%A6%E6%9E%97%E5%A4%96%E4%BC%A0%E6%9C%8D%E5%8A%A1%E5%99%A8/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

使用docker-compose构建武林外传服务器

之前写过一篇文件讲了 nil 但是这个过程还是太过麻烦,而且我的日用系统是archlinux,而不是centos。

这两天花了点时间把它移到了docker上,这样子我就能在自用电脑上也打个服务自己玩了。 新的搭建步骤如下:

  1. 这里 把所有内容下载下来
  2. 第一次启动服务的时候需要执行 import_database.sh 倒入数据
  3. 去百度网盘"我的程序->wulin_for_linuix"下载wulin_docker_server.tar.gz

    它里面的pwserver与原始的wulin_pwserver.tar相比修改了 myauthd/build/table.xml,将其中的数据库连接串由 mysql://127.0.0.1:3306/ 替换成 mysql://database:3306/

  4. 将wulin_docker_server.tar.gz解压到wulin目录下
  5. 运行 docker-compose up -d 即可启动服务

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK