Infrastructure
Course Intermediate Free
Docker & Docker Compose — The course
Images, containers, volumes, networks and Compose: vocabulary, essential commands and good practice.
- 3 guides
- 132 concepts
Guides
Suggested path
- 01. Understand the glossary concepts
- 02. Practise the commands on non-critical data
- 03. Read, annotate then modify Dockerfile and compose.yaml files
Sources and references
Teaching reference: the examples assume a working Docker installation. Do not copy real secrets into the exercises.
Example files
dockerfile
# Exemple didactique : application Node.js
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]
compose
name: demo-docker
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:3000"
environment:
NODE_ENV: production
restart: unless-stopped
ignore
node_modules
.git
.env
.DS_Store
In the same series Step 1 of 2
-
1 Course Docker & Docker Compose — The course You are here
- 2 Lab Docker & Docker Compose labs
In the same category
Course
Infrastructure · Intermediate
Kubernetes — The course
Pods, deployments, services, configuration and storage: orchestrating containers, from theory to kubectl.
Course
Infrastructure · Intermediate
Terraform & Ansible — The course
Describe infrastructure with Terraform and configure it with Ansible: providers, playbooks, roles and idempotence.
Lab
Infrastructure · Intermediate
Docker & Docker Compose labs
Three progressive labs: build, configure then expose a multi-service application with Compose.