generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
129 lines (118 loc) · 2.64 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: "3"
services:
db:
image: postgres:13
env_file:
- docker.env
volumes:
- db_data:/var/lib/postgresql/data/
web:
build: .
command: sh -c "
python manage.py migrate &&
python manage.py collectstatic --no-input --verbosity 0 --clear &&
gunicorn purldb.wsgi:application --bind :8000 --timeout 600 --workers 8"
env_file:
- docker.env
expose:
- 8000
volumes:
- /etc/purldb/:/etc/purldb/
- static:/var/purldb/static/
depends_on:
- db
visitor:
build: .
command: sh -c "
wait-for-it web:8000 -- python manage.py seed &&
python manage.py run_visit --ignore-robots --ignore-throttle"
env_file:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- visit_and_map
depends_on:
- db
- web # Ensure that potential db migrations run first
mapper:
build: .
command: wait-for-it web:8000 -- python manage.py run_map
env_file:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- visit_and_map
depends_on:
- db
- web # Ensure that potential db migrations run first
clearsync:
build: .
command: wait-for-it web:8000 -- clearsync --save-to-db --verbose -n 3
env_file:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- clearsync
depends_on:
- db
- web # Ensure that potential db migrations run first
clearindex:
build: .
command: wait-for-it web:8000 -- python manage.py run_clearindex
profiles:
- clearsync
depends_on:
- db
- web # Ensure that potential db migrations run first
request_scan:
build: .
command: wait-for-it web:8000 -- python manage.py request_scans
env_file:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- scan_queue
depends_on:
- db
- web
process_scan:
build: .
command: wait-for-it web:8000 -- python manage.py process_scans
env_file:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- scan_queue
depends_on:
- db
- web
priority_queue:
build: .
command: wait-for-it web:8000 -- python manage.py priority_queue
env_file:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- priority_queue
depends_on:
- db
- web
nginx:
image: nginx
ports:
- 80:80
- 443:443
volumes:
- ./etc/nginx/conf.d/:/etc/nginx/conf.d/
- static:/var/purldb/static/
depends_on:
- web
volumes:
db_data:
static: