SELF-HOSTING

Dokploy Install – an open-source, self-hostable PaaS

Dokploy is an open-source, self-hostable Platform as a Service (PaaS) that simplifies the deployment and management of applications and databases using Docker and Traefik. It serves as a free alternative to popular platforms like Vercel, Heroku, and Netlify, offering robust features for developers who prefer to manage their own infrastructure.

Dokploy Features

  • Applications: Deploy any type of application (Node.js, PHP, Python, Go, Ruby, etc.) with ease.
  • Databases: Create and manage databases with support for MySQL, PostgreSQL, MongoDB, MariaDB, Redis, and more.
  • Docker Management: Easily deploy and manage Docker containers.
  • Traefik Integration: Automatically integrates with Traefik for routing and load balancing.
  • Real-time Monitoring: Monitor CPU, memory, storage, and network usage.
  • Database Backups: Automate backups with support for multiple storage destinations.

Install Dokploy

Setup A VPS

To get started with Dokploy, you need a Virtual Private Server (VPS). In the post, we go into detail about how you can do that on Vultr.

ssh username@your_vps_ip

Add SWAP

Adding swap space can help improve the performance of your VPS by providing additional virtual memory. Follow these steps to add a 2GB swap file:

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Install Dokploy

Once your VPS is set up and swap space is added, you can install Dokploy using the following command:

curl -sSL https://dokploy.com/install.sh | sh

This command will download and run the Dokploy installation script, setting up Dokploy and its dependencies on your server.

Point Your Domain or Subdomain to Dokploy

To access your Dokploy instance via a custom domain or subdomain, you need to configure your DNS settings:

  1. Log in to your DNS provider: Access the DNS management console of your domain registrar.
  2. Create an A Record: Point your domain or subdomain to the IP address of your VPS.

For example, to point app.yourdomain.com to your VPS:

Type: A
Name: app
Value: your_vps_ip
TTL: 3600

Start Deploying Apps

With Dokploy installed and your domain configured, you can start deploying applications. Dokploy supports a wide range of applications and databases, making it easy to manage your projects from a single platform.

  1. Access Dokploy Dashboard: Open your web browser and navigate to http://your-ip-from-your-vps:3000.
  2. Create an Admin Account: Follow the on-screen instructions to set up your administrative account.
  3. Deploy Applications: Use the Dokploy dashboard to deploy and manage your applications and databases.

Conclusions

Dokploy offers a powerful and flexible solution for developers looking to self-host their applications. By leveraging Docker and Traefik, Dokploy simplifies the deployment process while providing robust features for application and database management. Whether you’re working on personal projects or managing large-scale applications, Dokploy provides the tools you need to streamline your deployment workflow.

You may also like

Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments