VPS Centrum V3 can run your own Python or Node.js app, or a tool that ships with a **docker-compose.yml** file (a Compose app in this guide), in a Docker container on your VPS. Apps in other languages can run too if you upload them with their own **Dockerfile**. You don’t have to work with Docker on the command line. VPS Centrum installs Docker for you, builds and starts the container, makes the app available on a subdomain, and restarts it automatically if it crashes or the server reboots. The container keeps the app separate from the rest of the server: it has its own language runtime and libraries, so it doesn’t affect your websites or other services.

This guide shows you how to create an app with a four-step wizard, make it available on a domain or subdomain, and deploy new code by uploading files or automatically from Git. It also covers environment variables, database connections, restarting and reconfiguring an app, and deleting or restoring it.

As of November 2026, the **Aplikace** (Apps) section of VPS Centrum and a few related labels are shown in Czech, even when VPS Centrum is set to English. In this guide, these labels appear in bold exactly as you’ll see them on screen, followed by an English translation in parentheses, for example, **Vytvořit aplikaci** (Create app). Labels that VPS Centrum already shows in English, such as **Domains** or **Files**, appear without a translation.

Docker apps are available only on a VPS with VPS Centrum V3, not on web hosting. If your server runs VPS Centrum V2, you can migrate to a server with VPS Centrum V3 in the Customer portal.

## Quick reference

*For experienced users who only need the key steps and settings. If you’re doing this for the first time, start with the next section.*

**Create an app**

- **Go to:** **Domains &gt; Domain Overview &gt; Detail &gt; Aplikace** (Apps). If Docker isn’t installed yet, click **Nainstalovat Docker** (Install Docker) first. You do this once per server, and it requires the **Root rights** permission.
- **Start the wizard:** **Vytvořit aplikaci** (Create app). If the domain already has an app, use **Přidat aplikaci &gt; Vlastní aplikace** (Add app &gt; Custom app).
- **Nasazení** (Deployment): **Prázdný adresář** (Empty folder), **Nahrát ZIP s kódem** (Upload a ZIP file; up to 256 MB, detects the technology, builds images from a Dockerfile), **Nahrát docker-compose.yml** (Upload docker-compose.yml; prebuilt images only), or **Klonovat z Gitu** (Clone from Git; public HTTPS repositories, cloned once).
- **Software:** **Název aplikace** (App name), **Technologie** (Technology), **Verze** (Version; image python:VERSION-slim or node:VERSION-slim), **Port v kontejneru** (Container port; 5000 for Python, 3000 for Node.js), and **Spouštěcí příkaz** (Start command). The app must listen on 0.0.0.0 and on the port it receives in PORT.
- **Prostředí** (Environment): **Limit paměti (MB)** (Memory limit in MB; no swap), **Proměnné prostředí** (Environment variables) as KEY=value, **Databáze** (Database) with **Heslo databáze** (Database password), so the app receives DB\_HOST, DB\_SOCKET, DB\_NAME, DB\_USER, and DB\_PASSWORD (connect through DB\_SOCKET). You can also add a Git repository that deploys from main.
- **Souhrn** (Summary): pick a subdomain in **Mapovat na subdoménu** (Map to subdomain), or type a new name to create one. An app mapped to a subdomain or domain that already has a website replaces that website.
- **App folder:** **/www/hosting/DOMAIN/.apps/APP\_NAME** on the server, **/app** in the container. Python, Node.js, and Dockerfile apps run as the domain’s user.

**Manage an app**

- **App details:** **Aplikace &gt; Detail** (Apps &gt; Detail). Under **Operace** (Operations), you’ll find **Restartovat** (Restart), **Zastavit** (Stop), **Logy** (Logs; the last 200 lines), **Env proměnné** (Environment variables), **Mapování domény** (Domain mapping), and **Konfigurace** (Configuration).
- **Compose apps:** map a service with **Mapovat** (Map) next to its port in the **Služby** (Services) table.
- **Deploy by uploading files:** upload to **.apps/APP\_NAME** with **Files** or FTP, then click **Restartovat** (Restart).
- **Deploy from Git:** add an SSH key in the **Git** section and run git push origin main. Deployment and restart are automatic.
- **Delete:** in the app details, open the three-dot menu and choose **Přesunout do koše** (Move to trash) or **Smazat natrvalo** (Delete permanently; removes the container, the app folder, and the app’s Git repository right away). Apps moved to **Koš** (Trash) stay there for 7 days, and **Obnovit** (Restore) brings them back.

## Before you begin

This section explains how Docker apps run on your server, helps you choose a server size, and lists what you need to have ready.

### How Docker apps run on your server

Each Docker app in VPS Centrum runs in its own container, created from an image: a ready-made base with an operating system and a language runtime. The app’s files live on the server in the domain’s **.apps** folder, and the container sees them as **/app**. Python, Node.js, and Dockerfile containers run as the same user as the domain’s websites. Containers aren’t reachable from the internet directly. Each app gets a port on the server that accepts only local connections, and visitors reach the app through a subdomain where nginx acts as a reverse proxy, forwarding their requests to the app.

When VPS Centrum recreates a container (for example, after you change the configuration or the environment variables), only the files in **/app** persist, and everything else in the container is reset. Store your app’s data in **/app** or in a database. A server migration copies only the files in **.apps**, not Docker or the apps themselves, so on the new server you’ll need to install Docker and create your apps again.

### Choose a server size

The number of Docker apps a server can run depends on how much memory they use. A small Python or Node.js app uses anywhere from a few dozen to a few hundred MB of RAM, while a Compose app with several services needs considerably more. The server also needs memory for your websites, databases, and email. As a rough guide:

- **Lite VPS (4 GB RAM):** one or two small apps alongside regular websites.
- **Basic VPS (6 GB RAM):** several small apps, such as a web app, an API, and a bot.
- **Profi VPS (8 GB RAM) or Power VPS (16 GB RAM):** more apps, including Compose apps and memory-intensive ones, without them competing for memory or slowing each other down.

If you’re not sure, start with a smaller server and keep an eye on memory usage in the app details. You can add RAM, CPU, and disk space at any time in the Customer portal. For current plan specs, see the [Virtual servers](https://www.vas-hosting.com/virtual-servers) page.

### What you need

- **A VPS with VPS Centrum V3** *(required)*: Docker apps aren’t available on web hosting or in VPS Centrum V2.
- **Free memory on the server** *(required)*: every app uses the server’s RAM, and VPS Centrum doesn’t check whether there’s enough before it creates the app. You can add RAM in the Customer portal.
- **The Root rights permission** *(if applicable)*: needed only to install Docker. Users without it see **Pro instalaci Dockeru kontaktujte správce serveru.** (To install Docker, contact your server administrator.) instead of the install button.
- **Your app’s code** *(if applicable)*: a ZIP file of up to 256 MB, a public Git repository, or a docker-compose.yml file. If you start with **Prázdný adresář** (Empty folder), you upload the code after the app is created.
- **A subdomain that points to your server** *(if applicable)*: needed only if the app should be reachable from the web. You can create the subdomain in the wizard, but its DNS records must point to your server.
- **A database and its password** *(if applicable)*: only if your app uses a database. You create databases in the domain’s **Database** section.
- **An SSH key** *(if applicable)*: only for automatic deployment from Git. You add it in the **Git** section.

**Estimated time**

Installing Docker takes anywhere from under a minute to a few minutes, and going through the wizard takes about 5 minutes. An app takes longer to start the first time because it has to install the packages it needs. You can follow the progress in **Logy** (Logs).

> **Skip ahead**
> 
> Already have an app? Go straight to what you need:
> 
> [Make your app available on a domain or subdomain](#h-make-your-app-available-on-a-domain-or-subdomain)
> 
> [Deploy new code](#h-deploy-new-code)
> 
> [Set environment variables and connect a database](#h-set-environment-variables-and-connect-a-database)
> 
> [Restart, stop, or reconfigure an app](#h-restart-stop-or-reconfigure-an-app)
> 
> [Delete an app or restore it from the trash](#h-delete-an-app-or-restore-it-from-the-trash)

## Create a Docker app

You create Docker apps with a wizard in the **Aplikace** (Apps) section of the domain the app belongs to. If Docker isn’t installed on the server yet, you’ll need to install it from this section first. The wizard has four steps: **Nasazení** (Deployment), where you choose how to add your code; **Software**, where you name the app and set its technology and port; **Prostředí** (Environment), where you set the memory limit, environment variables, and database; and **Souhrn** (Summary), where you choose a subdomain. To go back to a previous step, click **Zpět** (Back).

### Install Docker on the server

Docker is installed server-wide, so you only need to do this once, before you create your first app. You need the **Root rights** permission.

![VPS Centrum Aplikace section with the Nainstalovat Docker button](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-01-apps-install-docker-1024x443.jpg)1. In VPS Centrum, go to **Domains &gt; Domain Overview** and click **Detail** next to your domain.
2. In the left menu, click **Aplikace** (Apps).
3. In the **Vlastní Docker aplikace** (Custom Docker apps) box, click **Nainstalovat Docker** (Install Docker).

While Docker is installing, the box shows **Docker se instaluje** (Docker is installing), and a notice at the top of the page reads **Probíhá instalace Docker Engine…** (Installing Docker Engine). When it’s done, the page reloads and shows **Docker Engine byl úspěšně nainstalován** (Docker Engine was installed successfully), and the **Koš** (Trash) and **Vytvořit aplikaci** (Create app) buttons appear. VPS Centrum installs Docker Engine from Docker’s official repository and sets it to start when the server boots. You can’t uninstall it from VPS Centrum.

### Choose how to add your code

To start the app wizard, click **Vytvořit aplikaci** (Create app) in the **Aplikace** (Apps) section of VPS Centrum. If the domain already has an app, click **Přidat aplikaci** (Add app) and choose **Vlastní aplikace** (Custom app). The other option, **Z katalogu** (From the catalog), installs ready-made apps such as WordPress or n8n.

![VPS Centrum Aplikace section with the Vytvořit aplikaci button](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-02-apps-create-app-1024x248.jpg)You can also open the wizard in two other ways:

- Click **Vytvořit aplikaci** (Create app) on the **Domains &gt; Domain Overview** page. The wizard then starts with an extra **Doména** (Domain) step, and you map the app to a subdomain later in the app details.
- Click **Instalovat aplikaci** (Install app) under **Quick Links** in the **Subdomény** (Subdomains) section. The button appears for subdomains that only have the default page, and the wizard opens with that subdomain already selected.

In the **Nasazení** (Deployment) step, choose one of these options:

- **Prázdný adresář** (Empty folder): creates an empty app folder for a Python or Node.js app. No sample app is created, so the app won’t start until you upload your code (see [Deploy new code](#h-deploy-new-code)).
- **Nahrát ZIP s kódem** (Upload a ZIP file): upload an archive of up to 256 MB. When unpacked, it can’t exceed 500 MB or 50,000 files. Your files (for example, **app.py** and **requirements.txt** for Python, or **package.json** for Node.js) can be at the root of the archive or inside a single folder. VPS Centrum detects the technology and shows it below the field, for example, **Detekováno: python** (Detected: python). An archive with a **Dockerfile** becomes a Dockerfile app, and one with a **docker-compose.yml** file becomes a Compose app.
- **Nahrát docker-compose.yml** (Upload docker-compose.yml): upload the file with **Nahrát soubor** (Upload file) or paste it with **Vložit obsah** (Paste contents). This works only if every service uses a prebuilt image. A service that uses build or env\_file needs more files, so upload the whole project as a ZIP file instead.
- **Klonovat z Gitu** (Clone from Git): in **URL Git repozitáře** (Git repository URL), enter the address of a public repository that starts with https://. In **Větev nebo tag** (Branch or tag), you can enter a branch or tag; if you leave it empty, the default branch is used. The repository is cloned only once, when the app is created, and private repositories aren’t supported. To deploy updates automatically, see [Deploy automatically from Git](#h-deploy-automatically-from-git).

Click **Pokračovat** (Continue). Here’s what the first step looks like after you upload a ZIP file that contains a Python app:

![Nasazení step of the VPS Centrum app wizard with an uploaded ZIP file](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-03-step1-deployment-zip.jpg)If the technology can’t be detected, the wizard shows **Technologii se nepodařilo rozpoznat. Vyberte ji ručně v dalším kroku.** (The technology couldn’t be detected. Choose it manually in the next step.) For Git repositories, detection works only with GitHub and GitLab. Without detection, you can still choose Python or Node.js yourself, but not Dockerfile or Docker Compose. For security reasons, VPS Centrum adjusts uploaded docker-compose.yml files, and the wizard lists the changes, in English, below the file.

### Set the name, technology, and port

In the **Software** step of the app wizard, fill in these fields:

- **Název aplikace** (App name): lowercase letters, numbers, and hyphens, up to 50 characters (for example, my-bot). It’s also the name of the app folder, and you can’t change it later.
- **Technologie** (Technology): **Python** or **Node.js**. VPS Centrum sets **Dockerfile** or **Docker Compose** automatically, based on your code.
- **Verze** (Version): the language version, which becomes part of the image name (python:VERSION-slim or node:VERSION-slim). The available versions are listed below the field. If you enter a version that doesn’t exist, the app ends up with the **Chyba** (Error) status (see [The app shows Chyba after you create it](#h-the-app-shows-chyba-after-you-create-it)).
- **Port v kontejneru** (Container port): the port your app listens on inside the container. The default is 5000 for Python and 3000 for Node.js. For a Dockerfile app, it comes from the EXPOSE instruction. The app also receives it in the PORT environment variable.
- **Spouštěcí příkaz** (Start command): the command that starts your app. It’s optional; if you leave it empty, the default command for the technology is used. After a ZIP upload or a Git clone, VPS Centrum fills it in for you.

For nginx to reach your app, the app must listen on the port set in **Port v kontejneru** (Container port) and on 0.0.0.0 (all addresses in the container), not only on 127.0.0.1 or localhost. For example, Flask’s development server listens on 127.0.0.1 by default, so start it in your code with app.run(host="0.0.0.0", port=int(os.environ\["PORT"\])). A Node.js server listens on all addresses unless you tell it otherwise.

The default command for Python creates a virtual environment in the app folder, installs the packages listed in **requirements.txt**, and runs **app.py**. The default command for Node.js installs the packages from **package.json** and runs **index.js**. When you’re done, click **Pokračovat** (Continue).

![Software step of the VPS Centrum app wizard](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-04-step2-software.png)### Set the memory limit, variables, and database

In the **Prostředí** (Environment) step of the app wizard, you can set the following:

- **Limit paměti (MB)** (Memory limit in MB): the most RAM the app can use. Without a limit, the app can use all free memory on the server. Apps can’t use swap. If an app goes over its limit, it’s stopped right away, without an error message in **Logy** (Logs), and Docker restarts it. For a Compose app, the limit is split evenly between its services.
- **Proměnné prostředí** (Environment variables): settings your app reads from its environment instead of from your code, such as an API key or a debug setting. Enter one per line as KEY=value (for example, DEBUG=false). Lines that start with \# are comments. If your docker-compose.yml needs variables, the wizard adds them to the field, and you fill in the values.
- **Databáze** (Database): one of the domain’s MariaDB or PostgreSQL databases for the app to use. Once you choose one, the **Heslo databáze** (Database password) field appears. It’s required: enter the database user’s password. For details, see [Connect the app to a database](#h-connect-the-app-to-a-database).
- **Vytvořit Git repozitář pro auto-deploy (volitelné)** (Create a Git repository for auto-deploy, optional): creates a Git repository for the app. Every push to its main branch copies the code to the app folder and restarts the app. See [Deploy automatically from Git](#h-deploy-automatically-from-git).

Click **Pokračovat** (Continue).

![Prostředí step of the VPS Centrum app wizard](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-05-step3-environment.jpg)### Choose a subdomain and create the app

In **Souhrn** (Summary), the last step of the app wizard, use **Mapovat na subdoménu** (Map to subdomain) to choose where the Docker app is available on the web:

- **Bez mapování** (No mapping): the app runs but isn’t reachable from the web. Use this for bots and other apps without a web interface.
- An existing subdomain, such as **app.domena.cz**: the app runs on that subdomain. If a website is already there, the app replaces it.
- A new subdomain: type its name (for example, api) and choose **Vytvořit subdoménu api** (Create subdomain api). VPS Centrum creates the subdomain together with the app.
- **domena.cz (celá doména)** (domena.cz, entire domain): the app replaces the website on both **domena.cz** and **www.domena.cz**.

For a Compose app, VPS Centrum maps the subdomain to a service that has a port defined in docker-compose.yml, preferring one named web or app. If there’s no suitable service, the app isn’t mapped, and you can map a service later in the app details.

Check the summary below the field, which lists **Název aplikace** (App name), **Způsob nasazení** (Deployment method), and **Technologie** (Technology), then click **Vytvořit aplikaci** (Create app). You can change the mapping at any time (see [Make your app available on a domain or subdomain](#h-make-your-app-available-on-a-domain-or-subdomain)).

![Souhrn step of the VPS Centrum app wizard with a new subdomain](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-06-step4-summary-new-subdomain.jpg)The **Detail aplikace** (App details) page opens with the **Vytváření** (Creating) status. If you chose to create a Git repository, a notice reminds you to add an SSH key in the **Git** section before you can push to it.

### Check that the app is running

When the container is up, the status on the **Detail aplikace** (App details) page changes from **Vytváření** (Creating) to **Běží** (Running). The page also shows the subdomain and the image. Under **Aktuální využití** (Current usage), you’ll see CPU and memory usage and the number of processes, and the **Otevřít** (Open) button in the top right opens the app on its subdomain.

![App details page of a running Docker app in VPS Centrum](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-07-app-detail-running-1024x564.jpg)You may also see **Zastaveno** (Stopped) when you’ve stopped the app or moved it to the trash, and **Chyba** (Error) when the container couldn’t be created or started.

**Běží** (Running) doesn’t always mean the app works. If an app crashes right after it starts, it gets stuck in a restart loop: Docker keeps restarting it, and the status doesn’t change. Signs of this are a **Restartů celkem** (Restart count) row under **Obecné informace** (General information) and memory usage close to zero. To find out what went wrong, open **Logy** (Logs), which shows the last 200 lines of the app’s output, and see [The app shows Běží but does not respond](#h-the-app-shows-bezi-but-does-not-respond).

You’ll find all of the domain’s apps and their statuses in the **Aplikace** (Apps) section. Once a domain has an app, this list replaces the catalog:

![List of a domain’s Docker apps with their status in VPS Centrum](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-22-apps-list-1024x285.jpg)## Make your app available on a domain or subdomain

To make a Docker app reachable from the web, map it to a subdomain or to the entire domain. You can do this in the last step of the wizard or at any time later in the app details. VPS Centrum then configures nginx on that subdomain to forward requests to the app, redirect HTTP to HTTPS, and support WebSockets. The subdomain also needs DNS records that point to your server and a valid SSL certificate.

### Map the app to a subdomain

Python, Node.js, and Dockerfile apps are mapped with **Mapování domény** (Domain mapping) in the app details.

**Warning:** If you map an app to the entire domain or to a subdomain with a website, the app replaces the website, and VPS Centrum doesn’t warn you first. The website’s files stay where they are, and the website comes back as soon as you map the app elsewhere or choose **Bez mapování** (No mapping).



 

1. In the **Aplikace** (Apps) section, click **Detail** next to the app.
2. Under **Operace** (Operations), click **Mapování domény** (Domain mapping).
3. In the **Mapování aplikace na doménu** (Map the app to a domain) window, choose a subdomain in **Subdoména** (Subdomain), or type a new name and choose **Vytvořit subdoménu** (Create subdomain).
4. Click **Uložit** (Save).

![Domain mapping window for a Docker app in VPS Centrum](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-11-domain-mapping.jpg)Besides your subdomains, the window offers **Bez mapování (aplikace nebude přístupná z webu)** (No mapping: the app won’t be reachable from the web), which removes the mapping, and **domena.cz (celá doména)** (domena.cz, entire domain), which maps the app to both **domena.cz** and **www.domena.cz**.

On the domain’s **Overview** page, a mapped subdomain shows an **Aplikace** (App) label instead of a PHP version:

![Domain overview with a subdomain mapped to a Docker app](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-24-overview-subdomain-app-1024x207.jpg)### Set up DNS and HTTPS for the subdomain

For a Docker app to work on its subdomain, the subdomain’s DNS records must point to your server, and the subdomain needs a valid SSL certificate, because nginx redirects all traffic to HTTPS. Mapping an app doesn’t issue a certificate. Until the subdomain has one, visitors see a certificate warning in their browser instead of the app.

If **Automatically issue SSL certificate to newly discovered subdomains** is turned on in the **Https settings** window, VPS Centrum adds the subdomain to the certificate within a few minutes after its DNS starts pointing to your server. If the option is off, add the subdomain to the certificate yourself:

1. Go to **Domains &gt; Domain Overview** and click **Detail** next to your domain.
2. In the **SSL certificates** panel, click **Settings**. If the domain doesn’t have a certificate yet, the button is **Přidat SSL certifikát** (Add SSL certificate).
3. In the **Https settings** window, make sure the subdomain is selected in **Subdomains**.
4. Click **Test new subdomains**. For a domain without a certificate, the button is **Issue SSL certificate**.

The **HTTPS** label next to each subdomain on the domain’s **Overview** page shows its HTTPS status. A red label means the certificate is missing or has expired. Hover over the label to see more. For example, **Adresa zatím směřuje na jiný server, takže se web servíruje odtamtud** (This address still points to another server, so the site is served from there) means the subdomain’s DNS doesn’t point to your server yet.

### Map a Compose app service to a subdomain

Compose apps don’t have the **Mapování domény** (Domain mapping) button. Instead, open the app details and click **Mapovat** (Map) next to a service’s port in the **Služby** (Services) table. The port must be listed under ports in docker-compose.yml. A port listed only under expose is reachable only by the app’s other services.

## Deploy new code

You can update an app in two ways: upload new files to the app folder and restart the app, or push to the app’s Git repository, which deploys the code and restarts the app automatically after every push. Git is the better fit if you change your code often.

### Upload files and restart the app

Your app’s code is in **/www/hosting/DOMAIN/.apps/APP\_NAME**. You can upload files there with the file manager in VPS Centrum (**Files**) or over FTP or SFTP. FTP accounts are created in the domain’s **FTP** section. Because the **.apps** folder name starts with a dot, some FTP clients hide it unless you turn on the option to show hidden files.

![VPS Centrum File Manager in a Docker app folder with the Upload button](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-18-files-apps-upload-1024x298.jpg)1. Go to **Domains &gt; Domain Overview**, click **Detail** next to your domain, and click **Files** in the left menu.
2. Open the **.apps** folder, then the folder with your app’s name.
3. Click **Upload**, choose **Files**, and select the files you want to upload.
4. In the left menu, click **Aplikace** (Apps), click **Detail** next to the app, and click **Restartovat** (Restart).

VPS Centrum doesn’t restart the app after an upload, so your changes take effect only after you restart it. When the restart is done, you’ll see **Aplikace byla restartována.** (The app has been restarted.)

Files uploaded with the file manager or over FTP are owned by the domain’s user, which the container also runs as. If you unpack an archive over SSH as root, change the owner right after unpacking so the app can write to its files:

```
cd /www/hosting/DOMAIN/.apps/APP_NAME && unzip -o code.zip && chown -R --reference=/www/hosting/DOMAIN/www /www/hosting/DOMAIN/.apps/APP_NAME
```

unzip -o code.zip: unpacks **code.zip** into the app folder and overwrites existing files without asking.

chown -R --reference=/www/hosting/DOMAIN/www: gives every file in the app folder the same owner and group as the domain’s **www** folder.

Replace **DOMAIN** with your domain name and **APP\_NAME** with the name of your app.

### Deploy automatically from Git

With automatic deployment, every push to Git sends your new code to the Docker app. For a new app, turn it on in the wizard by selecting **Vytvořit Git repozitář pro auto-deploy** (Create a Git repository for auto-deploy) in the **Prostředí** (Environment) step. For an existing app, connect a repository in the app details:

1. In the **Aplikace** (Apps) section, click **Detail** next to the app.
2. Under **Git auto-deploy**, click **Propojit repozitář** (Connect repository).
3. In the **Propojit Git repozitář** (Connect a Git repository) window, click **Vytvořit nový repozitář pro tuto aplikaci** (Create a new repository for this app).

![Window for connecting a Git repository to a Docker app](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-20-link-git-window.jpg)The window also lists the domain’s existing repositories, but those keep deploying to their original folder, such as **www**, and only restart the app. Use a new repository instead.

The app’s repository is a standard VPS Centrum Git repository. You’ll find it in the **Git** section with the **auto-deploy** label and **.apps/APP\_NAME** in the **Deployment folder** column. To push to it, you need an SSH key added in the **Git** section, which is also where you change the deployment branch and view the deployment log (**Log Deploy**). In the app details, **Git auto-deploy** shows the **Repozitář** (Repository), the **Větev** (Branch, main), and the **Klonovací URL** (Clone URL):

![Git auto-deploy section in the app details](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-08-git-auto-deploy-1024x284.png)Clone the repository to your computer:

```
git clone CLONE_URL
```

Replace **CLONE\_URL** with the **Klonovací URL** (Clone URL) shown in **Git auto-deploy**.

**Warning:** The repository’s first commit contains everything that was in the app folder when the repository was created, including temporary files and the **.env** file, which stores your environment variables, including the database password, in plain text. Before you push the repository anywhere else, such as GitHub, add a **.gitignore** file with the lines .env, .cache/, .npm/, .venv/, and node\_modules/, remove the files from Git with git rm -r --cached --ignore-unmatch .env .cache .npm, and push the change to the server. Your app still gets its variables from VPS Centrum without the **.env** file.



 

Make your changes in the repository folder, then commit and push them:

```
git add -A
git commit -m "Describe your change"
git push origin main
```

git add -A: stages all new, changed, and deleted files.

git commit -m "Describe your change": saves the staged changes as a new commit with a message.

git push origin main: sends the commit to the main branch on the server.

The server replies with Autodeploy enquened. and copies the contents of the main branch to the app folder. It then restarts a Python or Node.js app (the start command installs any new packages), rebuilds a Dockerfile app, or redeploys all services of a Compose app. The app details show **Git repozitář APP\_NAME byl úspěšně deploynut.** (Git repository APP\_NAME was deployed successfully.) Pushes to other branches are stored in the repository but don’t trigger a deployment.

Files you delete from the repository are also deleted from the app folder. Files that were never in the repository, such as the **.venv** folder with installed packages, are left in place. Post-deployment commands set in the **Git** section run on the server, not inside the container. To stop deploying from the repository, click **Odpojit** (Disconnect). The repository and the app’s files are kept.

## Set environment variables and connect a database

You can set environment variables in the **Prostředí** (Environment) step of the wizard or later with **Env proměnné** (Environment variables) in the app details. You connect a database in the same wizard step, and VPS Centrum then passes the connection details to the app as environment variables too.

### Edit environment variables

To add, change, or remove the environment variables of an existing Docker app:

1. In the **Aplikace** (Apps) section, click **Detail** next to the app.
2. Under **Operace** (Operations), click **Env proměnné** (Environment variables).
3. In the **Proměnné prostředí** (Environment variables) window, edit the variables in the text box, one per line, as KEY=value.
4. Click **Uložit a restartovat** (Save and restart).

![Environment variables window of a Docker app in VPS Centrum](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-10-env-variables.png)Saving recreates the container with the new values. The app is unavailable for a few seconds, and the output in **Logy** (Logs) is cleared. Besides your own variables, the app always receives PORT with the value of **Port v kontejneru** (Container port).

The list above the text box hides the values, and VPS Centrum stores them encrypted, but the text box shows them in plain text. VPS Centrum also writes them to a **.env** file in the app folder, where anyone with access to the domain’s files can read them. The file is overwritten whenever the container is recreated, so always change your variables in this window, not in the file.

### Connect the app to a database

When you choose a database in the **Prostředí** (Environment) step and enter its password in **Heslo databáze** (Database password), VPS Centrum passes these variables to the app:

VariableMariaDBPostgreSQLDB\_HOSTlocalhost/var/run/postgresqlDB\_SOCKET/var/run/mysqld/mysqld.sock/var/run/postgresqlDB\_PORTnot set5432DB\_NAMEdatabase namedatabase nameDB\_USERdatabase namedatabase nameDB\_PASSWORDpassword from **Heslo databáze**password from **Heslo databáze**The database runs on the server, outside the container, so the app connects through the socket in DB\_SOCKET, a special file that programs on the same server use to talk to each other. For MariaDB, don’t connect using DB\_HOST. Libraries such as PyMySQL and mysql2 treat localhost as a network address, which inside the container means the container itself, so the connection fails with **Connection refused** (in Node.js, connect ECONNREFUSED 127.0.0.1:3306).

Here’s how to connect to MariaDB from a Python app with PyMySQL:

```
import os
import pymysql

connection = pymysql.connect(
    unix_socket=os.environ["DB_SOCKET"],
    user=os.environ["DB_USER"],
    password=os.environ["DB_PASSWORD"],
    database=os.environ["DB_NAME"],
)
```

And from a Node.js app with mysql2:

```
const mysql = require("mysql2/promise");

async function connect() {
  return mysql.createConnection({
    socketPath: process.env.DB_SOCKET,
    user: process.env.DB_USER,
    password: process.env.DB_PASSWORD,
    database: process.env.DB_NAME,
  });
}
```

Add the library (pymysql or mysql2) to **requirements.txt** or **package.json** so that the start command installs it.

You can’t change the database after the app is created. To connect an existing app to a MariaDB database, add these lines in **Env proměnné** (Environment variables):

```
DB_SOCKET=/var/run/mysqld/mysqld.sock
DB_NAME=DATABASE_NAME
DB_USER=DATABASE_NAME
DB_PASSWORD=PASSWORD
```

Replace **DATABASE\_NAME** with the database name from the **Database** section and **PASSWORD** with the database user’s password. Python and Node.js apps always have access to the database sockets, so you don’t need to change anything else in VPS Centrum.

## Manage a Docker app

Once a Docker app is created, you manage it from its details page: in the **Aplikace** (Apps) section, click **Detail** next to the app. From there, you can restart, stop, or reconfigure the app, move it to the trash, or delete it permanently.

### Restart, stop, or reconfigure an app

Use the buttons under **Operace** (Operations) in the app details to restart, stop, or start an app. You’ll also find these actions in the three-dot menu in the top right. A stopped app has the **Zastaveno** (Stopped) status and doesn’t start automatically after a server reboot. Its subdomain returns **502 Bad Gateway** until you start the app again with **Spustit** (Start). For a Compose app, **Restartovat** (Restart) recreates the containers of all its services. To restart a single service, use the icon in the **Akce** (Actions) column of the **Služby** (Services) table.

To change the start command, port, or memory limit, use the **Konfigurace** (Configuration) window. Don’t leave **Spouštěcí příkaz** (Start command) empty in this window. Unlike in the wizard, an empty field here uses the image’s default command instead of the one for your technology, so a Python app won’t start.

1. In the **Aplikace** (Apps) section, click **Detail** next to the app.
2. Under **Operace** (Operations), click **Konfigurace** (Configuration).
3. In the **Konfigurace aplikace** (App configuration) window, change **Spouštěcí příkaz** (Start command), **Port v kontejneru** (Container port), or **Limit paměti (MB)** (Memory limit in MB).
4. Click **Uložit a znovu vytvořit kontejner** (Save and recreate container).

![App configuration window in VPS Centrum](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-12-configuration.jpg)The container is recreated, so the app is down for a few seconds and may get a different port on the server. The subdomain mapping is updated automatically, the app folder is kept, and the output in **Logy** (Logs) starts over. Saving the configuration also starts a stopped app. You can’t change the name, technology, version, or database. To change them, create a new app and move your code to it. Compose apps don’t have the **Konfigurace** (Configuration) window.

### Delete an app or restore it from the trash

You can move an app to the trash with **Přesunout do koše** (Move to trash) and restore it within 7 days, or delete it right away with **Smazat natrvalo** (Delete permanently).

**Warning:** **Smazat natrvalo** (Delete permanently) immediately deletes the container, the app folder with all its files, and the app’s Git repository. This can’t be undone. If your app stores data in its folder, download the data first with **Files** or over FTP. To keep everything for 7 days, use **Přesunout do koše** (Move to trash) instead.



 

![Docker app action menu with the delete options](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-14-menu-trash-delete-1024x164.jpg)1. In the **Aplikace** (Apps) section, click **Detail** next to the app.
2. Click the three-dot menu in the top right and choose **Přesunout do koše** (Move to trash) or **Smazat natrvalo** (Delete permanently).
3. In the panel that opens on the right, click **Ano, smazat** (Yes, delete).

An app in the trash is stopped and hidden from the app list, but its files stay on the server. Its subdomain mapping stays in place, so the subdomain returns **502 Bad Gateway**. If you want your website back on that subdomain, remove the mapping before you move the app to the trash. While an app is in the trash, you can’t create another app with the same name.

To open the trash, click **Koš** (Trash) in the **Aplikace** (Apps) section. The **Trvalé smazání** (Permanent deletion) column shows when VPS Centrum will delete each app for good, which is 7 days after it was moved to the trash.

![App trash in VPS Centrum with the Obnovit button](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-21-apps-trash-1024x219.jpg)To bring an app back with all its files and its mapping, click **Obnovit** (Restore). The app returns with the **Zastaveno** (Stopped) status, so start it in the app details with **Spustit** (Start). The red button with the trash icon deletes the app permanently right away. Permanently deleting an app restores the subdomain’s original content but doesn’t delete the database the app used or any subdomain created in the wizard.

## Troubleshooting

### Clicking Vytvořit aplikaci does nothing

**Symptom:** You click **Vytvořit aplikaci** (Create app) in the last step of the wizard, but the window stays open and no app is created.

**Cause:** A database is selected in the **Prostředí** (Environment) step, but **Heslo databáze** (Database password) is empty. The error **Pokud chcete předat databázi, zadejte i heslo.** (To connect a database, you also need to enter its password.) appears only in the **Prostředí** step, not in the last step.

**Solution:** Click **Zpět** (Back) to return to the **Prostředí** step. Enter the password, or choose **Bez databáze** (No database) in **Databáze** (Database), and finish the wizard.

![Prostředí step with a missing database password](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-16-step3-database-password-error.jpg)### The app shows Chyba after you create it

**Symptom:** After you create the app, it has the **Chyba** (Error) status, and a notice at the top says **Při vytváření aplikace APP\_NAME došlo k chybě** (An error occurred while creating the app APP\_NAME).

**Cause:** VPS Centrum couldn’t create or start the container, for example, because there’s no image for the version in **Verze** (Version).

**Solution:** Click **Zobrazit chybu** (Show error) in the notice. If the message contains failed to resolve reference with the image name and not found, the version doesn’t exist. You can’t change the version of an app, so delete the app permanently and create it again with one of the versions listed below **Verze** (Version). If the message points to something else, send it to our support team.

### The app shows Běží but does not respond

**Symptom:** The app details show **Běží** (Running), but the app doesn’t respond. Under **Obecné informace** (General information), there’s a **Restartů celkem** (Restart count) row, and memory usage is close to zero.

**Cause:** The app is stuck in a restart loop. It crashes right after it starts, for example, because of a missing file, a bug in the code, a missing package, or not enough memory, and Docker keeps restarting it with increasing delays. The status in VPS Centrum doesn’t reflect the container’s actual state.

**Solution:** Open **Logy** (Logs) and look for the error message in the last lines. For example, Cannot find module '/app/index.js' means that the app folder has no **index.js**, which the default Node.js command runs. Fix the problem by uploading the missing file, changing the code, or adjusting **Spouštěcí příkaz** (Start command) or **Limit paměti (MB)** (Memory limit in MB) in **Konfigurace** (Configuration), then restart the app. The restart count isn’t reset after the fix. If **Logy** (Logs) show no error message at all, see [The Docker app keeps restarting without an error in the logs](#h-the-docker-app-keeps-restarting-without-an-error-in-the-logs).

![App details of a Docker app that keeps restarting](https://cms.vas-hosting.cz/wp-content/uploads/2026/11/docker-apps-en-17-detail-restarts-1024x447.jpg)### The Docker app keeps restarting without an error in the logs

**Symptom:** The app stops responding from time to time and starts over, and **Restartů celkem** (Restart count) under **Obecné informace** (General information) keeps growing. **Logy** (Logs) show no error message, only the app’s startup output repeated.

**Cause:** The app uses more memory than **Limit paměti (MB)** (Memory limit in MB) allows. An app that goes over the limit is stopped immediately, before it can write anything to the log, and Docker starts it again.

**Solution:** Raise **Limit paměti (MB)** (Memory limit in MB) in **Konfigurace** (Configuration), or reduce the app’s memory use. To see how much memory the app uses, check **Aktuální využití** (Current usage) in the app details.

### 502 Bad Gateway error on a Docker app subdomain

**Symptom:** The app’s subdomain shows **502 Bad Gateway** instead of the app.

**Cause:** The nginx proxy on the subdomain can’t reach the app. The app is stopped or in the trash, it’s still starting (the first start installs packages), or it listens only on 127.0.0.1 or on a port other than the one in **Port v kontejneru** (Container port).

**Solution:**

- Check the status in the app details. If it’s **Zastaveno** (Stopped), click **Spustit** (Start). If the app is in the trash, restore it first.
- Open **Logy** (Logs) to see whether the app is still starting and which address and port it listens on (for example, Running on http://127.0.0.1:5000).
- If the app listens only on 127.0.0.1 or localhost, change the address to 0.0.0.0 in your code or in the start command (see [Set the name, technology, and port](#h-set-the-name-technology-and-port)).
- If it listens on a different port, change **Port v kontejneru** (Container port) in **Konfigurace** (Configuration).

### Certificate warning on a Docker app subdomain

**Symptom:** The browser shows a certificate warning, such as **Your connection is not private** in Chrome, instead of the app.

**Cause:** The subdomain isn’t covered by the domain’s SSL certificate, because mapping an app doesn’t issue one. nginx redirects every request to HTTPS, and without a certificate for the subdomain, the server answers with its own certificate, which browsers don’t trust.

**Solution:** Make sure the subdomain’s DNS records point to the server. Then, on the domain’s **Overview** page, click **Settings** in the **SSL certificates** panel, make sure the subdomain is selected in **Subdomains**, and click **Test new subdomains**. For details, see [Set up DNS and HTTPS for the subdomain](#h-set-up-dns-and-https-for-the-subdomain).

### 403 Forbidden error on some Docker app URLs

**Symptom:** The app works on its subdomain, but some of its URLs return **403 Forbidden**, even though the app handles them.

**Cause:** The subdomain uses the same nginx security rules as the domain’s websites, and they block some URLs before they reach the app: paths that start with /config/, /tmp/, /temp/, /log/, /logs/, /bin/, or /inc/; files that end in .md, .bak, or .log; URLs that contain README or LICENSE; and paths that include a file or folder whose name starts with a dot.

**Solution:** Rename these URLs in your app or move them under a different path. For example, use /api/config/ instead of /config/. VPS Centrum manages the nginx configuration for the app’s subdomain, so manual changes would be lost the next time the mapping changes.

### The Docker app cannot connect to the database

**Symptom:** **Logy** (Logs) show a database connection error, such as Can't connect to MySQL server on 'localhost' with Connection refused in a Python app, or connect ECONNREFUSED 127.0.0.1:3306 in a Node.js app.

**Cause:** The app uses localhost from DB\_HOST to connect to MariaDB over the network. Inside the container, localhost is the container itself, while the database runs on the server.

**Solution:** Connect through the socket in DB\_SOCKET instead of the host name. In PyMySQL, pass unix\_socket=os.environ\["DB\_SOCKET"\] in place of host. In mysql2, pass socketPath: process.env.DB\_SOCKET. You’ll find complete examples for Python and Node.js in [Connect the app to a database](#h-connect-the-app-to-a-database).

### Code changes to a Docker app do not show up

**Symptom:** You uploaded new files or pushed to Git, but the app still behaves the same.

**Cause:** After an upload with **Files** or over FTP, the app keeps running the old code until it’s restarted. With Git, only a push to the deployment branch, which is main by default, triggers a deployment.

**Solution:**

- After uploading files, restart the app (see [Upload files and restart the app](#h-upload-files-and-restart-the-app)).
- With Git, make sure you push to the deployment branch (by default, git push origin main) and that the server replied with Autodeploy enquened.. If the server asks for a password, your SSH key is missing from the **Git** section (see [Deploy automatically from Git](#h-deploy-automatically-from-git)).

### The website disappeared after mapping a Docker app

**Symptom:** The app now appears on a domain or subdomain where your website used to be.

**Cause:** The app is mapped to the entire domain or to a subdomain with a website, so nginx sends visitors to the app. The website’s files are still in their folder.

**Solution:** In the app details, click **Mapování domény** (Domain mapping), choose a different subdomain or **Bez mapování (aplikace nebude přístupná z webu)** (No mapping: the app won’t be reachable from the web), and click **Uložit** (Save). Your website appears again.

Still having trouble? [Contact our support team](https://www.vas-hosting.com/contact).

Running several Docker apps? Each one uses your server’s memory. If you need more, add RAM in the [Customer portal](https://portal.vas-hosting.cz) or compare plans on the [Virtual servers](https://www.vas-hosting.com/virtual-servers) page.