docker-compose


Defining project name inside docker-compose configuration


Can you actually define the project name inside the compose configuration file itself, rather than as an environment variable or command-line flag?
I suspect it may avoid some trouble in some scenarios.
I guess overriding that name might still be possible by env or flag.
Not yet (as of version 1.6.2), however, it is being discussed https://github.com/docker/compose/issues/745
You can (Just in one of the branches for now).
From the documentation:
The default project name is the basename of the project directory. But you can set it in docker-compose.yml, to make sure that all of your team members will use the same project name by default.
If you set project name by using the -p command line option or the COMPOSE_PROJECT_NAME environment variable, then it will be overriden with given value.

Related Links

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

Categories

HOME
airflow
ckan
google-cloud-pubsub
intellij-idea
gsm
jenkins-pipeline
ldap
blob
conceptual
scapy
restheart
ethereum
olap
point-of-sale
desktop-application
captcha
jinja2
web-worker
google-street-view
passbook
turn.js
multipart
javaagents
opengraph
datastax-enterprise
mongoose-im
ipython-parallel
paper-trail-gem
undo
selenium3
exacttarget
dropdownbox
cache-control
flex3
respect-validation
kdevelop
scip
console.readline
file-descriptor
aura-framework
bzip2
contenteditable
libzip
python-venv
npoco
serverless-architecture
hierarchical-clustering
automapper-4
yank
openxava
multivalue
audio-fingerprinting
petapoco
nsalert
rmq
wicketstuff
gevent
mavlink
universe
hdr
scriptengine
syslog4j
vitamio
nsoperationqueue
nugetgallery
firefox-os
bluetooth-lowenergy-4.2
wonderware
github-for-mac
bioconductor
maven-antrun-plugin
polarion
eggplant
ultraedit
skview
accpac
dojox.grid
xmlserializer
nsmutableurlrequest
fscanf
time-frequency
drawable
angular-file-upload
ant-contrib
android-relativelayout
satisfiability
zend-db-table
objectdatasource
stringstream
junction-table
ftpwebrequest
microsoft-speech-platform
feincms
netzke
jqzoom
capitalization
jqtransform
javah
oaw
pixel-bender
zend-acl
wtsapi32
jgrowl
tracd

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