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

How to change the config file for Riak TS when using Docker
Django Docker-compose machine does not start web server
How should docker-compose jobs discover etcd?
docker compose adding nodes dynamically to nginx frontend
Docker Swarm - dependencies definition
docker-compose volume not mounted
Exposing sentry service in docker-compose file
Yesod and docker-compose logs in development mode
Docker compose to always deploy using latest image
JHipster - Doubts in the development using Microservices Architecture
Gogs + Drone getsockopt: connection refused
Concourse result keeps loading
Docker-compose: AttributeError: 'module' object has no attribute 'ssl'
scaling a service with docker compose
Docker Compose apparently ignores COMPOSE_FILE
Where does Docker install gems on a mac

Categories

HOME
ckan
model-view-controller
domain-driven-design
windows-server-2008
file-upload
nagios
postsharp
nltk
salesforce-lightning
opc-ua
rethinkdb
dcos
google-my-business-api
spring-data-solr
vichuploaderbundle
distinct
email-attachments
derby
bookmarklet
web-parts
aiml
legend-properties
computation-theory
cherrypy
functional-dependencies
policy
nsopenpanel
formtastic
launchd
meteor-accounts
paper-trail-gem
lines
jql
slim-lang
spring-oauth2
kdevelop
outlook-2010
rythm
ngrok
mixed-models
electron-packager
pyexcel
peerjs
gridgain
spring-webflow-2
stanford-nlp-server
beanshell
riemann
enet
senti-wordnet
jtextarea
business-catalyst
blackberry
printer-control-language
addressbook
dimensionality-reduction
universe
access-violation
jira-agile
boost-propertytree
mod
salesforce-service-cloud
firefox-os
jersey-test-framework
biginsights
autoscaling
android-filterable
tooltwist
playn
clearquest
bungeecord
service-broker
uiblureffect
system.io.packaging
react-os
formbuilder
vundle
rda
mdp
netbeans-plugins
mahara
ekevent
code-complete
pechkin
static-class
ftpwebrequest
generator-expression
cryptarithmetic-puzzle
custom-cursor
github-archive
bash4
jmesa
inserthtml
scriptmanager
table-valued-parameters
calendarextender
atmega16

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