Skip to content

Instantly share code, notes, and snippets.

@TonsOfFun
Created May 14, 2018 16:39
Show Gist options
  • Save TonsOfFun/2e2adc0f5e0c9fae554eec81750fc8ab to your computer and use it in GitHub Desktop.
Save TonsOfFun/2e2adc0f5e0c9fae554eec81750fc8ab to your computer and use it in GitHub Desktop.
Crypto Smart Camera POC: Docker Compose
version: '3'
services:
miner:
image: cryptotrust/rpi-cpuminer-multi
command: "cpuminer -u ${EMAIL} -a ${ALGO} -o stratum+tcp://${URL}:${PORT} -t ${THREADS}"
camera:
image: ricklon/rpi-opencv
command: python motion_capture.py
volumes:
- .:/greenthumb-rails
@TonsOfFun
Copy link
Author

This can be utilized to start the services on reboot using a simple cronjob.

sudo crontab -e -u pi
@reboot cd /home/pi/project && docker-compose up >> /home/pi/project.log 2>&1

Something like that ☝️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment