Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages