Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Setting up your Server

Before we start deploying apps, we need to prepare the server itself. This involves updating the system, applying basic security measures, setting up SSH for remote access, and installing Docker as the platform for running applications. Taking care of these essentials first will make everything else more stable and easier to manage.

Housekeeping

Once you have a Linux server, it’s a good idea to do some housekeeping before we start anything else.

Keep repositories and system packages updated

sudo apt-get update && apt upgrade -y

Install some packages you might need for debugging / editing later on

sudo apt-get install -y curl && \
sudo apt-get install -y vim && \
sudo apt-get install -y nano