Monitor Processes
The container runs multiple processes, including the Appsmith server, Nginx, MongoDB, etc., inside a single Docker container. These processes are started, managed, and monitored by Supervisor for your self-hosted instance.
Supervisor provides:
Web interface
To set up the credentials for accessing the web interface, update the environment variables:
- Go to the
docker.env
file available in thestacks/configuration
folder. - Set the values for the below variables:
APPSMITH_SUPERVISOR_USER=<SUPERVISOR-USER>
APPSMITH_SUPERVISOR_PASSWORD=<SUPERVISOR-PASSWORD>
- Access the web interface of Supervisord to manage the Appsmith server, Nginx, MongoDB, and other components at http://[my_domain]/supervisor. For example, if Appsmith is accessible via
http://localhost
, you can access the Supervisor web interface athttp://localhost/supervisor
.
Command line interface
The command line interface also helps in managing the Appsmith server, Nginx, MongoDB, and more.
For example:
- Check the status of all running processes with:
docker-compose exec appsmith supervisorctl status
- View the last few lines of the
stderr
output of a specific process with:
docker-compose exec appsmith supervisorctl tail <process_name> stderr
Refer to the Supervisor official documentation to learn more about the supervisorctl actions.