Skip to content

Digital Ocean Deployment

PROJECT ZERO edited this page Jan 18, 2025 · 1 revision

DigitalOcean Deployment

This document provides step-by-step instructions for deploying the application to DigitalOcean.

Prerequisites

Before you begin, ensure you have the following:

  • A DigitalOcean account
  • A DigitalOcean API token
  • Docker installed on your local machine
  • The application codebase

Steps

1. Create a Droplet

  1. Log in to your DigitalOcean account.
  2. Click on the "Create" button and select "Droplets".
  3. Choose an image (e.g., Ubuntu 20.04).
  4. Select a plan that suits your needs.
  5. Add your SSH keys for secure access.
  6. Click "Create Droplet".

2. Set Up the Droplet

  1. SSH into your Droplet using the IP address provided by DigitalOcean.
    ssh root@your_droplet_ip
  2. Update the package list and install Docker.
    apt update
    apt install docker.io
  3. Start and enable Docker.
    systemctl start docker
    systemctl enable docker

3. Deploy the Application

  1. Clone the application repository.
    git clone https://github.com/your_username/your_repository.git
    cd your_repository
  2. Build the Docker image.
    docker build -t your_image_name .
  3. Run the Docker container.
    docker run -d -p 80:80 your_image_name

4. Access the Application

  1. Open your web browser and navigate to the Droplet's IP address.
  2. You should see the application running.

Conclusion

You have successfully deployed the application to DigitalOcean. For further customization and scaling, refer to the DigitalOcean documentation.

TABLE OF CONTENTS

Clone this wiki locally