Created
May 14, 2018 16:39
-
-
Save TonsOfFun/2e2adc0f5e0c9fae554eec81750fc8ab to your computer and use it in GitHub Desktop.
Crypto Smart Camera POC: Docker Compose
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ☝️