File size: 649 Bytes
a4da623 | 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 | version: '3.8'
services:
unified-model-app:
build:
context: .
dockerfile: Dockerfile
container_name: pytorch-unified-model-comparison
ports:
- "7860:7860"
environment:
PYTHONUNBUFFERED: 1
GRADIO_SERVER_NAME: 0.0.0.0
GRADIO_SERVER_PORT: 7860
volumes:
# Optional: Mount models directory if you want to update models without rebuilding
- ./models:/app/models
restart: unless-stopped
# Optional: Increase memory limit if needed
# deploy:
# resources:
# limits:
# memory: 8G
# reservations:
# memory: 4G
|