you2api-bohesocool / docker-compose.yml
BOHE
first commit
2a72108
raw
history blame contribute delete
708 Bytes
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