Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/susilnem/docker-drf-postgresql-gunicorn-nginx
Docker implementation in Django with Postgresql, Gunicorn, Nginx
https://github.com/susilnem/docker-drf-postgresql-gunicorn-nginx
django django-rest-framework docker dockerfile gunicorn nginx
Last synced: about 12 hours ago
JSON representation
Docker implementation in Django with Postgresql, Gunicorn, Nginx
- Host: GitHub
- URL: https://github.com/susilnem/docker-drf-postgresql-gunicorn-nginx
- Owner: susilnem
- Created: 2023-02-08T16:39:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T12:31:25.000Z (about 1 month ago)
- Last Synced: 2024-12-07T13:19:24.529Z (about 1 month ago)
- Topics: django, django-rest-framework, docker, dockerfile, gunicorn, nginx
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Quick Start
Clone this repository to your local machine and rename the `.env.sample` file found in the root directory of the project to `.env`
Using Docker:
```
$ docker-compose up
$ docker-compose exec web python manage.py migrate
$ docker-compose exec web python manage.py createsuperuser
```or, manually:
1. Create a Python virtual environment and activate it.
2. Open up your terminal and run the following command to install the packages used in this project.```
$ pip install -r requirements.txt
```3. Set up a Postgres database for the project.
4. Run the following commands to setup the database tables and create a superuser.```
$ python manage.py migrate
$ python manage.py createsuperuser
```5. Run the development server using:
```
$ python manage.py runserver
```6. Check in browser go to http://localhost:8000/admin