version: '3' services: fastapi: build: context: . dockerfile: Dockerfile ports: - "7860:7860" command: - "uvicorn" - "api:api" - "--reload" - "--port=7860" - "--host=0.0.0.0" volumes: - .:/app # Replace with the path to your local code