From 6d41680e92af88a9d4b0715466fd622eb5d8201b Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 27 Oct 2025 11:51:37 +0100 Subject: [PATCH] chore: make docker setup compatible with regular mongodb data 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. --- docker-compose.yml | 3 --- docker-entrypoint.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d9f89348..f8726eb1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,9 +19,6 @@ services: - mongodb mongodb: image: docker.io/library/mongo:8.0.0-noble - environment: - MONGO_INITDB_ROOT_USERNAME: openwfagent - MONGO_INITDB_ROOT_PASSWORD: spaceninjaserver volumes: - ./docker-data/database:/data/db command: mongod --quiet --logpath /dev/null diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index e67508c2..44f3cb95 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e if [ ! -f conf/config.json ]; then - jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json + jq --arg value "mongodb://mongodb:27017/openWF" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json fi exec npm run raw -- --configPath conf/config.json