docker-compose


What is the version directive for?


I've read through the docs at: https://docs.docker.com/compose/compose-file/ and find no reference to a directive that seems to be present in all sample docker-compose.yml files I've seen, namely the version
is that meant to indicate the version of docker-compose to be used? or is it an arbitrary version number I can assign?
the version in the docker-compose file is describing the Compose file formats and is linked to specific docker engine versions.
More info can be found just couple links lower from what you found:
https://docs.docker.com/compose/compose-file/compose-versioning/
You cannot specify whatever you want, the current options are: 3.1, 3.0, 2.1, 2.0, 1.0.
Each version is also add or deprecating options and enables new docker engine capabilities to be used like swarm in v3.

Related Links

linking 2 containers through docker compose
Files created by manage.py commands not chown'd from root user
Is it possible to create an intermediate image within docker-compose?
docker-compose service listen on specified interface
Does Docker-Compose allow overwriting of ports when using extends?
Jhipster Docker-compose conflict
Build multiple images with Docker Compose?
JHipster Cassandra Docker Build
Defining project name inside docker-compose configuration
Docker-compose named mounted volume
cannot ping linked docker container service
How to do variable substitution in env_file?
How to create stack in tutum with docker-compose.yml file?
ecs-cli docker compose version
dynamic link update in docker-compose
How to start arbitrarily many identical containers with docker-compose?

Categories

HOME
pact
kendo-ui-angular2
stanford-nlp
alasql
salesforce
skypedeveloper
redhawksdr
singleton
perl6
comments
browserstack
sitemap
ephesoft
openbsd
select2
kairosdb
facebook-sharer
suitecrm
responsive
draw2d
react-jsx
single-page-application
computation-theory
jq
google-drive-android-api
ng-tags-input
suitescript
traveling-salesman
checkmarx
cqlsh
hierarchy
jcr
visual-prolog
luhn
eclipse-jdt
javax
cache-control
gstreamer-1.0
lex
instances
lfe
tapply
firefox-developer-edition
import.io
ajv
stringbuilder
symantec
jira-agile
vga
django-celery
videoview
google-finance-api
skscene
updating
windows-phone-8-emulator
dnvm
vectordrawable
data-representation
esri-arc-engine
diffmerge
conditional-comments
breeze-sharp
selenium-grid2
atg-dynamo
cs193p
yandex-api
acrofields
lastinsertid
code-complete
listpicker
nsautoreleasepool
gmail-imap
nx
brew
linear-interpolation
mail-gem
android-memory
motorola-droid
jqzoom
umfpack
xpolog
opendir
meego-harmattan
datarelation
nstoolbar
helios
lts
rpxnow
data-formats
manuals
script-tag
zend-acl
disk-based

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App