forked from mozilla/http-observatory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.09 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
version: '2'
services:
website:
build: ./httpobs
command: uwsgi --http :57001 --wsgi-file /app/httpobs/website/main.py --processes 8 --callable app --master
depends_on:
- postgres
environment:
- HTTPOBS_BROKER_URL=redis://redis:6379/0
- HTTPOBS_DATABASE_HOST=postgres
- HTTPOBS_DATABASE_PASS=httpobsapipassword
- HTTPOBS_DATABASE_USER=httpobsapi
links:
- postgres
ports:
- "57001:57001"
restart: always
# celery task for scanner
scanner:
build: ./httpobs
command: /app/httpobs/scripts/httpobs-scan-worker
depends_on:
- postgres
- redis
environment:
- HTTPOBS_BROKER_URL=redis://redis:6379/0
- HTTPOBS_DATABASE_HOST=postgres
- HTTPOBS_DATABASE_PASS=httpobsscannerpassword
- HTTPOBS_DATABASE_USER=httpobsscanner
- HTTPOBS_MAX_CONCURRENCY=16
links:
- postgres
- redis
postgres:
build: ./httpobs/database
environment:
- POSTGRES_USER=httpobs
- POSTGRES_PASSWORD=totallyfakepassword
- POSTGRES_DB=http_observatory
redis:
image: redis