Skip to content

Instantly share code, notes, and snippets.

@joaquimds
joaquimds / docker.md
Last active February 29, 2024 15:19
Docker Intro

Docker Intro

  • An image is a set of instructions, and the environment you get after running the instructions.
  • A container is a command running in an image.

Analogy: an image is the Ikea instructions for building shelves, and the assembled shelves, before you start using them.

A container is the shelves in-use, with books on them etc.

GraphQL Intro

3 Core Concepts:

  • Types: What kinds of things are returned by the API?
  • Schema: How can the API be queried, and how are the types related to each other?
  • Requests: What does a GraphQL API request look like?
  • Resolvers: How does GraphQL get the data from the data source?

Types

DNS

  • Domain Name System
  • Basically just a bunch of tables maintained by Internet Service Providers around the world, mapping domains (e.g. google.com) with IP addresses
  • The core type of DNS record is an A record. This maps a domain name to an IP address:
A example.com 93.184.216.34
server {
gzip on;
root /var/www/council-assets/build;
index index.html;
server_name council-sell-off.thebureauinvestigates.com; # managed by Certbot