docker-compose


version control of docker-compose.yml


My application has 4 docker containers that talk to each other and is specified with a docker-compose.yml file, so I can just do docker-compose up -d from the location where that file is stored and it starts.
I am virtually the end of setting up my CI service to go from commit to the git repository to testing and then building the docker images that I need for my deploy. I now need to sort out how to deploy.
I already have the current version running, and my docker-compose.yml file is configured via environment variables held in a .env file. It is unlikely that it will change between versions, but it might. What will change is the .env file, as that specifies image names and tags that the CI system has just build and which the docker-compose.yml file will use to start the new version of the running system. .env is created on the fly by scripts in the repository and is run by the CI system in its workspace. My deploy step is really just about copying .env and docker-compose.yml into place and then stopping the old set of services and starting the new.
My question is, if I change the .env file or docker-compose.yml under a running version, will docker-compose down properly stop the old running images, so that when I immediately follow it with a docker-compose up -d I swap over to the new images. Is there a better way of handling this situation

Related Links

Docker Compose apparently ignores COMPOSE_FILE
Where does Docker install gems on a mac
What is the difference between docker-machine and docker-compose?
Docker Compose port issue. Cannot launch docker project on localhost
Name an image built from running a docker-compose file
Race conditions after changing names in docker-compose.yml
Docker compose - image not found
How to work out the hostname that compose gives containers?
docker-compose restart container if service is dead
Swarm scheduling not working as expected using filters in compose file
issues in buiding Slate with Docker
Invalid type error in Docker Compose
Django cookiecutter with Docker add pip package
Docker Compose + Swarm + Machine Networking issue
docker-compose build image parameters --force-rm --pull
linking 2 containers through docker compose

Categories

HOME
ide
locale
postgresql-9.3
window.open
blob
spotfire
hex
cryengine
app-store
genexus
wkhtmltopdf
angularjs-ng-repeat
select2
osclass
drush
jinja2
exchange-transport-agents
web-testing
openstack-horizon
web-worker
brightway
polybase
vala
multipart
aws-iot
chartist.js
oracle10g
deployment-descriptor
pydub
cloudformation
git-submodules
pushpad
tikz
imdb
qt-designer
bootcamp
pymunk
respect-validation
kdevelop
area
logan-square
qtwebkit
emacs24
totalview
zedgraph
iban
sqlproj
copy-constructor
blackberry-webworks
mac-app-store
indoor-positioning-system
visual-web-developer
key-value-store
sprockets
gdi
weblogic-maven-plugin
diameter-protocol
audiorecord
angular-i18n
python-rq
sqlxml
calc
commercetools
tvp
gitk
jts
dpkt
android-filterable
wingdb
mri
touch-typing
alpha-beta-pruning
caption
crystal-reports-7
random-access
kss
unityvs
selenium-grid2
pytz
visual-studio-setup-proje
hotlinking
winrun4j
opencobol
lastinsertid
aspnet-compiler
dnsbl
metapost
filedialog
automapper-2
httppostedfilebase
designated-initializer
nbehave
excellibrary
iphone-maps
for-xml
file-icons
software-update

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