-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
29 lines (28 loc) · 917 Bytes
/
docker-compose.yml
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
28
29
services:
selenium-chrome:
image: selenium/standalone-chrome
container_name: selenium-chrome
ports:
- "4444:4444"
restart: always
pickmypostcode-checker:
image: jonathanlangton1/pickmypostcode-auto-win-checker:main
container_name: pickmypostcode-checker
environment:
- SELENIUM_URL=http://selenium-chrome:4444/wd/hub
# Pickmypostcode login details
- YOUR_POSTCODE=
- PMP_EMAIL=
# Gmail SMTP account used to send emails from (https://knowledge.workspace.google.com/kb/how-to-create-app-passwords-000009237)
- EMAIL_ADDRESS=
- EMAIL_PASSWORD=
# This email will receive notifications if you have won
- NOTIFICATION_EMAIL_ADDRESS=
volumes:
# Persist past checks log file
- ./pickmypostcode_logs:/app/logs
depends_on:
- selenium-chrome
working_dir: /app
command: cron -f
restart: on-failure:3