初始提交:边缘AI算力机统一AI通讯层
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled
CI / security-scan (push) Has been cancelled

This commit is contained in:
freedakgmail
2026-08-03 07:44:05 +08:00
commit 93a469061d
51 changed files with 11565 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
version: '3.8'
services:
gateway-test:
build: .
ports:
- "18080:18080"
- "18081:18081"
volumes:
- ./configs/config.test.yaml:/etc/edgeai/config.yaml:ro
- test-data:/tmp/edgeai-test
environment:
- EDGEAI_LOG_LEVEL=debug
- EDGEAI_DB_PATH=/tmp/edgeai-test
depends_on:
- ollama-test
restart: "no"
ollama-test:
image: ollama/ollama:latest
ports:
- "11435:11434"
volumes:
- test-models:/root/.ollama
restart: "no"
volumes:
test-data:
test-models:
+52
View File
@@ -0,0 +1,52 @@
version: '3.8'
services:
gateway:
build: .
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ./configs/config.yaml:/etc/edgeai/config.yaml:ro
- gateway-data:/var/lib/edgeai
environment:
- EDGEAI_LOG_LEVEL=info
depends_on:
- ollama
restart: unless-stopped
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama-models:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./deploy/prometheus.yml:/etc/prometheus/prometheus.yml:ro
restart: unless-stopped
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped
volumes:
gateway-data:
ollama-models:
grafana-data:
+9
View File
@@ -0,0 +1,9 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'edgeai-gateway'
static_configs:
- targets: ['gateway:8080']
metrics_path: /metrics