docker-compose


should I do with docker-compose? when I have 2 project


I'm having 2 project
A {mysql, redis, rails}
B {mysql, redis, rails}
should I do
create a docker-compose.yml file with a MySql, a redis, rails1, rails2
or
create 2 docker-compose.yml file with each is a Mysql, a Redis, rails
help me!
You could create a docker-compose.yml file with your common services. And then create two project specific composer files which inherits the root composer file.
docker-compose.project.template.yml
services:
mysql:
....
docker.compose.project.a.yml
services:
mysql:
extends:
file: docker-compose.project.template.yml
service: mysql
...
Another option is to create a general project docker-compose.yml file and use environment variables to customize the behaviour.

Related Links

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
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?

Categories

HOME
http
teradata
typo3
casting
python-requests
android-ndk
ibm
watson-iot
browser-cache
comments
ephesoft
annyang
cracking
ndepend
vichuploaderbundle
element
opendaylight
ofbiz
legend-properties
opengraph
email-client
ds-5
openoffice-impress
ibm-bpm
qt-designer
javax
area
aspose.pdf
file-conversion
julia-jump
aura-framework
codepen
niagara-ax
encoder
ack
anonymous-function
spring-data-commons
hdpi
emacs24
flask-socketio
monaca
dna-sequence
htop
android-vectordrawable
typewriter
rmq
nls
vertex-shader
android-music-player
php-java-bridge
calc
abstract
wonderware
gnu-sort
updating
dnvm
consul-template
glog
teamwork
sicstus-prolog
maven-archetype
jsonschema2pojo
illegalargumentexception
pnunit
parallel-port
pyalgotrade
debuggervisualizer
sigma-grid-control
rssi
power-management
pthreads-win32
.net-reflector
8-puzzle
pechkin
octokit
static-class
listpicker
record-locking
cocotron
ftpwebrequest
orchestration
diazo
wxperl
mvcmailer
idtabs
isgl3d
sessiontracking
meego-harmattan
arraycollection
nstoolbar
table-valued-parameters
newspeak
hp-trim
time-management
ffdshow

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