-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
57 lines (56 loc) · 1.37 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
version: '3'
services:
db:
image: mysql:8.0.29
command: mysqld --default-authentication-plugin=mysql_native_password --skip-mysqlx
volumes:
- db_data:/var/lib/docker/mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: b5vXcqzUtn4suyS
MYSQL_DATABASE: threatkb
MYSQL_USER: threatkb
MYSQL_PASSWORD: b5vXcqzUtn4suyS
redis:
depends_on:
- db
image: redis:latest
ports:
- 6379:6379
restart: always
threatkb:
depends_on:
- db
image: threatkb:latest
ports:
- 5000:5000
restart: always
environment:
THREATKB_USER: [email protected]
THREATKB_PASS: b5vXcqzUtn4suyS
MYSQL_ROOT_PASSWORD: b5vXcqzUtn4suyS
SQL_DATABASE: threatkb
SQL_USERNAME: threatkb
SQL_PASSWORD: b5vXcqzUtn4suyS
SQL_PORT: 3306
SQL_HOST: db
SQL_PROTOCOL: mysql
LISTEN_ON: 0.0.0.0
LISTEN_PORT: 5000
REDIS_CACHE_URL: redis://localhost:6379/0
threatkb_agent:
depends_on:
- db
image: threatkb:latest
restart: always
environment:
RUN_AGENT: 1
C_FORCE_ROOT: true
REDIS_ACCEPT_CONTENT: '["json"]'
REDIS_RESULT_SERIALIZER: json
REDIS_TASK_SERIALIZER: json
REDIS_BROKER_URL: redis://redis:6379/0
volumes:
db_data: