Introduction

this is part 23 from the journey it's a long journey(360 day) so go please check previous parts , and if you need to walk in the journey with me please make sure to follow because I may post more than once in 1 Day but surely I will post daily at least one šŸ˜.

And I will cover lot of tools as we move on.


before compose

before docker-compose exist there was a tool called fig , it was an open source tool , after success she made docker decided to integrate it with docker as docker-compose name.


Versioning

There are currently three versions of the Compose file format:

. Version 1, the legacy format. This is specified by omitting a version key at the root of the YAML. because it's legacy so it's not recommended to use it.

. Version 2.x. This is specified with a version: '2' or version: '2.1', etc., entry at the root of the YAML.

. Version 3.x, the latest and recommended version, designed to be cross-compatible between Compose and the Docker Engineā€™s swarm mode. This is specified with a version: '3' or version: '3.1', etc., entry at the root of the YAML.

every version need to be compatible with an docker engine release , this is a table shown it :

Compose file formatDocker Engine
11.9.0+
2.01.10.0+
2.11.12.0+
2.2, 3.0, 3.1, 3.21.13.0+
2.3, 3.3, 3.4, 3.517.06.0+
2.417.12.0+
3.618.02.0+
3.718.06.0+

and every version contain new features so it's good to follow up with there github repo

This post is also available on DEV.