소스 검색

refactor(docker): Simplify environment variable configuration

Removed the redundant 'environment' block from the docker-compose.yml files for both the main service and the account-feeder service. All environment variables are now loaded exclusively through the 'env_file' directive.

This change centralizes environment variable management into the respective .env files, eliminating redundancy and potential confusion caused by Docker Compose's variable precedence rules. The configuration for both services is now cleaner and easier to maintain.

feat(docs): Add Star History chart to README.md
CassiopeiaCode 2 달 전
부모
커밋
9bc4ffbbde
3개의 변경된 파일4개의 추가작업 그리고 10개의 파일을 삭제
  1. 4 0
      README.md
  2. 0 4
      account-feeder/docker-compose.yml
  3. 0 6
      docker-compose.yml

+ 4 - 0
README.md

@@ -1,5 +1,9 @@
 # Amazon Q to API Bridge - Main Service
 
+## Star History
+
+[![Star History Chart](https://api.star-history.com/svg?repos=CassiopeiaCode/q2api&type=date&legend=top-left)](https://www.star-history.com/#CassiopeiaCode/q2api&type=date&legend=top-left)
+
 将 Amazon Q Developer 转换为兼容 OpenAI 和 Claude API 的服务,支持多账号管理、流式响应和智能负载均衡。
 
 **项目地址:**

+ 0 - 4
account-feeder/docker-compose.yml

@@ -8,10 +8,6 @@ services:
     container_name: q2api-account-feeder
     ports:
       - "${FEEDER_PORT:-8001}:${FEEDER_PORT:-8001}"
-    environment:
-      - FEEDER_PORT=${FEEDER_PORT:-8001}
-      - API_SERVER=${API_SERVER:-http://q2api:8000}
-      - HTTP_PROXY=${HTTP_PROXY}
     env_file:
       - .env
     restart: unless-stopped

+ 0 - 6
docker-compose.yml

@@ -8,12 +8,6 @@ services:
     container_name: q2api
     ports:
       - "${PORT:-8000}:${PORT:-8000}"
-    environment:
-      - OPENAI_KEYS=${OPENAI_KEYS}
-      - MAX_ERROR_COUNT=${MAX_ERROR_COUNT:-100}
-      - HTTP_PROXY=${HTTP_PROXY}
-      - ENABLE_CONSOLE=${ENABLE_CONSOLE:-true}
-      - PORT=${PORT:-8000}
     env_file:
       - .env
     volumes: