-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.52 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.9"
services:
alpine-chrome:
image: "zenika/alpine-chrome:with-selenoid"
ports:
- "4444:4444"
healthcheck:
test: curl --fail http://localhost:4444 || exit 1
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
networks:
chrome-network:
ipv4_address: 172.28.1.2
cap_add:
- SYS_ADMIN
shm_size: 2gb
volumes:
- "diagnostyka_downloads:/diagnostyka_downloads"
diagnostyka-scraper:
build:
context: .
dockerfile: Dockerfile-without-chromedriver
image: "diagnostyka-scraper:latest"
environment:
- "CHROME_DRIVER_URL=http://172.28.1.2:4444/wd/hub"
- "DIAGNOSTYKA_USER_ID=<YOUR_LOGIN>"
- "DIAGNOSTYKA_USER_PASSWORD=<YOUR_PASSWORD>"
- "GOOGLE_DRIVE_FOLDER_ID=<YOUR_GOOGLE_DRIVE_FOLDER_ID>"
- "PRIVATE_KEY_FROM_P12_FILE_PATH=/credentials.p12"
- "SERVICE_ACCOUNT_ID=<YOUR_SERVICE_ACCOUNT_ID>@<YOUR_SERVICE_ACCOUNT_ID>.iam.gserviceaccount.com"
- "SHARED_DOWNLOADS_FOLDER=/diagnostyka_downloads"
volumes:
- "./<YOUR_CREDENTIALS_FILE_NAME>.p12:/credentials.p12"
- "diagnostyka_downloads:/diagnostyka_downloads"
restart: on-failure
depends_on:
- "alpine-chrome"
links:
- "alpine-chrome"
networks:
- chrome-network
networks:
chrome-network:
driver: bridge
enable_ipv6: false
ipam:
driver: default
config:
- subnet: 172.28.1.0/24
gateway: 172.28.1.1
volumes:
diagnostyka_downloads: