forked from ElevenPaths/thethe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.31 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
version: "3.3"
services:
mongo:
image: mongo
container_name: thethe_mongo
restart: always
env_file: .env
volumes:
- ./mongodb_data/:/data/db
redis:
image: redis
container_name: thethe_redis
restart: always
celery:
build:
context: ./thethe_server
env_file: .env
container_name: thethe_celery
command: /usr/local/bin/celery -A tasks.tasks:celery_app worker --concurrency 1 -l info
volumes:
- ./external/phishtank:/temp/phishtank
- ./external/urlscan:/temp/urlscan
depends_on:
- redis
frontend:
build:
context: ./thethe_frontend
container_name: thethe_frontend
volumes:
- ./external/phishtank:/usr/share/nginx/html/static/phishtank
- ./external/certs:/etc/nginx/certificates
- ./external/urlscan:/usr/share/nginx/html/static/urlscan
ports:
- 80:80
- 443:443
depends_on:
- server
server:
build:
context: ./thethe_server
container_name: thethe_server
env_file: .env
command: >
sh -c "python server/register_plugins.py &&
/usr/local/bin/gunicorn server.main:app -w 4 -t 90 --log-level=info -b 0.0.0.0:8000"
volumes:
- ./external/phishtank:/temp/phishtank
- ./external/urlscan:/temp/urlscan
depends_on:
- mongo
- celery