docker-compose


How to run docker-compose up -d at system start up?


To let the containers autostart at startup point, I tried to add the command cd directory_has_dockercomposeyml && docker-compose up -d in /etc/rc.local. but then after i reboot the machine, the containers not work.
How run docker-compose up -d at system start up?
Solved the problem.
crontab -e
#reboot (sleep 30s ; cd directory_has_dockercomposeyml ; /usr/local/bin/docker-compose up -d )&

Related Links

scaling a service with docker compose
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

Categories

HOME
spring-boot
drupal
azure-documentdb
kendo-ui
compression
postsharp
crm
esxi
comments
android-webview
opengrok
popup
ringcentral
geography
views
sonarlint
formulas
serenity-js
opengraph
windowserror
sasl
multiple-inheritance
proof-general
xlib
schedule
login-required
blockly
scene7
circle
android-geofence
ponylang
perf
libconfig
linkurious
ssdp
mixed-models
uitextview
wufoo
gradlew
togglebutton
text-formatting
nao-robot
cloudconvert
ear
kendo-scheduler
jtextarea
disassembly
copy-constructor
disconnect
weblogic-maven-plugin
php-java-bridge
avaudiorecorder
usps
sqldataadapter
askbot
sdkman
webservices-client
play-json
database-project
transport
updating
tokudb
playn
gcc-warning
strcpy
mathics
jsonmodel
information-hiding
oxygenxml
im4java
debuggervisualizer
email-headers
html5-filesystem
randomaccessfile
friendly-id
ie-developer-tools
objectdatasource
wpa
wordbreaker
nsautoreleasepool
gwt2
pageload
architectural-patterns
ftpwebrequest
mmo
vline
moonscript
screensharing
inflate
report-viewer2010
diazo
towerjs
scriptmanager
mscorlib
log-shipping
subdirectories
pitch-shifting
versions
managed-code
ironpython-studio

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