forked from SpecterOps/Nemesis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.override.yaml
More file actions
121 lines (111 loc) · 3.54 KB
/
Copy pathcompose.override.yaml
File metadata and controls
121 lines (111 loc) · 3.54 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
# 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
noseyparker-scanner:
image: !reset null
build:
context: .
dockerfile: ./projects/noseyparker_scanner/Dockerfile
target: dev
environment:
- RUST_LOG=debug
dotnet-api:
image: !reset null
build:
context: .
dockerfile: ./projects/dotnet_api/Dockerfile
target: dev
volumes:
- ./libs/:/src/libs/
- ./projects/dotnet_api/dotnet_api:/src/projects/dotnet_api/dotnet_api
- /src/projects/dotnet_api/.venv
file-enrichment:
image: !reset null
build:
context: .
dockerfile: ./projects/file_enrichment/Dockerfile
target: dev
environment:
- 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
frontend:
image: !reset null
build:
context: ./projects/frontend/
dockerfile: Dockerfile
target: dev
command: >
sh -c "
mkdir -p /app-runtime &&
cp -r /app/* /app-runtime/ &&
SECRET=\"$$HASURA_ADMIN_SECRET\" &&
sed -i \"s/\\$$HASURA_ADMIN_SECRET/$$SECRET/g\" /app-runtime/index.html &&
cd /app-runtime &&
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:ro
- ./projects/frontend/src:/app/src:ro
- ./projects/frontend/vite.config.js:/app/vite.config.js: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
triage:
image: !reset null
build:
context: .
dockerfile: ./projects/triage/Dockerfile
target: dev
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
environment:
- CLEANUP_SCHEDULE=*/3 * * * * # Test every 3 minutes
document-conversion:
image: !reset null
build:
context: .
dockerfile: ./projects/document_conversion/Dockerfile
target: dev
volumes:
- ./libs/:/src/libs/
- ./projects/document_conversion/document_conversion:/src/projects/document_conversion/document_conversion
- /src/projects/document_conversion/.venv