Giter Site home page Giter Site logo

frailleon / dont-starve-together-docker-cluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thoxvi/dont-starve-together-docker-cluster

0.0 2.0 0.0 25 KB

根据配置文件快速建立饥荒联机版(DST)Docker集群

License: GNU General Public License v3.0

Python 35.89% Lua 64.11%

dont-starve-together-docker-cluster's Introduction

Dont-Starve-Together-Docker-Cluster

根据配置文件快速建立饥荒联机版(DST)Docker集群ヾ(゚∀゚ゞ)

运行状况

  • 镜像大约580m,包括底层Ubuntu镜像的话大约1G
  • 大概每个实例(带洞穴的)占内存1G左右,CPU似乎不怎么占用
  • 存档在生成的data/名字/save里面,要备份的话,请用chown到自己的用户名,再进行备份
  • Mod的话请查看./template/dedicated_server_mods_setup.lua文件,有具体说明,建议PC机先建立一个世界,再把Mod配置好,最后再复制到对应位置(dedicated_server_mods_setup.lua文件需要自行整理)

运行环境配置

Python3环境配置

  1. Python官网下载对应自己操作系统的安装包
  2. 诶这个就不详细说了安装环境而已嘛(✽ ゚д゚ ✽)

Docker环境配置

  1. 请根据自己的操作系统,在Docker官方网站选择适合的DockerCE(跟着步骤复制粘贴)
  2. 如果是Linux的话,最好把自己的管理员用户添加到Docker用户组里,以免每次打命令都得加入sudo,命令:sudo usermod -aG docker $USER
  3. 安装docker-compose:如果你是Ubuntu,可以直接使用命令:sudo apt install docker-compose,如果不是,请前往Docker官方网站(跟着步骤复制粘贴)
  4. 至此,你应该有了一个正常的Docker环境,如果有问题可以根据END区的联系方式提交(〃・ω・〃)
  5. 请跟着我宣扬一遍:Linux大法好!

基本使用说明

步骤介绍

  1. Clone项目:git clone https://github.com/Thoxvi/Dont-Starve-Together-Docker-Cluster.git
  2. 进入目录:cd ./Dont-Starve-Together-Docker-Cluster
  3. 根据模板修改infos文件,提供一个测试Token(每一行对应一个实例,#号注释,如果不需要密码的话请留空对应位置)
  4. 执行生成脚本:python3 makedata.py
  5. 转到工作目录:cd data
  6. 启动容器:docker-compose up
  7. 若不想查看Log的话,可以在启动容器步骤使用:docker-compose up -d

一套带走

git clone https://github.com/Thoxvi/Dont-Starve-Together-Docker-Cluster.git
cd ./Dont-Starve-Together-Docker-Cluster
python3 makedata.py
cd ./data
docker-compose up

END

  • 如果有任何建议或者Bug可以提issue,或者可以邮箱联系[email protected]
  • (。・ω・。)ノ♡

dont-starve-together-docker-cluster's People

Watchers

 avatar  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.