Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.09 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.09 KB

Django Project with Docker Compose

This is a Django project setup with Docker Compose for easy development and deployment.

Prerequisites

  • Docker
  • Docker Compose

Getting Started

  1. Clone the repository:

    git clone https://github.com/Allexik/starnavi_test.git
    cd starnavi_test
    1. Create a .env file for environment variables:

      touch .env

      Add the following content to .env file:

      GCP_PROJECT_ID=your-gcp-project-id
      GCP_MODELS_LOCATION=your-gcp-models-location
      GOOGLE_APPLICATION_CREDENTIALS_JSON=your-gcp-credentials-json
  2. Build and run the containers:

    docker-compose up --build
  3. Apply migrations and create a superuser:

    docker-compose exec web python manage.py migrate
    docker-compose exec web python manage.py createsuperuser
  4. Access the application:

    Open your browser and go to http://localhost:8000.

  5. Run tests:

    docker-compose exec web python manage.py test