Skip to content

Commit

Permalink
Initial with README and the Docker ignore file
Browse files Browse the repository at this point in the history
Signed-off-by: kfei <[email protected]>
  • Loading branch information
kfei committed Nov 29, 2014
0 parents commit 7b5efee
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# motion-detector

A surveillance solution base on
[Motion](http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) and Docker.

## Quick Start

Clone this project then `cd` into it:
```bash
git clone https://github.com/kfei/motion-detector
cd motion-detector
```

Copy the sample config files and change everything you need:
```bash
cp config/motion.conf.sample config/motion.conf
cp config/ssmtp.conf.sample config/ssmtp.conf
cp config/revaliases.sample config/revaliases
```

Then build your own motion-detector Docker image:
```bash
docker build -t motion-detector .
```

Now run the container as well as feed it with some config variables:
```bash
docker run -it --privileged --rm -P \
-e MAILTO="[email protected]" \
-v /storage/motion-detector-vol:/var/lib/motion \
motion-detector
```
(Note that the `privileged` flag is for accessing `/dev/video0`)

0 comments on commit 7b5efee

Please sign in to comment.