-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathdocker-compose-dev.yml
executable file
·83 lines (78 loc) · 1.93 KB
/
docker-compose-dev.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
services:
service:
build:
context: .
dockerfile: ./analyzer-Dockerfile
command: bash -c "python3 -m analyzer.cli --silent --docker"
depends_on:
- mongodb
- redis
environment:
- analyzer_env=docker
networks:
- backend
volumes:
- ./folders/malware:/analyzer/folders/malware
- ./folders/logs:/analyzer/folders/logs
- ./folders/output:/analyzer/folders/output
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
website:
build:
context: .
dockerfile: ./webinterface-Dockerfile
command: bash -c "/usr/local/bin/gunicorn --chdir analyzer --worker-class=gevent --worker-connections=1000 --workers=1 -b :8000 web:APP"
ports:
- "8000:8000"
depends_on:
- mongodb
- service
- redis
environment:
- analyzer_env=docker
networks:
- frontend
- backend
volumes:
- ./folders/malware:/analyzer/folders/malware
- ./folders/logs:/analyzer/folders/logs
- ./folders/output:/analyzer/folders/output
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
healthcheck:
disable: true
mongodb:
build:
context: .
dockerfile: ./mongodb-Dockerfile
ports:
- '27017:27017'
networks:
- backend
- frontend
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
MONGO_INITDB_ROOT_USERNAME: changeme_9620eh26sfvka017fx
MONGO_INITDB_ROOT_PASSWORD: changeme_0cx821ncf7qg17ahx3
command: mongod --auth
logging:
driver: none
redis:
image: redis
container_name: analyzer_redis
ports:
- '6379:6379'
networks:
- backend
command: redis-server --requirepass changeme_26c845sfwbfi927234
logging:
driver: none
volumes:
malware:
networks:
frontend:
internal: false
backend:
internal: true