| version: '3.8' | |
| services: | |
| simple-calculator: | |
| build: . | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - PYTHONUNBUFFERED=1 | |
| # Add your Modal credentials here or use .env file | |
| - MODAL_TOKEN_ID=${MODAL_TOKEN_ID:-} | |
| - MODAL_TOKEN_SECRET=${MODAL_TOKEN_SECRET:-} | |
| volumes: | |
| # Mount the Modal config directory to persist credentials | |
| - modal-config:/root/.modal | |
| restart: unless-stopped | |
| volumes: | |
| modal-config: # Named volume for Modal configuration | |