Exopods Docs
DashboardPricing
  • Getting Started
    • Introduction
  • Knowledge Base
    • Supported Apps
    • Terms/Misc
    • Understand Pricing
    • Why Exopods?
  • Tutorials
    • Getting Started
      • How to Deploy Docker Apps on Exopods?
      • How to deploy Github Project on Exopods?
    • Deploy docker images using private registries
      • AWS ECR
      • Google GCR
      • JFrog
      • Dockerhub
    • Deploy your web app on Exopods
      • Effortless deploy React apps with Exopods
      • Deploy Node.js application using Exopods
    • Deploy One Click Templates
      • Grafana Template deployment on Exopods
      • Deploying portainer in Exopods
      • Deploying Gitea template on Exopods
  • News
    • What's new in Exopods?
  • help and support
    • Common Issues?
  • knowledge share
    • Managed K8s Vs Exopods?
    • How to configure SSL in Exopods?
Powered by GitBook
On this page
  • Prepare Your Docker Image
  • Build Your Docker Image Locally
  • Build Your Docker Image
  • Log in to Docker Hub
  • Push the Docker Image to Docker Hub
  • Log in to Exopods
  • Create a New Deployment
  • Deploy Your Application
  • Conclusion
  1. Tutorials
  2. Getting Started

How to Deploy Docker Apps on Exopods?

This guide outlines the steps to deploy Docker applications on Exopods. It covers creating a deployment configuration, deploying the application, and accessing it through a provided public URL.

PreviousGetting StartedNextHow to deploy Github Project on Exopods?

Last updated 9 months ago

is a powerful platform that simplifies the deployment of Docker applications. In this guide, we will walk you through the process of deploying a Docker app on Exopods, making the deployment process quick and easy.

Prepare Your Docker Image

Before you can deploy your application on Exopods, it's crucial to have your Docker image prepared. This Docker image is essentially a packaged version of your application, which includes all the necessary dependencies, configurations, and code.

Build Your Docker Image Locally

  • Install Docker: If you don’t have Docker installed, download and install it.

  • Create a Dockerfile: A Dockerfile contains instructions to build your app's image. Place a file named Dockerfile in the root of your project directory with the following content:

// # Use an official Node.js runtime as a parent image (for example)
FROM node:14

# Set the working directory
WORKDIR /app

# Copy package.json and install dependencies
COPY package.json .
RUN npm install

# Copy the rest of your app's code
COPY . .

# Expose the port your app runs on
EXPOSE 3000

# Start the app
CMD ["npm", "start"]

Build Your Docker Image

Open your terminal or command prompt, and navigate to the directory where your Dockerfile is located. Run this command to build your Docker image:

// docker build -t your-image-name .

Log in to Docker Hub

  • Ensure you have a Docker Hub account. If you don't have one, you can sign up at Docker Hub.

  • Log in to your Docker Hub account using the command:

// docker login
  • Enter your Docker Hub username and password when prompted.

Push the Docker Image to Docker Hub

  • Once your image is built and you're logged in, push the Docker image to Docker Hub using the following command:

// docker push your-username/your-image-name

Log in to Exopods

With your Docker image ready and available on Docker Hub, the next step is to log in to your Exopods account to begin the deployment process.

  1. Visit the Exopods Website:

  1. Log in to Your Account:

  • Enter your Exopods credentials (email and password) to log in to your account.

  • If you don't have an account, you can easily create one by clicking the "Sign Up" button and following the registration process.

  1. Navigate to the Dashboard:

  • Once logged in, you will be directed to the Exopods dashboard, where you can manage your deployments and access various tools.

  1. Click on "Deploy Now":

  • To start the deployment process, click the "Deploy Now" button on the dashboard.

Create a New Deployment

Now that you're on the Exopods dashboard, it's time to create and configure a new deployment for your Docker application:

  1. Fill in the Required Deployment Details:

  • Container Name: Choose a unique name for your container. This name will help you identify and manage your deployment.

  • Image URL: Enter the URL of your Docker image from Docker Hub. This should follow the format: docker.io/your-username/your-image-name.

  • Port: Specify the port number your application will listen to within the container. This is usually the port your application is running on (e.g., 80 for web servers).

  • Environment Variables: (Optional) If your application requires specific environment variables, you can add them here. Environment variables are key-value pairs that provide configuration settings for your container.

  • Arguments: (Optional) If your application needs specific command-line arguments when it starts, you can specify them in this field.

  1. Review Your Configuration:

  • Double-check all the details you've entered to ensure accuracy.

  • Confirm that the image URL, port, and other configurations align with your application's requirements.

Deploy Your Application

With your deployment configuration complete, you're ready to deploy your Docker application on Exopods.

  1. Deploy the Application:

  • Click the "Deploy" button to initiate the deployment process.

  • Exopods will start deploying your application based on the configuration you provided.

  1. Wait for Deployment Completion:

  • The deployment process typically takes around 5 seconds. During this time, Exopods will pull your Docker image, set up the container, and make it accessible online.

  1. Access Your Application:

  • Once the deployment is complete, Exopods will provide a public URL for your application.

  • Copy this URL to access your deployed application from any web browser.

Conclusion

Deploying Docker applications on Exopods is a quick and efficient process. By following this guide, you can easily build, configure, and deploy your Docker app with minimal effort. Whether you're deploying a simple web service or a complex microservice architecture, Exopods provides a reliable platform to get your applications up and running in no time.

Thank you for using Exopods, and happy deploying!

Open your web browser and go to the

Exopods
Exopods website.