test_ing / docker-compose.yml
AyushS9020's picture
Upload 5 files
0f7e22b verified
raw
history blame
654 Bytes
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: