Skip to content

bellukstudio/setup_vps_shortcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ VPS Setup with Makefile

This repository provides a Makefile to simplify the setup of common server tools like:

  • Docker & Docker Compose
  • Nginx
  • PHP (8.0–8.3)
  • PostgreSQL
  • MySQL
  • phpMyAdmin
  • pgAdmin
  • Node.js & PM2

βš™οΈ Prerequisites

Before running the Makefile, ensure that the make utility is installed on your VPS.

βœ… Install make on Ubuntu/Debian

sudo apt update
sudo apt install -y make

πŸš€ How to Use

  1. Clone this repository or copy the Makefile into your VPS project folder:

    git clone https://your-repo-url.git
    cd your-repo-folder
  2. Run the full setup (all services):

    make all

    This will install and configure the following:

    • Docker (latest) & Docker Compose plugin
    • Nginx
    • PHP 8.0, 8.1, 8.2, and 8.3
    • PostgreSQL
    • pgAdmin 4
    • MySQL Server
    • phpMyAdmin
    • Node.js (LTS 18.x) & PM2
  3. Or run specific setup targets only:

    make docker         # Install Docker and Docker Compose
    make php            # Install PHP 8.0 to 8.3
    make mysql          # Install MySQL Server
    make node           # Install Node.js and PM2
    make nginx          # Install Nginx

πŸ“š Available Targets

Target Description
make all Install all components
make docker Install Docker & Docker Compose
make nginx Install Nginx
make php Install PHP 8.0 - 8.3 with extensions
make pgsql Install PostgreSQL
make pgadmin Install pgAdmin 4
make mysql Install MySQL Server
make phpmyadmin Install phpMyAdmin
make node Install Node.js (LTS 18.x) and PM2

πŸ” Notes

  • After installing Docker, you may need to log out and back in to use Docker as non-root.
  • The Node.js installation uses the official NodeSource 18.x LTS script.
  • PM2 is installed globally via npm.
  • You can customize versions or extensions in the Makefile.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published