Spaces:
Configuration error
Configuration error
File size: 708 Bytes
2a72108 |
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 |
version: '3.8'
services:
you2api:
build: .
container_name: you2api
ports:
- "8080:8080"
environment:
- PORT=8080
- ENABLE_PROXY=false
- PROXY_URL=
- PROXY_TIMEOUT_MS=5000
- LOG_LEVEL=info
restart: unless-stopped
# 如果需要添加 Prometheus 监控
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- you2api
# 如果需要添加 Grafana 监控面板
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
depends_on:
- prometheus |