File size: 490 Bytes
e21102a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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