# ============================================================================== # Docker Compose for LOCAL TESTING of the HuggingFace Spaces configuration # # This builds and runs the exact same container that will run on HF Spaces, # but mapped to port 7860 on your localhost. # # Usage: # docker compose -f docker-compose.hf-test.yml up --build # # Then open: http://localhost:7860 # ============================================================================== services: open-notebook-hf: build: context: . dockerfile: Dockerfile.hf ports: - "7860:7860" # Same port as HuggingFace Spaces environment: - OPEN_NOTEBOOK_ENCRYPTION_KEY=local-test-key-change-in-production - SURREAL_URL=ws://localhost:8000/rpc - SURREAL_USER=root - SURREAL_PASSWORD=root - SURREAL_NAMESPACE=open_notebook - SURREAL_DATABASE=open_notebook volumes: - ./hf_test_data:/data # Simulates HF persistent storage - ./hf_test_appdata:/app/data # App data restart: unless-stopped