-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathcompose.override.yaml
More file actions
169 lines (158 loc) · 5.34 KB
/
compose.override.yaml
File metadata and controls
169 lines (158 loc) · 5.34 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
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
# This file provides overrides for DEVELOPMENT containers. It is automatically loaded by 'docker compose up'.
# - It REPLACES 'image' directives with 'build' directives for local development.
# - It mounts local source code for live-reloading.
# - It adjusts commands and environment for a better dev experience.
services:
web-api:
image: !reset null
build:
context: .
dockerfile: ./projects/web_api/Dockerfile
target: dev
volumes:
- ./libs/:/src/libs/
- ./projects/web_api/web_api:/src/projects/web_api/web_api
- /src/projects/web_api/.venv
# Shadow libs .venv directories to prevent file watcher from scanning them
- /src/libs/chromium/.venv
- /src/libs/common/.venv
- /src/libs/file_enrichment_modules/.venv
- /src/libs/file_linking/.venv
- /src/libs/nemesis_dpapi/.venv
environment:
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
titus-scanner:
image: !reset null
build:
context: .
dockerfile: ./projects/titus_scanner/Dockerfile
target: dev
environment:
- LOG_LEVEL=debug
dotnet-service:
image: !reset null
build:
context: .
dockerfile: ./projects/dotnet_service/Dockerfile
target: dev
environment:
- ASPNETCORE_ENVIRONMENT=Development
file-enrichment:
image: !reset null
build:
context: .
dockerfile: ./projects/file_enrichment/Dockerfile
target: dev
environment:
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
volumes:
- ./libs/:/src/libs/
- ./projects/file_enrichment/file_enrichment:/src/projects/file_enrichment/file_enrichment
- /src/projects/file_enrichment/.venv
- ./libs/file_enrichment_modules/yara_rules/dev/:/yara_rules/:ro
# Shadow libs .venv directories to prevent file watcher from scanning them
- /src/libs/chromium/.venv
- /src/libs/common/.venv
- /src/libs/file_enrichment_modules/.venv
- /src/libs/file_linking/.venv
- /src/libs/nemesis_dpapi/.venv
frontend:
image: !reset null
build:
context: ./projects/frontend/
dockerfile: Dockerfile
target: dev
command: >
sh -c "
if [ -f /version.json ]; then cp /version.json /app/public/version.json; fi &&
SECRET=\"$$HASURA_ADMIN_SECRET\" &&
echo \"window.ENV = { HASURA_ADMIN_SECRET: '$$SECRET' };\" > /app/public/env.js &&
cd /app &&
npm run dev
"
volumes:
- ./projects/frontend/index.html:/app/index.html:ro
- ./projects/frontend/package.json:/app/package.json:ro
- ./projects/frontend/public:/app/public
- ./projects/frontend/src:/app/src:ro
- ./projects/frontend/vite.config.js:/app/vite.config.js:ro
- ./version.json:/version.json:ro
labels:
- "traefik.http.services.frontend.loadbalancer.server.port=3000"
jupyter:
image: !reset null
# To develop jupyter itself, you would add a `build` block here
# Since it's already using `build` in the base, this override isn't strictly
# necessary unless you change the target or add more dev volumes.
build:
context: ./projects/jupyter/
dockerfile: Dockerfile
alerting:
image: !reset null
build:
context: .
dockerfile: ./projects/alerting/Dockerfile
target: dev
environment:
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
agents:
image: !reset null
build:
context: .
dockerfile: ./projects/agents/Dockerfile
target: dev
environment:
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
volumes:
- ./libs/:/src/libs/
- ./projects/agents/agents:/src/projects/agents/agents
- /src/projects/agents/.venv
# Shadow libs .venv directories to prevent file watcher from scanning them
- /src/libs/chromium/.venv
- /src/libs/common/.venv
- /src/libs/file_enrichment_modules/.venv
- /src/libs/file_linking/.venv
- /src/libs/nemesis_dpapi/.venv
housekeeping:
image: !reset null
build:
context: .
dockerfile: ./projects/housekeeping/Dockerfile
target: dev
volumes:
- ./libs/:/src/libs/
- ./projects/housekeeping/housekeeping:/src/projects/housekeeping/housekeeping
- /src/projects/housekeeping/.venv
# Shadow libs .venv directories to prevent file watcher from scanning them
- /src/libs/chromium/.venv
- /src/libs/common/.venv
- /src/libs/file_enrichment_modules/.venv
- /src/libs/file_linking/.venv
- /src/libs/nemesis_dpapi/.venv
environment:
- CLEANUP_SCHEDULE=*/3 * * * * # Test every 3 minutes
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
document-conversion:
image: !reset null
build:
context: .
dockerfile: ./projects/document_conversion/Dockerfile
target: dev
args:
- TIKA_OCR_LANGUAGES=${TIKA_OCR_LANGUAGES:-eng}
volumes:
- ./libs/:/src/libs/
- ./projects/document_conversion/document_conversion:/src/projects/document_conversion/document_conversion
- /src/projects/document_conversion/.venv
# Shadow libs .venv directories to prevent file watcher from scanning them
- /src/libs/chromium/.venv
- /src/libs/common/.venv
- /src/libs/file_enrichment_modules/.venv
- /src/libs/file_linking/.venv
- /src/libs/nemesis_dpapi/.venv
environment:
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
postgres:
# expose the port locally
ports:
- "5432:5432"