Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.13 KB

File metadata and controls

37 lines (23 loc) · 1.13 KB

Running the Project with Docker

This section provides instructions to set up and run the project using Docker.

Prerequisites

  • Ensure Docker and Docker Compose are installed on your system.
  • The project requires Python 3.12 and PostgreSQL as specified in the Dockerfile and Compose file.

Environment Variables

  • Define the following environment variables in a .env file or directly in the Compose file:
    • POSTGRES_USER: Database username (default: user)
    • POSTGRES_PASSWORD: Database password (default: password)
    • POSTGRES_DB: Database name (default: app_db)

Build and Run Instructions

  1. Build the Docker images and start the services:

    docker-compose -f insta-compose.yaml up --build
  2. Access the application at http://localhost:8000.

Exposed Ports

  • Application: 8000 (mapped to host 8000)
  • Database: Not exposed to the host system.

Notes

  • The application uses Gunicorn as the WSGI server.
  • Ensure the requirements.txt file is up-to-date with the necessary Python dependencies.

For further details, refer to the project documentation or contact the development team.