forked from flathunters/flathunter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
27 lines (26 loc) · 1.27 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: '3'
services:
app:
build: .
platform: linux/amd64 # For M1 to install google-chrome-stable; However still crashes on M1 when launching chrome (selenium.common.exceptions.WebDriverException: Message: unknown error: unable to discover open window in chrome (Session info: headless chrome=109.0.5414.119))
command: python flathunt.py
restart: always
environment:
# - FLATHUNTER_TARGET_URLS=https://www.immobilienscout24.de/Suche/...;https://www.wg-gesucht.de/...
# - FLATHUNTER_DATABASE_LOCATION=
# - FLATHUNTER_GOOGLE_CLOUD_PROJECT_ID=
# - FLATHUNTER_VERBOSE_LOG=
- FLATHUNTER_LOOP_PERIOD_SECONDS=600
# - FLATHUNTER_MESSAGE_FORMAT=
# - FLATHUNTER_NOTIFIERS=telegram,mattermost,slack...
# - FLATHUNTER_TELEGRAM_BOT_TOKEN=160165XXXXXXX:...
# - FLATHUNTER_TELEGRAM_RECEIVER_IDS=12345...
# - FLATHUNTER_MATTERMOST_WEBHOOK_URL=
# - FLATHUNTER_SLACK_WEBHOOK_URL=
# - FLATHUNTER_WEBSITE_SESSION_KEY=
# - FLATHUNTER_WEBSITE_DOMAIN=
# - FLATHUNTER_2CAPTCHA_KEY=
# - FLATHUNTER_IMAGETYPERZ_TOKEN=
# - FLATHUNTER_HEADLESS_BROWSER=yes
volumes:
- ./:/usr/src/app # not ideal, but the only way to incorporate the database (processed_ids.db), which is currently created at runtime