-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
125 lines (118 loc) · 3.04 KB
/
docker-compose.dev.yml
File metadata and controls
125 lines (118 loc) · 3.04 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
# yamllint disable rule:line-length
---
version: '3.8'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.3.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
redpanda:
image: docker.redpanda.com/vectorized/redpanda:latest
command:
- redpanda
- start
- --smp
- '1'
- --overprovisioned
- --listen-address
- 0.0.0.0
- --advertised-listeners
- PLAINTEXT://redpanda:9092
- --check=false
ports:
- '9092:9092'
depends_on:
- zookeeper
mgmt_api:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
command: >
sh -c "pip install --no-cache-dir -r backend/requirements.txt &&
uvicorn backend.main:app --host 0.0.0.0 --port 8000"
environment:
SUPABASE_URL: http://localhost:54321
SUPABASE_ANON_KEY: local
KAFKA_BOOTSTRAP: redpanda:9092
ports:
- '8000:8000'
depends_on:
- redpanda
edge_agent:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
command: >
sh -c "pip install --no-cache-dir fastapi uvicorn[standard] aiokafka fastavro pydantic jinja2 psutil requests &&
uvicorn services.edge_agent.main:app --host 0.0.0.0 --port 8200"
environment:
# Discovery and integration settings
KAFKA_BOOTSTRAP: redpanda:9092
EDGE_SELF_DISCOVERY: "true"
DISCOVERY_INTERVAL_SECONDS: "3600"
EDGE_TENANT_ID: "local"
EDR_API_URL: ""
EDR_API_TOKEN: ""
NESSUS_API_URL: ""
NESSUS_API_TOKEN: ""
ports:
- '8200:8200'
depends_on:
- redpanda
infra_builder:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
command: >
sh -c "pip install --no-cache-dir aiokafka fastavro jinja2 &&
python -m services.infra_builder.main"
environment:
KAFKA_BOOTSTRAP: redpanda:9092
depends_on:
- redpanda
rt_script_gen:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
command: >
sh -c "pip install --no-cache-dir fastapi uvicorn[standard] aiokafka jinja2 &&
uvicorn services.rt_script_gen.main:app --host 0.0.0.0 --port 8300"
environment:
KAFKA_BOOTSTRAP: redpanda:9092
ports:
- '8300:8300'
depends_on:
- redpanda
rule_factory:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
command: >
sh -c "pip install --no-cache-dir aiokafka &&
python -m services.rule_factory.main"
environment:
KAFKA_BOOTSTRAP: redpanda:9092
depends_on:
- redpanda
deployer:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
command: >
sh -c "pip install --no-cache-dir aiokafka &&
python -m services.deployer.main"
environment:
KAFKA_BOOTSTRAP: redpanda:9092
EDR_URL: http://edr.example.com
EDR_TOKEN: devtoken
NESSUS_URL: http://nessus.example.com
NESSUS_TOKEN: devtoken
depends_on:
- redpanda