From 71d36d8ecfcd48b99f2096ac5d9358816af9e07b Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 3 Jun 2017 15:28:43 +0800 Subject: [PATCH] update motion-arm --- motion-arm/README.md | 13 +++++++------ motion-arm/docker-compose.yml | 2 +- motion-arm/{data => }/motion.conf | 0 3 files changed, 8 insertions(+), 7 deletions(-) rename motion-arm/{data => }/motion.conf (100%) diff --git a/motion-arm/README.md b/motion-arm/README.md index f55e4d6..8003a04 100644 --- a/motion-arm/README.md +++ b/motion-arm/README.md @@ -9,23 +9,24 @@ other words, it can detect motion. ## docker-compose.yml -``` +```yaml motion: - image: vimagick/motion-arm + image: easypi/motion-arm ports: - "8080:8080" - "8081:8081" volumes: -# - ./motion.conf:/etc/motion/motion.conf - - ./motion:/var/lib/motion + - ./motion.conf:/etc/motion/motion.conf + - ./data:/var/lib/motion + - /etc/localtime:/etc/localtime devices: - /dev/video0:/dev/video0 restart: always ``` -You can edit `/etc/motion/motion.conf` to customize motion. +You can edit `motion.conf` to customize motion. -``` +```ini # set image width width 640 diff --git a/motion-arm/docker-compose.yml b/motion-arm/docker-compose.yml index a6f9159..678df4e 100644 --- a/motion-arm/docker-compose.yml +++ b/motion-arm/docker-compose.yml @@ -4,7 +4,7 @@ motion: - "8080:8080" - "8081:8081" volumes: - - ./data/motion.conf:/etc/motion/motion.conf + - ./motion.conf:/etc/motion/motion.conf - ./data:/var/lib/motion - /etc/localtime:/etc/localtime devices: diff --git a/motion-arm/data/motion.conf b/motion-arm/motion.conf similarity index 100% rename from motion-arm/data/motion.conf rename to motion-arm/motion.conf