This repository was archived by the owner on Jun 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (73 loc) · 2.02 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.9'
name: 'gh-keyword-crawler'
services:
gh-keyword-crawler-db:
container_name: gh-keyword-crawler-db
hostname: gh-keyword-crawler-db
image: mongo:6.0.5
volumes:
- data:/data/db
- ./initdb.d/:/docker-entrypoint-initdb.d/
environment:
TZ: UTC
restart: always
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
start_period: 30s
interval: 10s
timeout: 5s
retries: 5
gh-keyword-crawler-commits:
container_name: gh-keyword-crawler-commits
image: gh-keyword-crawler:latest
build:
context: ../
dockerfile: deployment/crawler/Dockerfile
volumes:
- ./logs/commits:/tmp/gh-keyword-crawler
environment:
TZ: UTC
DATABASE_HOST: gh-keyword-crawler-db
GITHUB_TOKEN: ${GITHUB_TOKEN}
command: --target commits chatgpt
depends_on:
gh-keyword-crawler-db:
condition: service_healthy
gh-keyword-crawler-issues:
container_name: gh-keyword-crawler-issues
image: gh-keyword-crawler:latest
build:
context: ../
dockerfile: deployment/crawler/Dockerfile
volumes:
- ./logs/issues:/tmp/gh-keyword-crawler
environment:
TZ: UTC
DATABASE_HOST: gh-keyword-crawler-db
GITHUB_TOKEN: ${GITHUB_TOKEN}
command: --target issues chatgpt
depends_on:
gh-keyword-crawler-db:
condition: service_healthy
gh-keyword-crawler-pull-requests:
container_name: gh-keyword-crawler-pull-requests
image: gh-keyword-crawler:latest
build:
context: ../
dockerfile: deployment/crawler/Dockerfile
volumes:
- ./logs/pull-requests:/tmp/gh-keyword-crawler
environment:
TZ: UTC
DATABASE_HOST: gh-keyword-crawler-db
GITHUB_TOKEN: ${GITHUB_TOKEN}
command: --target pull-requests chatgpt
depends_on:
gh-keyword-crawler-db:
condition: service_healthy
volumes:
data:
name: gh-keyword-crawler-data
networks:
default:
name: gh-keyword-crawler-network