Created
January 30, 2016 16:49
-
-
Save jice-lavocat/ce1b2ad78b0e7e1f0684 to your computer and use it in GitHub Desktop.
Upstart Docker-Compose on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File is saved under /etc/init/start_containers.conf | |
# After file is modified, update config with : $ initctl reload-configuration | |
description "Start containers (see http://askubuntu.com/a/22105 and http://askubuntu.com/questions/612928/how-to-run-docker-compose-at-bootup)" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
# if you want it to automatically restart if it crashes, leave the next line in | |
# respawn # might cause over charge | |
script | |
docker-compose -f /home/jice/web/docker-compose.yml up -d | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
initctl restart will not work here