-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose-test.yml
120 lines (112 loc) · 2.61 KB
/
docker-compose-test.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: "3.2"
services:
mongo:
image: mongo:5
networks:
- internal
restart: always
ports:
- "27017:27017"
frontend:
build:
context: frontend
dockerfile: Dockerfile-frontend
image: tulip-frontend:latest
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
- mongo
- api
networks:
- internal
environment:
API_SERVER_ENDPOINT: http://api:5000/
api:
build:
context: services/api
dockerfile: Dockerfile-api
image: tulip-api:latest
restart: unless-stopped
depends_on:
- mongo
networks:
- internal
volumes:
- ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro
environment:
TULIP_MONGO: ${TULIP_MONGO}
TULIP_TRAFFIC_DIR: ${TRAFFIC_DIR_DOCKER}
FLAG_REGEX: ${FLAG_REGEX}
TICK_START: ${TICK_START}
TICK_LENGTH: ${TICK_LENGTH}
VM_IP: ${VM_IP}
# Only for testing
flagidendpoint:
restart: always
build:
context: services/go-importer/test_data
image: flagid-endpoint:latest
depends_on:
- mongo
networks:
- internal
ports:
- "127.0.0.1:8000:8000"
flagids:
restart: on-failure
build:
context: services/flagids
image: tulip-flagids:latest
depends_on:
- mongo
- flagidendpoint
networks:
- internal
environment:
TULIP_MONGO: ${TULIP_MONGO}
TICK_START: ${TICK_START}
TICK_LENGTH: ${TICK_LENGTH}
FLAGID_SCRAPE: ${FLAGID_SCRAPE}
TEAM_ID: ${TEAM_ID}
FLAGID_ENDPOINT: ${FLAGID_ENDPOINT}
assembler:
build:
context: services/go-importer
dockerfile: Dockerfile-assembler
image: tulip-assembler:latest
restart: unless-stopped
depends_on:
- mongo
networks:
- internal
volumes:
- ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro
command: "./assembler -dir ${TRAFFIC_DIR_DOCKER}"
environment:
DELAY: 5
TULIP_MONGO: ${TULIP_MONGO}
FLAG_REGEX: ${FLAG_REGEX}
TICK_LENGTH: ${TICK_LENGTH}
FLAGID_SCAN: ${FLAGID_SCAN}
FLAG_LIFETIME: ${FLAG_LIFETIME}
PCAP_OVER_IP: ${PCAP_OVER_IP}
extra_hosts:
- "host.docker.internal:host-gateway"
enricher:
build:
context: services/go-importer
dockerfile: Dockerfile-enricher
image: tulip-enricher:latest
restart: unless-stopped
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: