> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/self-managed-hivel-deployment/virtual-private-cloud/aws/hivel-on-premises-deployment-guide-aws/deployment-methods.md).

# Deployment Methods

On-prem Deployment Guide (AWS)

**Goal:** Choose and proceed with your deployment method.

**Prerequisite:** Database Migration completed successfully.

#### Method 1: Using deploy.sh Script (Recommended)

**Application/System:** EC2 VM (Bash script and Docker)

**Choose this when:** You want the fastest supported path with automated setup.

**The script handles:**

* Automatic AWS ECR authentication
* Image pulling with user prompts
* Service deployment and dependency ordering
* Health checks
* Log viewing

Proceed to Method 1: Using deploy.sh Script (Recommended)

{% content-ref url="/pages/uI1myCfeDaWMCH5l5GWZ" %}
[Method 1: Using deploy.sh Script (Recommended)](/self-managed-hivel-deployment/virtual-private-cloud/aws/hivel-on-premises-deployment-guide-aws/deployment-methods/method-1-using-deploy.sh-script-recommended.md)
{% endcontent-ref %}

#### Method 2: Using Docker Compose Directly (Advanced)

**Application/System:** EC2 VM (Docker Compose and AWS ECR)

**Choose this when:** You need finer-grained control over container startup for custom orchestration, staged rollouts, or external orchestration integration, and are prepared to manage the shared Docker network and per-service ordering yourself.

Proceed to Method 2: Deployment Using Docker Compose

{% content-ref url="/pages/dkZDkpvSZVrEFHFud4cx" %}
[Method 2: Deployment Using Docker Compose](/self-managed-hivel-deployment/virtual-private-cloud/aws/hivel-on-premises-deployment-guide-aws/deployment-methods/method-2-deployment-using-docker-compose.md)
{% endcontent-ref %}

{% columns %}
{% column %} <a href="/self-managed-hivel-deployment/virtual-private-cloud/aws/hivel-on-premises-deployment-guide-aws/database-migration.md" class="button primary" data-icon="backward">Back to Database Migration</a>
{% endcolumn %}

{% column %}

{% endcolumn %}

{% column %} <a href="/self-managed-hivel-deployment/virtual-private-cloud/aws/hivel-on-premises-deployment-guide-aws/log-rotation-setup.md" class="button primary" data-icon="forward">Log Rotation Setup</a>
{% endcolumn %}
{% endcolumns %}
