Skip to content

Bladerunner2014/autorepo

Repository files navigation

Django Python Postgres JWT Docker Nginx Swagger MinIO Badge

How does it works?

Run with docker:

Run the following command in the project root:

# clone the project
git clone https://github.com/Bladerunner2014/autorepo.git

cd autorepo

# run project with docker and docker-compose
docker-compose up -d

This command will build container image and run it on 80000 port. you can change the listening port in docker-compose file by changing the 8008 in ports section:

version: '3'

services:

  autorepo:
    build: .
#    command: gunicorn core.wsgi:application --bind 0.0.0.0:8000
    expose:
      - "8000"
    depends_on:
          - postgres
  postgres:
    image: postgres
    ports:
      - "5432"
    volumes:
      - db:/var/lib/postgresql/data

    environment:
      POSTGRES_USER: 'postgres'
      POSTGRES_PASSWORD: '1234'
      POSTGRES_DB: vehicle
#  nginx:
#    build: ./nginx
#    restart: always
#    ports:
#      - "1337:80"
#    depends_on:
#        - wst-mng
volumes:
  db:

Run bare metal on your machine:

API documents are available in swagger:

After running the app, open the following address in your browser:

http://127.0.0.1:8000/api/schema/docs/

Note:

License

Licence

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published