Skip to content

Commit 6c79941

Browse files
Release 0.3.2 canidate 2 (#565)
* removed indicators groupings from meta properties file #484 * #345 expose parse via REST * #345 * #443 nginx serves compiled aot prod ui * wip build fails sometimes w/ out of memory when building in docker * serves angular aot app * #346 mockup * fixup #346 * Added app.js to volume mapping for api #508 * updated to include stix patterns for the three indicators that MITRE posted in https://github.com/mitre/stix2patterns_translator Fixed #516 * removed pattern_lang from indicators * added HTTPS_PROXY_URL env variable to docker compose files #527 * added RUN_MODE env variables #524 * added unfetter open identity #528 * typo in unfetter open stix id #528 * added created_by_ref for unfetter stix fixes #532 * Delete Jenkinsfile * fixed HTTPS_PROXY_URL var in docker.compse.yml * added open vocab to config file #535 * testing jenkins * renamed docker-compose.aot to docker-compose.deploy, synced ctf-ingest container with .development, made default RUN_MODE DEMO * added the unfetter-ctf * removed extra link
1 parent 446a401 commit 6c79941

File tree

2 files changed

+184
-0
lines changed

2 files changed

+184
-0
lines changed

docker-compose.deploy.yml

+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
version: '2.0'
2+
services:
3+
unfetter-discover-gateway:
4+
image: nginx:1.13.5-alpine
5+
container_name: unfetter-discover-gateway
6+
ports:
7+
- "443:443"
8+
- "80:80"
9+
depends_on:
10+
- unfetter-discover-openssl
11+
- unfetter-ui-build
12+
links:
13+
- unfetter-discover-api-explorer
14+
- unfetter-discover-api
15+
- unfetter-ctf-ingest
16+
- unfetter-ui-build
17+
volumes:
18+
- ./config/nginx/conf.d.aot:/etc/nginx/conf.d
19+
- ./certs/:/etc/pki/tls/certs
20+
- ../unfetter-ui/dist:/etc/nginx/html
21+
22+
unfetter-discover-openssl:
23+
image: svagi/openssl:latest
24+
container_name: unfetter-discover-openssl
25+
entrypoint:
26+
- openssl
27+
- req
28+
- -subj
29+
- /CN=localhost/DC=localhost/DC=localdomain
30+
- -new
31+
- -newkey
32+
- rsa:2048
33+
- -days
34+
- "365"
35+
- -nodes
36+
- -x509
37+
- -keyout
38+
- /tmp/certs/server.key
39+
- -out
40+
- /tmp/certs/server.crt
41+
volumes:
42+
- ./certs/:/tmp/certs
43+
44+
unfetter-discover-processor:
45+
build: ../unfetter-store/unfetter-discover-processor
46+
container_name: unfetter-discover-processor
47+
image: unfetter-discover-processor
48+
volumes:
49+
- ./config/examples:/tmp/examples
50+
# TODO find a working volume mounting
51+
# - ../unfetter-store/unfetter-discover-processor:/usr/src/app
52+
environment:
53+
- MONGO_HOST=repository
54+
entrypoint:
55+
- node
56+
- processor.js
57+
- --stix
58+
- /tmp/examples/unfetter-stix/stix.json
59+
- --enhanced-stix-properties
60+
- /tmp/examples/unfetter-db/stix-enhancements.json
61+
- /tmp/examples/unfetter-db/stix-meta.json
62+
- --config
63+
- /tmp/examples/unfetter-db/config.json
64+
- --add-mitre-data
65+
- "true"
66+
depends_on:
67+
- cti-stix-store-repository
68+
links:
69+
- cti-stix-store-repository:repository
70+
71+
unfetter-ctf-ingest:
72+
build: ../unfetter-store/unfetter-ctf-ingest
73+
container_name: unfetter-ctf-ingest
74+
image: unfetter-ctf-ingest
75+
volumes:
76+
- ../unfetter-store/unfetter-ctf-ingest/test-data:/tmp/test-data
77+
environment:
78+
- API_PROTOCOL=https
79+
- API_HOST=apihost
80+
- API_PORT=3000
81+
- API_CONTEXT=/
82+
- MONGO_REPOSITORY=repository
83+
- MONGO_PORT=27017
84+
- MONGO_DBNAME=stix
85+
ports:
86+
- "3001:10010"
87+
entrypoint:
88+
- npm
89+
- start
90+
depends_on:
91+
- cti-stix-store-repository
92+
- unfetter-discover-api
93+
links:
94+
- cti-stix-store-repository:repository
95+
- unfetter-discover-api:apihost
96+
97+
cti-stix-store-repository:
98+
image: mongo:3.4.1
99+
container_name: cti-stix-store-repository
100+
ports:
101+
- "27018:27017"
102+
volumes:
103+
- ./data/db:/data/db
104+
105+
unfetter-discover-api-explorer:
106+
build: ../unfetter-store/unfetter-discover-api
107+
container_name: unfetter-discover-api-explorer
108+
image: unfetter-discover-api
109+
depends_on:
110+
- unfetter-discover-openssl
111+
- cti-stix-store-repository
112+
expose:
113+
- "3000"
114+
ports:
115+
- "49260:3000"
116+
links:
117+
- cti-stix-store-repository:repository
118+
volumes:
119+
- ./certs/:/etc/pki/tls/certs
120+
- ../unfetter-store/unfetter-discover-api/test:/usr/share/unfetter-discover-api/test
121+
- ../unfetter-store/unfetter-discover-api/api:/usr/share/unfetter-discover-api/api
122+
environment:
123+
- STIX_API_PROTOCOL=http
124+
- STIX_API_HOST=cti-stix-store
125+
- STIX_API_PORT=3000
126+
- STIX_API_PATH=cti-stix-store-api
127+
- MONGO_REPOSITORY=repository
128+
- MONGO_PORT=27017
129+
- MONGO_DBNAME=stix
130+
- ENV=prod
131+
entrypoint:
132+
- npm
133+
- run
134+
- swaggerdev
135+
136+
unfetter-discover-api:
137+
build: ../unfetter-store/unfetter-discover-api
138+
container_name: unfetter-discover-api
139+
image: unfetter-discover-api
140+
depends_on:
141+
- unfetter-discover-openssl
142+
- cti-stix-store-repository
143+
links:
144+
- cti-stix-store-repository:repository
145+
ports:
146+
- "49360:3000"
147+
- "5555:5555"
148+
volumes:
149+
- ./certs/:/etc/pki/tls/certs
150+
- ../unfetter-store/unfetter-discover-api/test:/usr/share/unfetter-discover-api/test
151+
- ../unfetter-store/unfetter-discover-api/api:/usr/share/unfetter-discover-api/api
152+
environment:
153+
- CTF_PARSE_HOST=http://unfetter-ctf-ingest
154+
- STIX_API_PROTOCOL=http
155+
- STIX_API_HOST=cti-stix-store
156+
- STIX_API_PORT=3000
157+
- STIX_API_PATH=cti-stix-store-api
158+
- MONGO_REPOSITORY=repository
159+
- MONGO_PORT=27017
160+
- MONGO_DBNAME=stix
161+
- ENV=dev
162+
# Options: UAC, TEST, DEMO
163+
- RUN_MODE=DEMO
164+
# If deployed in a proxy, add the proxy's URL here
165+
- HTTPS_PROXY_URL=
166+
entrypoint:
167+
- npm
168+
- run
169+
- debugdev
170+
171+
unfetter-ui-build:
172+
build: ../unfetter-ui
173+
image: unfetter-ui
174+
container_name: unfetter-ui-build
175+
entrypoint:
176+
- npm
177+
- run
178+
- build:aot:prod:noclean
179+
environment:
180+
# Options: UAC, TEST, DEMO
181+
- RUN_MODE=DEMO
182+
volumes:
183+
- ../unfetter-ui/dist:/usr/share/unfetter-ui/dist

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ services:
135135
volumes:
136136
- ./certs/:/etc/pki/tls/certs
137137
environment:
138+
- CTF_PARSE_HOST=http://unfetter-ctf-ingest
138139
- STIX_API_PROTOCOL=http
139140
- STIX_API_HOST=cti-stix-store
140141
- STIX_API_PORT=3000

0 commit comments

Comments
 (0)