Initial Real-ESRGAN API project setup

This commit is contained in:
Developer
2026-02-16 19:56:25 +01:00
commit 0e59652575
34 changed files with 3668 additions and 0 deletions

37
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,37 @@
services:
api:
image: gitea.example.com/your-org/realesrgan-api:latest
ports:
- "8000:8000"
volumes:
- uploads:/data/uploads
- outputs:/data/outputs
- models:/data/models
- temp:/data/temp
- jobs:/data/jobs
environment:
- RSR_EXECUTION_PROVIDERS=["cuda"]
- RSR_EXECUTION_THREAD_COUNT=8
- RSR_TILE_SIZE=400
- RSR_LOG_LEVEL=info
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
uploads:
outputs:
models:
temp:
jobs: