Deploying custom Docker projects doesn’t have to be complicated. With xCloud, you can pull your Docker Compose setup directly from a Git repository and have your application running in minutes.
Follow this guide walks you through the entire process, from creating a Docker + NGINX server to deploying your application and going live.
Step 1: Create a Docker+ NGINX Server #
First, you need to create a Docker server to deploy Custom Docker. Click the โAdd New Serverโ button on the dashboard and enter all the necessary credentials to connect your server. You can deploy Custom Docker either on your own server or on an xCloud server.

Next, choose your server provider to deploy Custom Docker with xCloud. You can either use an xCloud Managed Server or select your preferred provider. In this guide, weโll use the xCloud Managed Server.

Afterward, enter the โServer Nameโ, set the โApp Typeโ to Custom Docker(it is optional to select), and add any relevant โTagsโ to help identify your server later.

Next, choose between the โGeneralโ and โPremiumโ options based on your requirements. Then, select a plan that best fits your needs.

Next, choose the โRegionโ and โUbuntu Versionโ for your server. CHoose the โUbuntu versionโ โDatabase Serverโ as your preferences. You can also enable or disable the Backup option as needed.

Next, you can see the โDocker + NGINXโ stack is already selected, which is mandatory for deploying the Custom Docker application. Then click on the โCreateโ button to proceed.

Once the server is created, you will be able to deploy your Custom Docker Application on this server.
After creating a server, it may take a while to become fully operational. Wait a few minutes before deploying your applications to ensure everything starts correctly.
Step 2: Create a New Site #
Begin by logging into your xCloud account. Once logged in, navigate to your dashboard and click on the โNew Siteโ button.
#
Step 3: Choose Your Server #
Then choose your server from the dropdown menu. Next, click on the โNextโ button to proceed to start creating Custom Docker applications.

Step 4: Go to The Custom Docker Tab #
From here, go to the โCustom Dockerโ tab and click on the โDocker Compose From Gitโ to deploy your Custom Docker applications.

Step 5: Set Up the Docker Compose Application #
In the site setup screen, you will be prompted to enter basic site information. Provide a โSite Titleโ and add relevant โTagsโ to help organize your deployment.

Step 6: Set Up Domains #
From the โDomainsโ tab, you will get two options: either you can create a โDemo Siteโ with a test domain and refine it until it is ready for launch, or, you can migrate into a new domain to get your site up and running in a new domain.
Or you can create your site with your live domain. Just proceed with the โGo Liveโ option.

It is recommended to proceed with your own domain. Top begin, click choothe โGo Liveโ and enter your preferred domain name. Then complete the DNS verification process.

Then you will get a โSite Userโ of xCloud and click on the โNextโ button to proceed.

Step 6: Insert Git Repository Credentials #
In the Git Repo tab, you will see three options: Private Repository (SSH), Public Repository (HTTPS), and Connected Git Provider. For a Public Repository, enter the GitHub HTTPS URL and select the branch. For a Private Repository, enter the GitHub SSH URL and select the branch. In this guide, use Connected Git Provider. Choose your linked account, select the repository, and then pick the branch to deploy.

Next enter the name of your Docker Compose file in the repository root โComposer File Nameโ in the dedicated field.

Next, go to the โPort Detectionโ section and click on the โAuto-Detect Portsโ button. It will
Scan docker-compose.yml to discover exposed ports for your Nginx reverse proxy.

Next you will get few ports that detected from your docker file. You can select the โPrimary Service Portโ from the dropdown menu.

Next under the โAdditional services, you can map for additional ports to different domains or subdomains. Enter the โDomain/Subdomainโ and โPortโ in the dedicated fields.

Then toggle on the โEnvironment Fileโ to enable if you want to enter environment variables for your Docker Compose services.

Then, go to the โDeployment script section,. In the โDeployment Scriptโ field, enter any custom commands you want to run after deployment. here you can add custom commands to run after deployment (e.g., restart containers, rebuild images).

Once the deployment process is complete, your Custom Docker application will be live. From the site dashboard, click Visit Site to access your application in the browser.
You’ve successfully deployed a Custom Docker project from a Git repository using xCloud. With your application now live, you can manage updates by pushing changes to your Git repository and redeploying through the xCloud dashboard. If you run into any issues, review your Docker Compose file, port configuration, and environment variables to ensure everything is set up correctly.

































