-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.test.yml
172 lines (165 loc) · 4.37 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
version: '2.0'
services:
unfetter-discover-openssl:
image: svagi/openssl:latest
container_name: unfetter-discover-openssl
entrypoint:
- openssl
- req
- -subj
- /CN=localhost/DC=localhost/DC=localdomain
- -new
- -newkey
- rsa:2048
- -days
- "365"
- -nodes
- -x509
- -keyout
- /tmp/certs/server.key
- -out
- /tmp/certs/server.crt
volumes:
- ./certs/:/tmp/certs
unfetter-ctf-ingest:
build: unfetter-ctf-ingest
container_name: unfetter-ctf-ingest
image: unfetter-ctf-ingest
volumes:
- ./unfetter-ctf-ingest/test-data:/tmp/test-data
environment:
- API_PROTOCOL=https
- API_HOST=apihost
- API_PORT=3000
- API_CONTEXT=/
- MONGO_REPOSITORY=repository
- MONGO_PORT=27017
- MONGO_DBNAME=stix
ports:
- "3001:10010"
entrypoint:
- npm
- start
depends_on:
- cti-stix-store-repository
- unfetter-discover-api
links:
- cti-stix-store-repository:repository
- unfetter-discover-api:apihost
unfetter-socket-server:
build: unfetter-socket-server
container_name: unfetter-socket-server
image: unfetter-socket-server
volumes:
- .unfetter-socket-server/src:/usr/share/unfetter-socket-server/src
- ./certs/:/etc/pki/tls/certs
environment:
- MONGO_REPOSITORY=repository
- MONGO_PORT=27017
- MONGO_DBNAME=stix
ports:
- "13333:3333"
entrypoint:
- npm
- run
- serve
depends_on:
- cti-stix-store-repository
links:
- cti-stix-store-repository:repository
cti-stix-store-repository:
image: mongo:3.4.1
container_name: cti-stix-store-repository
ports:
- "27018:27017"
volumes:
- ./data/db:/data/db
unfetter-discover-processor:
build: unfetter-discover-processor
container_name: unfetter-discover-processor
image: unfetter-discover-processor
volumes:
- ./travis-sample-data/examples:/tmp/examples
- ./unfetter-discover-processor/processor.js:/usr/src/app/processor.js
environment:
- MONGO_HOST=repository
- HTTPS_PROXY_URL=
entrypoint:
- node
- processor.js
- --stix
- /tmp/examples/unfetter-stix/stix-lite.json
depends_on:
- cti-stix-store-repository
links:
- cti-stix-store-repository:repository
unfetter-threat-ingest:
build: unfetter-threat-ingest
container_name: unfetter-threat-ingest
image: unfetter/unfetter-threat-ingest
ports:
- "5010:5010"
environment:
# - THREAT_INGEST_PORT=5010
- MONGO_HOST=repository
- MONGO_PORT=27017
# - MONGO_DB=stix
# - SERVER_SOCKET_HOST=localhost
# - SERVER_SOCKET_PORT=3333
entrypoint:
- npm
- run
- start
# - --debug
# - --cert-dir=/etc/pki/tls/certs
# - --server-key=server.key
# - --server-cert=server.crt
# - --fire-notifications=false
depends_on:
- cti-stix-store-repository
- unfetter-socket-server
links:
- cti-stix-store-repository:repository
volumes:
- ./certs/:/etc/pki/tls/certs
unfetter-discover-api:
build: unfetter-discover-api
container_name: unfetter-discover-api
image: unfetter-discover-api
depends_on:
- unfetter-discover-openssl
- cti-stix-store-repository
- unfetter-socket-server
links:
- cti-stix-store-repository:repository
- unfetter-socket-server:unfetter-socket-server
ports:
- "49360:3000"
- "5555:5555"
volumes:
- ./certs/:/etc/pki/tls/certs
- ./unfetter-discover-api/test:/usr/share/unfetter-discover-api/test
- ./unfetter-discover-api/api:/usr/share/unfetter-discover-api/api
- ./unfetter-discover-api/app.js:/usr/share/unfetter-discover-api/app.js
environment:
- CTF_PARSE_HOST=http://unfetter-ctf-ingest
- PATTERN_HANDLER_DOMAIN = unfetter-pattern-handler
- PATTERN_HANDLER_PORT = 5000
- SOCKET_SERVER_DOMAIN = unfetter-socket-server
- SOCKET_SERVER_PORT = 3333
- STIX_API_PROTOCOL=http
- STIX_API_HOST=cti-stix-store
- STIX_API_PORT=3000
- STIX_API_PATH=cti-stix-store-api
- MONGO_REPOSITORY=repository
- MONGO_PORT=27017
- MONGO_DBNAME=stix
- ENV=dev
# Options: UAC, TEST, DEMO
- RUN_MODE=UAC
# If deployed in a proxy, add the proxy's URL here
- HTTPS_PROXY_URL=
entrypoint:
- npm
- run
- debugdev