-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
57 lines (47 loc) · 998 Bytes
/
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
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
version: '3.1'
services:
service:
build: .
volumes:
- ./:/var/task
env_file: .env
restart: "${RESTART:-no}"
# DISABLED as it was failing seemingly randomly (on mac)
# uplink port to host
# ports:
# - 8080-8999:8080
#command: >
# bash -ic " \
# pip install -r requirements.txt
# flask run --host 0.0.0.0 --port 8080
# "
tty: true
networks:
- hubgrep
gitea_crawler:
scale: 1
extends: service
command: >
bash -ic " \
pip install -r requirements.txt
flask cli crawl-type gitea
"
gitlab_crawler:
scale: 1
extends: service
command: >
bash -ic " \
pip install -r requirements.txt
flask cli crawl-type gitlab
"
github_crawler:
scale: 2
extends: service
command: >
bash -ic " \
pip install -r requirements.txt
flask cli crawl-type github
"
networks:
hubgrep:
name: hubgrep