File size: 915 Bytes
44bcbbf 58ec31b a65dba7 58ec31b 44bcbbf a65dba7 44bcbbf a65dba7 | 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 | version: "3.9"
services:
rox-ai:
build:
context: .
dockerfile: Dockerfile
container_name: rox-ai
ports:
- "8000:8000"
env_file:
- .env
environment:
- PORT=8000
- ALLOWED_ORIGINS=http://localhost:3000,https://Rox-Turbo-API.hf.space
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
security_opt:
- no-new-privileges:true
read_only: false
tmpfs:
- /tmp
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
|