-
Notifications
You must be signed in to change notification settings - Fork 0
2. Setup
This document provides step-by-step instructions to set up the project locally.
Before starting, make sure you have the following installed on your machine:
-
Docker:
- Install Docker from the official website.
-
Docker Compose:
- Docker Compose is included with Docker Desktop. Verify the installation by running:
docker-compose --version
- Docker Compose is included with Docker Desktop. Verify the installation by running:
-
PostgreSQL:
- A running instance of PostgreSQL. You can install it locally or use a cloud-hosted service.
Clone the project repository and navigate into the project directory:
git clone https://github.com/TamerOnLine/MystroTamer-FastAPI-Docker.git
cd MystroTamer-FastAPI-Docker
Create a .env
file in the root directory and add the required environment variables. Here's an example .env
file:
POSTGRES_USER=your_db_user
POSTGRES_PASSWORD=your_db_password
POSTGRES_DB=your_db_name
POSTGRES_HOST=db
POSTGRES_PORT=5432
SECRET_KEY=your_secret_key
Make sure to replace the placeholder values with your actual configuration.
Build and run the application using Docker Compose:
docker-compose up --build
This will:
- Build the necessary Docker images.
- Start the application and its dependencies.
Once the containers are running, you can access the application at:
http://localhost:8000
docker-compose down
docker-compose up --build
docker-compose logs
If you encounter issues during the setup process, consider the following solutions:
Verify that Docker is installed and running on your system:
docker --version
Inspect the logs for error messages:
docker-compose logs
Ensure the PostgreSQL instance is running and accessible with the credentials provided in the .env
file.
If you continue to experience issues, please open a ticket in the GitHub Issues section with detailed information about the problem.
Hi! I'm Tamer Hamad Faour, the maintainer of this project. I specialize in FastAPI, Docker, and AI technologies.
- 💼 LinkedIn: TamerOnLine
- 💻 GitHub: TamerOnLine
- 🎥 YouTube Channel: MystroTamer
- 📊 Kaggle: TamerOnLine
- 🌐 Website: MyStroTamer
Feel free to reach out for collaboration or queries at info@tameronline.com.