forked from EDOHWARES/EventHorizon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (95 loc) · 2.21 KB
/
docker-compose.yml
File metadata and controls
103 lines (95 loc) · 2.21 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
version: '3.9'
services:
mongo:
image: mongo:7-jammy
container_name: eventhorizon_mongo
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: eventhorizon
volumes:
- mongo_data:/data/db
networks:
- app_network
redis:
image: redis:7-alpine
container_name: eventhorizon_redis
restart: unless-stopped
volumes:
- redis_data:/data
networks:
- app_network
# All-in-one Jaeger image. Exposes:
# 16686 — Jaeger UI
# 4318 — OTLP/HTTP collector (default exporter target)
# 14268 — Jaeger collector (when OTEL_EXPORTER=jaeger)
# Start with `docker compose --profile observability up jaeger`.
jaeger:
image: jaegertracing/all-in-one:1.57
container_name: eventhorizon_jaeger
restart: unless-stopped
environment:
COLLECTOR_OTLP_ENABLED: "true"
ports:
- "16686:16686"
- "4318:4318"
- "14268:14268"
profiles:
- observability
networks:
- app_network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: eventhorizon_backend
restart: unless-stopped
env_file:
- .env
environment:
MONGO_URI: mongodb://mongo:27017/eventhorizon
REDIS_HOST: redis
REDIS_PORT: 6379
NODE_ENV: production
ports:
- "${PORT:-5000}:5000"
depends_on:
- mongo
- redis
networks:
- app_network
frontend:
image: node:20-alpine
container_name: eventhorizon_frontend
working_dir: /app
volumes:
- ./frontend:/app
- frontend_modules:/app/node_modules
command: sh -c "npm install --legacy-peer-deps && npm run dev -- --host"
environment:
VITE_API_URL: http://backend:5000
ports:
- "3000:3000"
depends_on:
- backend
networks:
- app_network
envoy:
image: envoyproxy/envoy:v1.29-latest
container_name: eventhorizon_envoy
volumes:
- ./envoy/envoy.yaml:/etc/envoy/envoy.yaml:ro
- envoy_certs:/etc/envoy/certs
ports:
- "8080:8080"
depends_on:
- backend
networks:
- app_network
volumes:
mongo_data:
redis_data:
frontend_modules:
envoy_certs:
networks:
app_network:
driver: bridge