VPS app infrastructure
Description
Infrastructure is key. In this section, you will learn how to create a clean and consistent application infrastructure on your VPS.
All applications are stored under „/srv/apps“. Each application gets its own directory when configuring it, making it easier to manage Docker containers, configuration files, logs, and persistent data.
Keeping applications separated like this makes the VPS easier to maintain, back up, and troubleshoot as the number of applications grows.
We are using the Linux operating system Ubuntu 24.04.
What you’ll learn
Step by step guide
Bash
# Step 1: Create a directory 'apps' in your '/srv' directory.
mkdir -p /srv/apps/
# Example:
# cd /srv
# tree -L3
/srv/apps/
├── nextcloud/
│ ├── data/
│ ├── config/
│ └── docker-compose.yml
├── palworld_server/
│ ├── data/
│ ├── config/
│ └── docker-compose.yml
└── teamspeak_server/
├── data/
├── config/
└── docker-compose.yml