1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

update motion-arm

This commit is contained in:
kev 2017-06-03 15:28:43 +08:00
parent ad3f8a5d24
commit 71d36d8ecf
3 changed files with 8 additions and 7 deletions

@ -9,23 +9,24 @@ other words, it can detect motion.
## docker-compose.yml ## docker-compose.yml
``` ```yaml
motion: motion:
image: vimagick/motion-arm image: easypi/motion-arm
ports: ports:
- "8080:8080" - "8080:8080"
- "8081:8081" - "8081:8081"
volumes: volumes:
# - ./motion.conf:/etc/motion/motion.conf - ./motion.conf:/etc/motion/motion.conf
- ./motion:/var/lib/motion - ./data:/var/lib/motion
- /etc/localtime:/etc/localtime
devices: devices:
- /dev/video0:/dev/video0 - /dev/video0:/dev/video0
restart: always restart: always
``` ```
You can edit `/etc/motion/motion.conf` to customize motion. You can edit `motion.conf` to customize motion.
``` ```ini
# set image width # set image width
width 640 width 640

@ -4,7 +4,7 @@ motion:
- "8080:8080" - "8080:8080"
- "8081:8081" - "8081:8081"
volumes: volumes:
- ./data/motion.conf:/etc/motion/motion.conf - ./motion.conf:/etc/motion/motion.conf
- ./data:/var/lib/motion - ./data:/var/lib/motion
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
devices: devices: