forked from OpenAttackDefenseTools/tulip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (73 loc) · 1.66 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
version: "3.2"
services:
mongo:
image: mongo:5
networks:
- internal
restart: always
ports:
- "127.0.0.1:27017:27017"
frontend:
build:
context: frontend
dockerfile: Dockerfile-frontend
image: tulip-frontend:latest
ports:
- "3000:3000"
depends_on:
- mongo
networks:
- internal
environment:
API_SERVER_ENDPOINT: http://api:5000/
api:
build:
context: .
dockerfile: Dockerfile-python
image: tulip-api:latest
ports:
- "127.0.0.1:5000:5000"
depends_on:
- mongo
networks:
- internal
volumes:
- ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro
environment:
TULIP_MONGO: mongo:27017
TULIP_TRAFFIC_DIR: ${TRAFFIC_DIR_DOCKER}
FLAG_REGEX: ${FLAG_REGEX}
TICK_START: ${TICK_START}
TICK_LENGTH: ${TICK_LENGTH}
PYTHONUNBUFFERED: 1
assembler:
build:
context: services/go-importer
dockerfile: Dockerfile-assembler
image: tulip-assembler:latest
depends_on:
- mongo
networks:
- internal
volumes:
- ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro
command: "./assembler -dir ${TRAFFIC_DIR_DOCKER}"
environment:
TULIP_MONGO: ${TULIP_MONGO}
FLAG_REGEX: ${FLAG_REGEX}
enricher:
build:
context: services/go-importer
dockerfile: Dockerfile-enricher
image: tulip-enricher:latest
depends_on:
- mongo
networks:
- internal
volumes:
- ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro
command: "./enricher -eve ${TRAFFIC_DIR_DOCKER}/eve.json"
environment:
TULIP_MONGO: ${TULIP_MONGO}
networks:
internal: