~/appsmith-old
, and you'd like the new setup be at ~/appsmith-new
. (This are just example folder names, please use what you prefer.)~/appsmith-old
:~/appsmith-new
(after the steps in this document are done):docker-compose
and docker
commands below might need to be run with a sudo
at the start.~/appsmith-old
and ~/appsmith-new
.MongoDB
database, we use the mongodump
command, which will create a gzip
archive with all the data. This file will then be copied to the new setup and imported.docker.env
file for all environment variable configuration."$new_path"/stacks/configuration/docker.env
:APPSMITH_MONGODB_URI
, please change the @mongo
part to @localhost
, and remove the query params (the ?
and everything after it). For example, if the current value is mongodb://root:[email protected]/appsmith?retryWrites=true&authSource=admin
, change it to be just mongodb://root:[email protected]/appsmith
.APPSMITH_REDIS_URL
, please change redis://redis:6379
to redis://localhost:6379
. That is, change the host from redis
to localhost.
docker.env
file, let's add the following new environment variables:<Your MongoDB User>
and <Your MongoDB Password>
, please use the same username and password that were given to APPSMITH_MONGODB_URI
above. In the above example values, these would be root
for user and rootpass
for password.APPSMITH_CUSTOM_DOMAIN
already configured in your docker.env
, please add a line like belowdocker-compose.yml
in "$new_path"
folder, like with the curl
command above. Don't copy it from "$old_path"
.Importing this DB will erase this data. Are you sure you want to proceed
, where you can respond with y
. It is safe in this situation since the new database in the new setup only contains initial data and should be safe to be overwritten.