-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.backup
More file actions
167 lines (156 loc) · 3.78 KB
/
docker-compose.yml.backup
File metadata and controls
167 lines (156 loc) · 3.78 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
services:
# 🧠 Core Neural Nexus Services
neural-nexus-orchestrator:
image: rust:1.70
container_name: nn-orchestrator
working_dir: /app
command: /bin/bash -c "echo '🧠 Neural Nexus Orchestrator ready' && tail -f /dev/null"
ports:
- "8082:8080"
- "50051:50051"
environment:
- RUST_LOG=info
- DATABASE_URL=postgresql://postgres:password@postgres:5432/neural_nexus
- REDIS_URL=redis://redis:6379
- MQTT_BROKER=mqtt://mosquitto:1883
volumes:
- .:/app
networks:
- neural-nexus
restart: unless-stopped
neural-nexus-node:
image: rust:1.70
container_name: nn-node
working_dir: /app
command: /bin/bash -c "echo '⚡ Neural Nexus Edge Node ready' && tail -f /dev/null"
ports:
- "8083:8081"
environment:
- RUST_LOG=info
- NODE_ID=node-001
- ORCHESTRATOR_URL=http://neural-nexus-orchestrator:8080
volumes:
- .:/app
networks:
- neural-nexus
restart: unless-stopped
depends_on:
- neural-nexus-orchestrator
postgres:
image: postgres:15-alpine
container_name: nn-postgres
environment:
- POSTGRES_DB=neural_nexus
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- neural-nexus
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: nn-redis
ports:
- "6380:6379"
volumes:
- redis_data:/data
networks:
- neural-nexus
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
mosquitto:
image: eclipse-mosquitto:2.0
container_name: nn-mosquitto
ports:
- "1884:1883"
- "9002:9001"
volumes:
- mosquitto_data:/mosquitto/data
- mosquitto_logs:/mosquitto/log
networks:
- neural-nexus
restart: unless-stopped
command: mosquitto -c /mosquitto-no-auth.conf
prometheus:
image: prom/prometheus:latest
container_name: nn-prometheus
ports:
- "9091:9090"
volumes:
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.enable-lifecycle'
networks:
- neural-nexus
restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: nn-grafana
ports:
- "3002:3000" # Usando puerto 3002
environment:
- GF_SECURITY_ADMIN_PASSWORD=neural_nexus_admin
volumes:
- grafana_data:/var/lib/grafana
networks:
- neural-nexus
restart: unless-stopped
volumes:
postgres_data:
redis_data:
mosquitto_data:
mosquitto_logs:
prometheus_data:
grafana_data:
networks:
neural-nexus:
driver: bridge
node-exporter:
image: prom/node-exporter:latest
container_name: nn-node-exporter
ports:
- "9100:9100"
networks:
- neural-nexus
restart: unless-stopped
command:
- '--path.rootfs=/host'
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: nn-cadvisor
ports:
- "8088:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
networks:
- neural-nexus
restart: unless-stopped
privileged: true
redis-exporter:
image: oliver006/redis_exporter:latest
container_name: nn-redis-exporter
ports:
- "9121:9121"
environment:
- REDIS_ADDR=redis://nn-redis:6379
networks:
- neural-nexus
restart: unless-stopped