-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.certs.yml
24 lines (22 loc) · 992 Bytes
/
docker-compose.certs.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
# Description
# - This file augments the deployment of the ATT&CK Workbench by configuring the REST API container
# - with an additional certificate.
# - This is recommended for deployments where the REST API container is behind a firewall that performs
# SSL inspection. The additional certificate allows the REST API collection management to retrieve
# Collection Indexes and Collection bundles without receiving a self-signed certificate error.
# Usage
# This file must be used in conjunction with the main docker-compose.yml file.
#
# Environment Variables
# HOST_CERTS_PATH: path to the directory on the host where the certificate file is located
# CERTS_FILENAME: name of the certificate file
#
# Running docker compose at the command line:
# docker-compose -f docker-compose.yml -f docker-compose.certs.yml up
version: "3.9"
services:
rest-api:
volumes:
- .${HOST_CERTS_PATH}:/usr/src/app/certs
environment:
- NODE_EXTRA_CA_CERTS=./certs/${CERTS_FILENAME}