# 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="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/0gnCc7s2R1HlxoxSUdyh/Docker12.png" 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="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/PjusLmC7Ltg2GB8eBRD0/Doker11.png" 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="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/AvixG1JWdMZGr09J6keu/Docker16.png" 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="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/rk8BXlldnchuUQP0jaVd/Docker17b.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/JHYh8RDqwRtnUzZNgRoJ/Docker10.png" 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)
