-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
117 lines (110 loc) · 2.83 KB
/
docker-compose.yml
File metadata and controls
117 lines (110 loc) · 2.83 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
services:
postgres:
image: postgres:18.1
container_name: fundamental_postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: fundamental_analysis
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql
- ./scripts:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# L1 Working Memory (Hot)
redis_l1:
image: redis:7
container_name: fundamental_redis_l1
ports:
- "6379:6379"
volumes:
- redis_l1_data:/data
command: redis-server --appendonly yes --save 900 1
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
# L2 Agent Memory (Warm) - Cache only
redis_l2:
image: redis:7
container_name: fundamental_redis_l2
ports:
- "6380:6379"
volumes:
- redis_l2_data:/data
command: redis-server --save 900 1
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
# Checkpoint Memory - High Durability
redis_checkpoint:
image: redis:7
container_name: fundamental_redis_checkpoint
ports:
- "6381:6379"
volumes:
- redis_checkpoint_data:/data
command: redis-server --appendonly yes --save 60 1
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
container_name: fundamental_minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.0
container_name: fundamental_elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
ports:
- "9200:9200"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 10s
retries: 5
kibana:
image: docker.elastic.co/kibana/kibana:8.14.0
container_name: fundamental_kibana
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_HOSTS=http://fundamental_elasticsearch:9200
depends_on:
elasticsearch:
condition: service_healthy
volumes:
postgres_data:
redis_l1_data:
redis_l2_data:
redis_checkpoint_data:
minio_data:
elasticsearch_data: