UbuntuDockerLet's Encrypt Beginner Free course, 4 parts
Self-hosting 101
From an empty VPS to a live app on your own domain with HTTPS and a safe way to roll back.
For developers who have never run their own server.
- 13 lessons
- 3h 23m total time
- 9 hands-on labs
- 4 diagrams
- 13 quizzes
Course complete
You finished Self-hosting 101
All 13 lessons done on . Share it, print the certificate, or start the next course below.
Levelrail Learn Certificate of completion Completed Self-hosting 101 on Levelrail Learn 13 lessons, 3h 23m of guided practice levelrail.com/learn/courses/self-hosting-101/
What you will be able to do
- Log in to a server safely and lock it down
- Run an app in a container with Docker and Compose
- Point a domain at it and serve it over HTTPS
- Release without downtime and roll back a bad deploy
Syllabus
13 lessons in 4 parts, 3h 23m in total
Part 1
Server basics
5 lessons, 58 min 0/5- What is a VPS (virtual private server)? Up next Done A VPS (virtual private server) is a rented virtual machine with its own operating system, address and root access, running on a provider's hardware. 8 min Beginner Diagram Quiz
- Log in to a server with SSH keys Up next Done An SSH key pair lets you log in to a server by proving you hold a private key, which is safer than a password. 14 min Beginner Lab Quiz
- Create a non-root sudo user Up next Done A non-root sudo user does daily work with limited rights and uses sudo only for admin commands, which limits the damage a mistake or a stolen session can do. 12 min Beginner Lab Quiz
- Set up a firewall with ufw Up next Done A firewall decides which network connections may reach your server; ufw is Ubuntu's simple front end for it. 12 min Beginner Lab Quiz
- Keep an Ubuntu server updated automatically Up next Done Unattended-upgrades installs security updates on Ubuntu automatically, so known vulnerabilities do not wait for you to log in. 12 min Beginner Quiz
Part 2
Docker
3 lessons, 55 min 0/3- Install Docker on Ubuntu Up next Done Docker Engine is installed on Ubuntu by adding Docker's official apt repository and installing the docker-ce packages. 22 min Beginner Lab Quiz
- Run your first Docker container (docker run) Up next Done A container is a running instance of an image; docker run pulls the image if needed and starts the container. 15 min Beginner Lab Quiz
- Docker Compose basics: run web and database with compose.yaml Up next Done Docker Compose runs several containers together from one YAML file that describes the services, ports and volumes. 18 min Beginner Lab Quiz
Part 3
Domains and HTTPS
2 lessons, 38 min 0/2- Point a domain at your server (A record) Up next Done A domain points at a server through a DNS A record that maps the name to the server's IPv4 address. 16 min Beginner Lab Quiz
- HTTPS and Let's Encrypt: get a free certificate Up next Done HTTPS is HTTP over TLS; a certificate proves the server owns the domain, and Let's Encrypt issues them for free through an automated check. 22 min Beginner Lab Diagram Quiz
Part 4
Deploy and operate
3 lessons, 52 min 0/3- What is a reverse proxy? Explained with Caddy and nginx Up next Done A reverse proxy sits in front of your apps, accepts requests from the internet and forwards each one to the right app, handling HTTPS on the way. 16 min Beginner Diagram Quiz
- Zero-downtime deploys explained (health checks and traffic switch) Up next Done A zero-downtime deploy starts the new version next to the old one and moves traffic over only after the new one reports healthy. 18 min Beginner Diagram Quiz
- How to roll back a bad release (Docker and Compose) Up next Done A rollback returns traffic to the previous working release when the new one misbehaves. 18 min Beginner Lab Quiz