# How do I deploy a Stack?

To start the installation of a stack of applications, you must connect via SSH to your server. You can do this in two different ways:

#### From the control panel

Go to the web address `yourdomain:2083`\
Enter your login details and you will see the control panel.\
Access the **Terminal** icon.

<figure><img src="/files/SQsZ1os2pHrANsPnQWcp" alt=""><figcaption></figcaption></figure>

#### From an external SSH client:

Enter the same login details as your control panel, in the configuration of your external SSH client:\
**Host:** yourdomain\
**User:** your control panel username\
**Password:** control panel access password\
**Port:** 22

Once you have accessed the console of your server, simply run the following command:

`docker-deploy-stack`

<div align="left"><figure><img src="/files/n81GuiTsBrlDxP7UK8BV" alt=""><figcaption></figcaption></figure></div>

Once the Stack installation is complete, you can immediately test it from your browser.

The command will open a menu asking for the type of Stack to deploy.\
\
Then it will display a link to our documentation where you will need to search for the installed Stack to follow specific instructions for the chosen Stack.

<div align="left"><figure><img src="/files/TtuIRw7QFBcVdc0E3CDB" alt=""><figcaption></figcaption></figure></div>

The documentation for each Stack will provide relevant information and the commands to deploy it.\
For example, deploying Python> Flask + Mysql would be:

`cd stack/python/flask-mysql`\
\
`docker compose up -d`

{% hint style="info" %}
The path to the chosen Stack in the menu will always be: stack///\
Eg: stack/python/flask-redis/\
stack/java/tomcat-mysql/
{% endhint %}

<figure><img src="/files/CVIZtoFTtyg10TheoEbV" alt=""><figcaption></figcaption></figure>

Once the Stack installation is complete, you can immediately test it from your browser.

<figure><img src="/files/XLBbtii8oaIxJvf75br0" alt=""><figcaption></figcaption></figure>

Now, you can upload your application from Git, Wget, etc., following the steps in the guide: [how-do-i-deploy-an-application-in-a-stack.md](https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/guias/docker-hosting/how-do-i-deploy-an-application-in-a-stack.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sitioshispanos.com/menu-principal/guias/docker-hosting/como-despliego-un-stack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
