Files
oracle-openai/docker-compose.yml
Wang Defa 95722c97e4
All checks were successful
Build and Push OCI GenAI Gateway Docker Image / docker-build-push (push) Successful in 35s
Cherry Studio 客户端优化
2025-12-10 17:40:43 +08:00

31 lines
943 B
YAML

services:
oci-genai-gateway:
# 使用本地 Dockerfile 构建镜像
build:
context: .
dockerfile: Dockerfile
# 使用预构建的镜像(如有需要可取消注释)
# image: gitea.bcde.io/wangdefa/oracle-openai:latest
container_name: oci-genai-gateway
ports:
- "8000:8000"
volumes:
# 挂载 OCI 配置文件(根据实际路径调整)
- ./.oci:/root/.oci:ro
# 挂载日志目录
- ./logs:/app/logs
environment:
- API_TITLE=OCI GenAI to OpenAI API Gateway
- API_VERSION=0.0.1
- API_KEYS=["sk-oci-genai-default-key"]
- DEBUG=false
- OCI_CONFIG_PROFILE=DEFAULT
- LOG_LEVEL=INFO
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health').read()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s