DockerNGINX
Deploy and operate
Ship an app, watch it, back it up, and undo a bad release.
- 18 lessons
- 5h 20m estimated time
- 2 hands-on labs
- 5 animated diagrams
- 18 quizzes
11 beginner, 7 intermediate. Start at the top or pick a chapter below.
0 of 18 done
Saved in this browser as you finish lessons.
Ship an app
Run a real app on a server with a proxy, config and private services.
01 Up next What is a reverse proxy? Explained with Caddy and nginx 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 04 Up next Environment variables and secrets in Docker (.env, env_file) An environment variable is a named value given to a program at start time, which lets you keep secrets like passwords outside your code and images. 18 min Beginner 13 Up next Deploy an app with Docker Compose on a server Deploying with Docker Compose means putting compose.yaml and a .env file on the server and running docker compose up -d so the services start and stay running. 25 min Beginner 15 Up next What a worker and a cron job are (service types explained) A web service answers requests on a port, a worker runs continuously without one, and a cron job starts on a schedule, does its work and exits. 12 min Beginner 16 Up next Private networking between services: keep internals off the internet Private networking means only the reverse proxy is reachable from the internet, while databases and internal services talk to each other on a network the outside cannot enter. 14 min Intermediate
Release safely
Pipelines, traffic switches and a way back when a release goes wrong.
02 Up next Zero-downtime deploys explained (health checks and traffic switch) 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 03 Up next How to roll back a bad release (Docker and Compose) A rollback returns traffic to the previous working release when the new one misbehaves. 18 min Beginner Lab 08 Up next What is CI/CD? CI/CD is an automated pipeline where continuous integration builds and tests every change and continuous delivery or deployment ships it to your servers. 18 min Beginner Diagram 09 Up next Blue-green vs rolling deploys Blue-green deploys run old and new versions side by side and switch traffic at once, while rolling deploys replace instances a few at a time. 20 min Beginner Diagram 17 Up next Canary releases explained: shipping to a few users first A canary release routes a small share of live traffic to the new version first, and you promote it to everyone only if error rate and latency stay healthy. 14 min Intermediate 18 Up next Feature flags vs deploys: separating release from shipping code A deploy puts new code on your servers, while a feature flag is a runtime switch that decides whether users see the new behavior. 12 min Intermediate
Watch it
Know when it is down, read the logs and keep them from piling up.
06 Up next Monitor uptime simply Uptime monitoring means checking on a schedule that your app answers correctly, and alerting you when it does not. 18 min Beginner 07 Up next Read container logs Container logs are the text a containerized app writes to standard output and standard error, which Docker stores and lets you read. 15 min Beginner Lab 10 Up next Fix 502 Bad Gateway behind a reverse proxy A 502 Bad Gateway means the reverse proxy is running but could not get a usable answer from your app, usually because the app is down or on another port or address. 20 min Intermediate 14 Up next Limit Docker log size so logs do not fill the disk Docker's default json-file log driver keeps logs without a size limit, so you set max-size and max-file to rotate them before they fill the disk. 15 min Intermediate
Back it up
Copies you can trust, proven by restoring them.
05 Up next Backups and the 3-2-1 rule The 3-2-1 rule means keeping three copies of your data, on two kinds of storage, with one copy stored offsite. 20 min Beginner Diagram 11 Up next Back up a Postgres database running in Docker You back up Postgres in Docker by running pg_dump inside the database container and saving the output to a file outside it. 22 min Intermediate 12 Up next Test a backup by restoring it A backup only counts once you have restored it somewhere safe and checked the data, so test restores go into a separate throwaway database. 25 min Intermediate