-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.yaml
More file actions
86 lines (81 loc) · 2.48 KB
/
compose.yaml
File metadata and controls
86 lines (81 loc) · 2.48 KB
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
services:
frontend:
container_name: attack-workbench-frontend
image: ghcr.io/center-for-threat-informed-defense/attack-workbench-frontend:${ATTACKWB_FRONTEND_VERSION:-latest}
depends_on:
- rest-api
ports:
- "${ATTACKWB_FRONTEND_HTTP_PORT:-80}:${ATTACKWB_FRONTEND_HTTP_PORT:-80}"
- "${ATTACKWB_FRONTEND_HTTPS_PORT:-443}:${ATTACKWB_FRONTEND_HTTPS_PORT:-443}"
volumes:
- ./configs/frontend/nginx.conf:/etc/nginx/nginx.conf:ro
- "${ATTACKWB_FRONTEND_CERTS_PATH:-./certs}:/etc/nginx/certs:ro"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
rest-api:
container_name: attack-workbench-rest-api
image: ghcr.io/center-for-threat-informed-defense/attack-workbench-rest-api:${ATTACKWB_RESTAPI_VERSION:-latest}
depends_on:
- database
ports:
- "${ATTACKWB_RESTAPI_HTTP_PORT:-3000}:${ATTACKWB_RESTAPI_HTTP_PORT:-3000}"
volumes:
- ./configs/rest-api/rest-api-service-config.json:/usr/src/app/resources/rest-api-service-config.json:ro
env_file:
- ./configs/rest-api/.env
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health/ping"]
interval: 30s
timeout: 10s
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
database:
container_name: attack-workbench-database
image: mongo:8
ports:
- "${ATTACKWB_DB_PORT:-27017}:${ATTACKWB_DB_PORT:-27017}"
volumes:
- workspace-data:/data/db
- ./database-backup:/dump
restart: unless-stopped
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 30s
timeout: 10s
retries: 5
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
taxii:
container_name: attack-workbench-taxii-server
image: ghcr.io/mitre-attack/attack-workbench-taxii-server:${ATTACKWB_TAXII_VERSION:-latest}
depends_on:
- rest-api
ports:
- "${ATTACKWB_TAXII_HTTP_PORT:-5002}:${ATTACKWB_TAXII_HTTP_PORT:-5002}"
volumes:
- ./configs/taxii/config:/app/config:ro
environment:
- TAXII_ENV=${ATTACKWB_TAXII_ENV:-dev}
- TAXII_HYDRATE_ON_BOOT=true
profiles:
- with-taxii
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
volumes:
workspace-data: