-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (104 loc) · 2.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
113 lines (104 loc) · 2.64 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
version: "3.9"
services:
api:
build: .
env_file:
- .env
environment:
API_HOST: 0.0.0.0
API_PORT: 8000
POSTGRES_URL: postgresql+psycopg2://postgres:postgres@postgres:5432/surveillance
REDIS_URL: redis://redis:6379/0
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: neo4jpassword
KAFKA_BOOTSTRAP_SERVERS: redpanda:9092
ports:
- "8000:8000"
depends_on:
- postgres
- redis
- neo4j
- redpanda
frontend:
image: node:20-alpine
working_dir: /app
environment:
VITE_API_URL: http://localhost:8000
VITE_WS_URL: ws://localhost:8000/ws/alerts
volumes:
- ./frontend:/app
command: ["sh", "-c", "npm install && npm run dev -- --host 0.0.0.0 --port 5173"]
ports:
- "5173:5173"
depends_on:
- api
worker:
build: .
env_file:
- .env
environment:
SURVEILLANCE_API_URL: http://api:8000
KAFKA_BOOTSTRAP_SERVERS: redpanda:9092
KAFKA_SECURITY_PROTOCOL:
KAFKA_SSL_KEYFILE:
KAFKA_SSL_CERTFILE:
KAFKA_SSL_CAFILE:
command: ["python", "-m", "src.ingestion.stream_worker"]
depends_on:
- api
- redpanda
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: surveillance
tmpfs:
- /var/lib/postgresql/data
redis:
image: redis:7
command: ["redis-server", "--save", "", "--appendonly", "no"]
neo4j:
image: neo4j:5
environment:
NEO4J_AUTH: neo4j/neo4jpassword
tmpfs:
- /data
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:v24.2.10
command:
- redpanda
- start
- --overprovisioned
- --smp
- "1"
- --memory
- "1G"
- --reserve-memory
- "0M"
- --node-id
- "0"
- --check=false
- --kafka-addr
- PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://redpanda:9092
prometheus:
image: prom/prometheus:latest
volumes:
- ./dashboards/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
grafana:
image: grafana/grafana:latest
environment:
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- ./dashboards/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./dashboards/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./dashboards/grafana/trade-surveillance-dashboard.json:/var/lib/grafana/dashboards/trade-surveillance-dashboard.json:ro
ports:
- "3000:3000"
depends_on:
- prometheus