Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 556 Bytes

File metadata and controls

32 lines (21 loc) · 556 Bytes

SimpleBank API Deployment Guide

This guide explains how to deploy the SimpleBank API using Docker.

Prerequisites

  • Docker and Docker Compose

Docker Deployment

Build and Run with Docker

# Build the Docker image
docker build -t simplebank-api:latest .

# Run the container
docker run -p 8000:8000 -e API_KEY=your_api_key simplebank-api:latest

Using Docker Compose

# Start the application with Docker Compose
docker-compose up -d

# Check logs
docker-compose logs -f

# Stop the application
docker-compose down