初始提交:边缘AI算力机统一AI通讯层
This commit is contained in:
@@ -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:
|
||||
@@ -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:
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user