第一次提交
All checks were successful
Build and Push OCI GenAI Gateway Docker Image / docker-build-push (push) Successful in 32m3s

This commit is contained in:
2025-12-09 14:44:09 +08:00
commit 42222744c7
27 changed files with 3081 additions and 0 deletions

35
docker-compose.yml Normal file
View File

@@ -0,0 +1,35 @@
version: '3.8'
services:
oci-genai-gateway:
build:
context: .
dockerfile: Dockerfile
container_name: oci-genai-gateway
ports:
- "8000:8000"
volumes:
# 挂载 OCI 配置文件(根据实际路径调整)
- ~/.oci:/root/.oci:ro
# 挂载环境配置文件
- .env:/app/.env:ro
# 挂载日志目录
- ./logs:/app/logs
environment:
- API_TITLE=OCI GenAI to OpenAI API Gateway
- API_VERSION=0.0.1
- DEBUG=false
- LOG_LEVEL=INFO
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- genai-network
networks:
genai-network:
driver: bridge