XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: make docker setup compatible with regular mongodb data (#2944)

We still need to address the database as 'mongodb' instead of '127.0.0.1' inside of the container, but otherwise the MongoDB data folder can simply be copied over. Existing setups shouldn't be affected by this change. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2944 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

bb1d6a98
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +1 -4
Modified docker-compose.yml +0 -3
@@ -18,9 +18,6 @@ services:
18 18 - mongodb
19 19 mongodb:
20 20 image: docker.io/library/mongo:8.0.0-noble
21 environment:
22 MONGO_INITDB_ROOT_USERNAME: openwfagent
23 MONGO_INITDB_ROOT_PASSWORD: spaceninjaserver
24 21 volumes:
25 22 - ./docker-data/database:/data/db
26 23 command: mongod --quiet --logpath /dev/null
Modified docker-entrypoint.sh +1 -1
@@ -2,7 +2,7 @@
2 2 set -e
3 3
4 4 if [ ! -f conf/config.json ]; then
5 jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json
5 jq --arg value "mongodb://mongodb:27017/openWF" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json
6 6 fi
7 7
8 8 exec npm run raw -- --configPath conf/config.json