Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions 01-basics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 01 Basics

Quick introduction to containerisation, Docker and Docker Compose.

## What is a container?

A container is a software package that includes an application, and everything you need to run the application.

It's a portable way to share code, runtime and environments.

### Example

Imagine you've created a website in Node.js.

To get your website running on a server, the first thing it needs is Node.js itself. Node.js is a **runtime**; it tells the server how to _run_ your application.
13 changes: 12 additions & 1 deletion 01-basics/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
## This is a basic Docker Compose file
## This is a basic Docker Compose file with annotations

## How to read these files
##! This isn't a standard you have to follow, but it's a personal convention of mine.
##! Comment headings are written with a double hash (##) at the beginning of the line.
##! This differentiates them from commented-out code, which is prefixed with a single hash (#).
##! Comment bodies are written with a double hash and exclamation mark (##!) at the beginning of the line.
##! This simply indents the comment and makes it more readable.

## Version of the Docker Compose file
##! This tells Compose what version of the specification you're using.
##! Compose no longer uses this to detect what version your file is, but some people like to include it for backwards compatibility.
version: '3.7'

## Service definitions
##! This is where you define the services you want to run.
##! Each service is made up of one or more containers that runs a specific image.
services:
hello-world:
image: hello-world