ELVIS-Project / cbsmr-patternfinder

Content-based symbolic music retrieval service infrastructure.
MIT License
2 stars 0 forks source link

Implement Docker container autostart #39

Open vigliensoni opened 5 years ago

vigliensoni commented 5 years ago

The Docker container should start the web application after a system boot or app crash.

deepio commented 5 years ago

You can create a supervisor config, this should get you started @DavidGarfinkle

[program:cbsmr]
command=/server/webapps/somestartscript.sh
environment=/server/webapps/env/bin/activate
directory=/server/webapps/
user=cbsmr-user
autostart=true
autorestart=true
DavidGarfinkle commented 5 years ago

added "restart: always" to the docker-compose file