This repository contains a small FastAPI web application and config to run this application in containers. The app serves a simple HTML page, static files and exposes a healthcheck endpoint which verifies the database connection.
Note: the application source code is located in the app/ directory.
- From the repo root run:
docker compose up --build- The web app will be available at http://localhost:8000
Notes:
- The compose file defines a webservice and adb(Postgres) service. The database URL is injected into the container via theSQLALCHEMY_DATABASE_URLenvironment variable.
- Data is persisted to a Docker volume named db_data.
This is a repo for the GoIT course. If you're also a student working on similar exercises, feel free to use this as a reference, but make sure to understand the concepts and implement your own solution.
This project is created for educational purposes as part of the GoIT course curriculum.