-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial with README and the Docker ignore file
Signed-off-by: kfei <[email protected]>
- Loading branch information
0 parents
commit 7b5efee
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git |
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
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`) |