File size: 523 Bytes
f6de122 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
version: '3.8'
services:
v0-openai-api:
build: .
ports:
- "8000:8000"
environment:
- V0_API_KEY=${V0_API_KEY}
- V0_API_BASE_URL=${V0_API_BASE_URL:-https://api.v0.dev/v1}
- HOST=0.0.0.0
- PORT=8000
- DEBUG=${DEBUG:-true}
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s |