Appsmith is a low code, open-source framework to build internal applications.
You can check their official documentation website here
It is open source and very easy to deploy on our own machine.
Docker is an open platform for developing, shipping, and running applications. With Docker, you can manage your infrastructure in the same ways you manage your applications.
You can download and install Docker on multiple platforms. Refer to this page and choose the best installation path for you.
Appsmith can be deployed locally or on our private instance using Docker.
The Prerequisites of proceeding with the setup are:
- having Docker version 20.10.7 or later
- having Docker-Compose of version 1.29.2 or later
Once you have these ready, you are good to go!
It is recommended to create an installation folder called appsmith, so that our Appsmith installation, and data to live in are stored at a single place.
cd into the installation folder
Now, we can follow two paths from here-
a) with docker-compose
b) without docker-compose
Here we are going to go through both methods of deploying Appsmith on our private instance.
The Appsmith Docker image is built with all the components required for it to run, within a single Docker container. All these multiple processes are managed by a Supervisor instance, which is a lightweight process manager.
docker-compose.yml file into the appsmith installation folder from here
You can also choose to run the following curl if you are on a remote machine:
curl -L https://bit.ly/2WMPFPy -o $PWD/docker-compose.yml
The above configuration runs an Appsmith instance, along with a Watchtover instance to keep Appsmith automatically up-to-date.
Bring the docker container up. It can be done by running the following command:
docker-compose up -d
This command will pull and download all the required Docker images, and start the services.
Once all the images are downloaded and the container is running, you can check the logs with the following command:
docker logs -f appsmith
Once the container is ready, and running properly, you will be able to see a message
Appsmith is Running!
Your Appsmith server should be up and running now. You can access it on localhost.
This was all about Method-1, now let us explore Method-2 of Deploying Appsmith using Docker.
This is also a simple method of deploying Appsmith by the use of Docker in two simple steps.
Run the following command on your machine, in order to quickly get Appsmith up and running:
docker run -d --name appsmith -p 80:80 -p 9001:9001 -v "$PWD/stacks:/appsmith-stacks" appsmith/appsmith-ce
This will download the image and start Appsmith. Once the download is complete, the server should be up in under a minute.
View the logs with the following command:
docker logs -f appsmith
A successful message
Appsmith is Running! will be displayed once the container is ready and running correctly.
It is so simple, isn't it?
Go ahead and start creating your applications using Appsmith, and now you know how to set it up on your local machine without any complexity!
Feel free to reach out in case of any doubts :)
Also, don't forget to check out the official documentaion for the same.
Happy Learning All!