> For the complete documentation index, see [llms.txt](https://docs.monolithforensics.com/monolith/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.monolithforensics.com/monolith/deployment-and-security/on-premises-deployments/deployment/useful-commands.md).

# Useful Commands

Reference common Docker and Docker Compose commands for starting, stopping, monitoring, and troubleshooting a Monolith on-premises deployment.

### Starting and Stopping Monolith Server

```
// Deploy and Run Monolith Containers
// Must be run in same directory as docker-compose.yml
docker compose up -d

// Remove Monolith containers
// Must be run in same directory as docker-compose.yml
docker compose down
```

These commands can be used together to fully stop and restart the Monolith containers.

{% hint style="info" %}
Restarting Monolith in this way does not cause any data loss and should be used when you need to update your licensing from a license token.
{% endhint %}

### Various Docker Commands

```
// Show resource usage of docker containers
docker stats

// Show all containers
docker container ls -a

// Show downloaded container images
docker image ls -a

// Download a container image
docker pull [image-name]

// Restart container
docker container restart [container-name]
```

### Docker CLI Reference

Additional Docker commands are available in the official Docker documentation:

[Docker CLI Reference](https://docs.docker.com/reference/cli/docker/)

### Docker Compose CLI Reference

Additional Docker Compose commands are available in the official Docker documentation:

[Docker Compose CLI Reference](https://docs.docker.com/reference/cli/docker/compose/)

### Related Documentation

* [**On-Premises Deployments**](/monolith/deployment-and-security/on-premises-deployments.md)
* [**Monolith Containers (Docker)**](/monolith/deployment-and-security/on-premises-deployments/monolith-containers-docker.md)
* [**How to Deploy**](/monolith/deployment-and-security/on-premises-deployments/deployment/how-to-deploy.md)
* [**Managing Licensing**](/monolith/deployment-and-security/on-premises-deployments/managing-licensing.md)
* [**Updates**](/monolith/deployment-and-security/on-premises-deployments/updates.md)
