Spaces:
Running
Running
| # โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| # Vcore AI Proxy โ docker-compose.yml | |
| # | |
| # ๅฟซ้ๅฏๅจ: | |
| # cp .env.example .env # ๆ้ๅกซๅ PROXY_URL | |
| # docker compose up -d # ๅๅฐๅฏๅจ | |
| # docker compose logs -f # ๆฅ็ๅฎๆถๆฅๅฟ | |
| # | |
| # ่ฎฟ้ฎ้ขๆฟ: | |
| # ็ฎก็้ขๆฟ: http://localhost:2156/admin | |
| # | |
| # OpenAI ๅ ผๅฎน API ็ซฏ็น: http://localhost:2156/v1 | |
| # โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| services: | |
| vcore: | |
| build: | |
| context: . | |
| target: runtime # ไฝฟ็จๅค้ถๆฎตๆๅปบ็ runtime ๅฑ | |
| image: vcore-proxy:latest | |
| container_name: vcore-proxy | |
| restart: unless-stopped | |
| ports: | |
| - "${PORT:-2156}:2156" # ไธปๆบ็ซฏๅฃๅฏ้่ฟ็ฏๅขๅ้่ฆ็ | |
| env_file: | |
| - .env | |
| environment: | |
| - TZ=Asia/Shanghai # ๅฎนๅจๆถๅบ | |
| logging: | |
| driver: json-file | |
| options: | |
| max-size: "10m" | |
| max-file: "3" | |
| volumes: | |
| # ๆไน ๅ config ็ฎๅฝ๏ผ้ขๆฟ้็ๆๆไฟฎๆน้ๅฏๅไธไธขๅคฑ | |
| - ./config:/app/config | |
| # ๅฏ้๏ผๆไน ๅๆฅๅฟ | |
| # - ./logs:/app/logs | |
| # ๅฅๅบทๆฃๆฅ๏ผDockerfile ้ๅทฒๅฎไน๏ผ่ฟ้ๅฏ่ฆ็๏ผ | |
| healthcheck: | |
| test: ["CMD", "curl", "-sf", "http://localhost:2156/health"] | |
| interval: 30s | |
| timeout: 10s | |
| start_period: 20s | |
| retries: 3 | |
| # ่ตๆบ้ๅถ๏ผๅฏๆ้่ฐๆด๏ผ | |
| # deploy: | |
| # resources: | |
| # limits: | |
| # memory: 512M | |
| # cpus: '1' | |
| # ๅฆๆ้่ฆๆๆฌๆๅกๆฅๅ ฅๅทฒๆ็ Docker ็ฝ็ป๏ผๅๆถไธ้ขๆณจ้ | |
| # networks: | |
| # - your-network | |
| # networks: | |
| # your-network: | |
| # external: true | |