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

If I upgrade an image in docker-compose, will its volumes be lost?
How to solve this docker-compose upgrading error?
Fabric Network - what happens when a downed peer connects back to the network?
Docker-compose and load balancing
Run arguments in Docker Compose
Docker compose file config
Systemd “No such file or directory” itself during “docker-compose up”
Docker compose yml static IP addressing
compose extend file results in a validation error
hubot rocketchat adapter does not work
Docker compose lables constraint:node not work
is it possible to generate a random mysql password with dockercompose
Networking Docker Compose
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?

Categories

HOME
airflow
ssms
botframework
mobile
locale
process
webvr
aix
android-ndk
file-upload
dynamic
postsharp
glympse
psexec
osx-yosemite
promotions
ephesoft
subprocess
wkhtmltopdf
aspectj
desktop-application
opendaylight
web-worker
nsoperation
xna
coccinelle
lotusscript
struts
priority-queue
ballerinalang
setup-project
sqldependency
login-required
spring-oauth2
imdb
microstrategy
n1ql
certbot
android-geofence
multi-user
libconfig
fisheye
azure-web-roles
compiled-query
irr
android-doze-and-standby
jks
jsfl
emacs24
r-commander
blitz3d
cedar-bdd
toggleclass
joystick
require-handlebars
recurring
bytearray
database-administration
google-app-engine-php
dynamics-nav
android-contentresolver
skscene
exchange-server-2007
cloud-storage
avrcp
joomla3.3
system.diagnostics
minko
skview
data-quality-services
mathics
attiny
crystal-reports-7
kss
nspopupbutton
yandex-api
kernel-density
windows-phone-store
xml-validation
myrrix
mobile-robots
extensibility
android-library
kademlia
nsautoreleasepool
gwt2
pageload
pymel
django-tinymce
esi
teamsystem
netzke
datejs
automapper-2
symfony-1.2
excellibrary
jquery-attributes
silverlight-2.0
rpxnow
datadude
ihtmldocument2
scala-designer

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