When my Ubuntu Server starts it goes to a process where it mounts my Amazon Cloud Drive to a folder. I do this through crontab.
I’ve set my 9 containers to always restart. But I noticed the containers are being started before or during the mounting process. To prevent that I thought I’d change
on-failure and change my crontab to:
@reboot /home/ubuntu/bin/mount.remote && cd /home/ubuntu/compose && sudo /usr/local/bin/docker-compose up -d
But I doubt this is best practice. Are there any tips to improve this? Does Docker Compose have something to help me out?