Web api application build using fastapi
181
A production-ready FastAPI application containerized for easy deployment.
docker pull yourusername/fastapi-app:latest
docker run -p 8000:8000 yourusername/fastapi-app:latest
Visit http://localhost:8000/docs for API documentation.
| Variable | Description | Default |
|---|---|---|
PORT | Server port | 8000 |
DATABASE_URL | Database connection | - |
API_KEY | API authentication key | - |
latest - Latest stable releasev1.0.0 - Specific versiondev - Development builddocker run -d -p 8000:8000 yourusername/fastapi-app
docker run -d \
-p 8000:8000 \
-e DATABASE_URL="postgresql://..." \
-e API_KEY="your-key" \
yourusername/fastapi-app
version: '3.8'
services:
api:
image: yourusername/fastapi-app:latest
ports:
- "8000:8000"
environment:
- DATABASE_URL=${DATABASE_URL}
git clone https://github.com/yourusername/fastapi-app
cd fastapi-app
docker build -t fastapi-app .
curl http://localhost:8000/health
MIT License - see LICENSE file for details
Content type
Image
Digest
sha256:b79989d0d…
Size
56.4 MB
Last updated
10 months ago
docker pull ved4dev/fastapi-app