divanov11 / proshop_django

407 stars 430 forks source link

Now with Docker Support! #18

Open Saketh-Chandra opened 3 years ago

Saketh-Chandra commented 3 years ago

:whale: Using Docker Compose

In production, Django uses a WSGI server such as Gunicorn and a web server such as Nginx.

Architecture:

my docker -2

Request Flow Diagram

:gear: Setup .env file

SECRET_KEY='sc%oco$+(3$z$at=z4j)#l-+ym)+_b11389mdt2^12m$bf63%@' DEBUG = False CORS_ALLOW_ALL_ORIGINS=True

Super-User Credentials

SUPER_USER_NAME = 'root' SUPER_USER_PASSWORD = 'root' SUPER_USER_EMAIL = 'root@email.com'


### Usage

``` Shell
git clone https://github.com/Saketh-Chandra/proshop_django.git
cd proshop_django
docker-compose up --build

Run services in the background: docker-compose up -d

Run services in the foreground: docker-compose up --build

Inspect volume: docker volume ls and docker volume inspect proshop_django_staticfiles

View networks: docker network ls

Bring services down: docker-compose down

Future Scope of Project :heavy_check_mark: