1. save all new passwords to 1Password!
  2. add new linux user Reference: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04
adduser hazadus
# Add new user to sudo group
# When running 'sudo' use THIS USER's password, not root's!
usermod -aG sudo hazadus
  1. setup ufw
ufw app list
ufw allow OpenSSH
ufw enable
ufw status

UFW Essentials: Common Firewall Rules and Commands | DigitalOcean

UFW ( uncomplicated fire wall) is a firewall configuration tool that runs on top of iptables, included by default within Ubuntu distributions.
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands

  1. настройка подключения ssh с ssh-ключами

Основы Docker. Большой практический выпуск

Или: @amatyashov_bot Телеграм канал https://t.
https://www.youtube.com/watch?v=QF4ZF857m44&t=1706s
SSH

How To Install and Use Docker on Ubuntu 22.04 | DigitalOcean

Docker is an application that simplifies the process of managing application processes in containers.
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04

# 1
sudo apt update

# 2
sudo apt install apt-transport-https ca-certificates curl software-properties-common

# 3
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

# 4
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

$ 5..8
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker

How To Install and Use Docker Compose on Ubuntu 22.04 | DigitalOcean

Docker simplifies the process of managing application processes in containers.
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-22-04

  1. install nginx
sudo apt install nginx
sudo ufw allow 'Nginx Full'
sudo ufw allow 'Nginx HTTP'
sudo ufw allow 'Nginx HTTPS'
  1. copy files to remote if needed
scp ./db.sqlite3 hazadus@85.193.89.177:~/projects/django-website/

📂 DevOps | Последнее изменение: 04.05.2024 01:23