Featured image of post How to build your own VPS server with Docker and Nginx Proxy Manager

How to build your own VPS server with Docker and Nginx Proxy Manager

Initial your VPS server

First, SSH to your server with root user.

1
ssh root@your_server_ip

Add new user for manage infrastructure

1
adduser infadmin

Add new user for manage infrastructure

1
usermod -aG sudo infadmin

Docker setup

Install Docker

1
2
3
4
5
6
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
apt-cache policy docker-ce

Nginx Proxy Manager setup