# Demo UI. Inference runs on Modal (serve_demo.py); DEMO_URL and DEMO_TOKEN come from .env (never the image). services: demo: build: ./demo ports: - "8507:8501" environment: DEMO_URL: ${DEMO_URL:?set DEMO_URL in .env (the URL printed by modal deploy serve_demo.py)} DEMO_TOKEN: ${DEMO_TOKEN:?set DEMO_TOKEN in .env} DEMO_LOG_DIR: /app/results/demo volumes: - ./results/demo:/app/results/demo