docker-compose basics

Getting started with Docker Compose NOTE: This isn’t a Docker tutorial. It assumes you to have a basic knowledge of Docker and the problems it solves. Docker Compose is a tool for defining and managing applications which consist of multiple Docker containers. To begin with, let’s create some working directories; mkdir docker_compose_basics cd docker_compose_basics mkdir api web Before we get started on the Docker stuff, we will create two simple applications; an API and a web server....

July 14, 2021 Â· 6 min Â· Me

docker cheatsheet

Docker Cheatsheet Basics Dockerfile A text file that contains all commands, in order, needed to build a given image. A Dockerfile adheres to a specific format and set of instructions which you can find at Dockerfile reference. You can also find common Best Practices on the official website. FROMpython:3.8-alpineRUN mkdir /appADD . /appWORKDIR/appRUN pip install -r requirements.txtCMD ["python", "app.py"]Multi-stage builds With multi-stage builds, you use multiple FROM statements in your Dockerfile....

June 16, 2021 Â· 3 min Â· Me