Migrate from Multi-Container Setup
Let's say your current Appsmith instance is located in the folder ~/appsmith-old
, and you'd like the new setup to be at ~/appsmith-new
. (These are just example folder names, please use what you prefer.)
Then you can see a rough folder structure like this for ~/appsmith-old
:
~/appsmith-old
├── data
│ ├── certbot
│ │ ├── conf
│ │ └── www
│ ├── mongo
│ │ ├── db
│ │ └── init.js
│ └── nginx
│ └── app.conf.template
├── docker-compose.yml
├── docker.env
└── encryption.env
And like this for ~/appsmith-new
(after the steps in this document are done):
~/appsmith-new
├── docker-compose.yml
└── stacks
├── configuration
│ ├── docker.env
│ └── mongo-init.js
├── data
│ ├── backup
│ ├── certificate
│ ├── mongodb
│ └── restore
└── letsencrypt
├── accounts
├── archive
├── conf
├── csr
├── keys
├── live
├── options-ssl-nginx.conf
├── renewal
├── renewal-hooks
├── ssl-dhparams.pem
└── www
Shutdown old Appsmith instance
🚨 Please ensure you are aware of the following facts before proceeding:
- This whole migration should take under 25-30 mins, usually less than that.
- All users who are currently logged in are logged out. They can just log back in, once the new instance is up and running just fine.
- Depending on your configuration, any
docker-compose
anddocker
commands below might need to be run with asudo
at the start. - Please check the output of commands to see if there are any errors, after running a command, and before proceeding to the next steps.
Let's first define a couple of variables that'll be useful during migration. Please use the appropriate paths in place of ~/appsmith-old
and ~/appsmith-new
.
old_path=~/appsmith-old
new_path=~/appsmith-new
Before you can start the migration, please stop the old server with the following command:
cd "$old_path"
docker-compose stop appsmith-internal-server