Open Saketh-Chandra opened 3 years ago
In production, Django uses a WSGI server such as Gunicorn and a web server such as Nginx.
## .env file, Don't Share it with anyone!
SECRET_KEY='sc%oco$+(3$z$at=z4j)#l-+ym)+_b11389mdt2^12m$bf63%@' DEBUG = False CORS_ALLOW_ALL_ORIGINS=True
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
docker-compose up -d
Run services in the foreground: docker-compose up --build
docker-compose up --build
Inspect volume: docker volume ls and docker volume inspect proshop_django_staticfiles
docker volume ls
docker volume inspect proshop_django_staticfiles
View networks: docker network ls
docker network ls
Bring services down: docker-compose down
docker-compose down
:whale: Using Docker Compose
In production, Django uses a WSGI server such as Gunicorn and a web server such as Nginx.
Architecture:
Request Flow Diagram
:gear: Setup .env file
Edit the .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'
Run services in the background:
docker-compose up -d
Run services in the foreground:
docker-compose up --build
Inspect volume:
docker volume ls
anddocker volume inspect proshop_django_staticfiles
View networks:
docker network ls
Bring services down:
docker-compose down
Future Scope of Project :heavy_check_mark: