SpaceNinjaServer/docker-entrypoint.sh
Sainan bb1d6a98c5
Some checks failed
Build / build (push) Successful in 1m51s
Build Docker image / docker (push) Has been cancelled
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: #2944
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-10-28 00:50:01 -07:00

9 lines
230 B
Bash
Executable File

#!/bin/bash
set -e
if [ ! -f conf/config.json ]; then
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