Skip to content

sdiazbarraza/basic-structure-docker-django-nginx-reactjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base structure project Docker + Nginx + Postresql + PgAdmin + Django

This project has backend api container make with django , frontend container made wih reactjs and database container made with Postgresql

How to run

 docker-compose build

Migrations

Login backend container

docker-compose exec -it  projectdock_backend_1 bash

Create migrations

python manage.py makemigrations backend

Apply migrations

python manage.py migrate backend

Rollback migrations

python manage.py migrate backend zero

Go to frontend

In the browser

localhost

Go to pgAdmin

In the browser to connect with database

localhost:7355