diff --git a/urlwatch/Dockerfile b/urlwatch/Dockerfile index ecd9810..23ebaf9 100644 --- a/urlwatch/Dockerfile +++ b/urlwatch/Dockerfile @@ -14,7 +14,8 @@ RUN apk add -U ca-certificates \ make \ python-dev \ py-pip \ - && pip install keyring \ + && pip install futures \ + keyring \ lxml \ urlwatch \ pyyaml \ diff --git a/urlwatch/README.md b/urlwatch/README.md index b244abd..13109d4 100644 --- a/urlwatch/README.md +++ b/urlwatch/README.md @@ -1,7 +1,16 @@ urlwatch ======== -[urlwatch][1] - a tool for monitoring webpages for updates +[urlwatch][1] is a tool for monitoring webpages for updates. + +``` +cron: triggered every 15 minutes + -> make: generate urls.txt from urls.yml + -> urlwatch: fetch webpages + -> hooks.py: extract info + -> email: send via smtp + -> (^_^) +``` ## docker-compose.yml @@ -35,8 +44,7 @@ setup: python -c 'import keyring; keyring.set_password("$(SMTP)", "$(FROM)", "$(PASS)")' ``` -> Please change `STMP`/`FROM`/`PASS`/`TO` - +> Please change `STMP`/`FROM`/`PASS`/`TO` to correct value. ## urls.yml diff --git a/urlwatch/docker-compose.yml b/urlwatch/docker-compose.yml new file mode 100644 index 0000000..0da7a56 --- /dev/null +++ b/urlwatch/docker-compose.yml @@ -0,0 +1,6 @@ +urlwatch: + image: vimagick/urlwatch + volumes: + - urlwatch/Makefile:/root/.urlwatch/Makefile + - urlwatch/urls.yml:/root/.urlwatch/urls.yml + restart: always