Skip to content

Dockerize Backend #6

@NicholasLe04

Description

@NicholasLe04

Dockerize Backend

Overview

We need to containerize our FastAPI application with SQLite3 database for easier deployment and development environment consistency.

Requirements

  • Create a Dockerfile for the FastAPI application
  • Configure SQLite3 database persistence
  • Ensure proper volume mounting for database files
  • Set up appropriate environment variables
  • Document build and run commands

Technical Details

  • Base the image on Python slim
  • Include all dependencies from requirements.txt
  • Configure SQLite3 to store data in a persistent volume
  • Expose the correct port for the FastAPI server
  • Include healthcheck endpoint

Acceptance Criteria

  • Container successfully builds without errors
  • FastAPI application runs inside the container
  • SQLite3 database is accessible and persistent between container restarts
  • API endpoints are accessible from outside the container

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions