Spaces:
Running
Running
File size: 2,023 Bytes
8a03d2c | 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | # โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# 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
|