version: "3.8" services: fastapi-audio-app: build: . container_name: fastapi-audio-app ports: - "8000:8000" # Map container's port 8000 to host's port 8000 volumes: - .:/app # Mount the current directory to the container's /app folder environment: - API_KEY=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 # Set the Groq API key here depends_on: - redis command: ["python", "app.py"] # Use `python app.py` to start the FastAPI app redis: image: "redis:alpine" container_name: redis ports: - "6379:6379" volumes: - redis-data:/data volumes: redis-data: