Docker
This commit is contained in:
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
fastapi-app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- .:/app # Mount the local directory to the container for development
|
||||
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
||||
Reference in New Issue
Block a user