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

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

Categories

HOME
spring-boot
gcc
javafx
locale
dronekit
skypedeveloper
redhawksdr
ubuntu-14.04
opengl-es
aggregation-framework
foreach
clip-path
vsixmanifest
subprocess
apache-httpclient-4.x
select2
kairosdb
captcha
opengrok
powerpivot
draw2d
vala
android-navigation-drawer
rndis
tcpdf
android-wear-2.0
symlink
dynamic-memory-allocation
jms-topic
openoffice-impress
visual-studio-debugging
intersection
sampling
repeat
motherboard
android-databinding
dotnetnuke-module
area
ninja-forms
jvisualvm
google-chrome-storage
easyquery
import.io
pyopenssl
google-cloud-shell
cardview
therubyracer
alfred
settext
netlink
angularfire
usps
alchemy
firefox-os
bluetooth-lowenergy-4.2
clear
jcomponent
sdkman
redquerybuilder
edgar
exchange-server-2007
log4cxx
firewire
euro
cakephp-2.6
vectordrawable
data-representation
conkeror
tigase
lettuce
mongoid4
node-amqp
sygic
gmail-imap
architectural-patterns
microsoft-speech-platform
linqdatasource
motordriver
mysql-connector
scsf
opendir
gmagick
table-valued-parameters
jquery-attributes
pitch-shifting
for-xml
time-management

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