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:
After running the app, open the following address in your browser:
http://127.0.0.1:8000/api/schema/docs/
Note: