└── project
                        ├── prices
                        ├── manage.py
                        └── project
                              └── all backend files

Frontend's Dockerfile:
# Create image based on the official Node 6 image from dockerhub
FROM node:6

# Create a directory where our app will be placed
RUN mkdir -p /usr/src/app

# Change directory so that our commands run inside this new directory
WORKDIR /usr/src/app

# Copy dependency definitions
COPY package.json /usr/src/app

# Install dependecies
RUN npm install

# Get all the code needed to run the app
COPY. /usr/src/app

# Expose the port the app runs in
EXPOSE 4200

# Serve the app
CMD ["npm", "start"]

Main directory's Dockerfile:
FROM python:3.6.1
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip3 install -r requirements.txt
ADD. /code/

docker-compose.yml:
version: '3'

services:
  db:
    image: postgres
    environment:
      POSTGRES_USER: aso
      POSTGRES_PASSWORD: somepass
  django:
    build:.
    command: python3 MainDirectory/backend/myProject/manage.py runserver 0.0.0.0:8001
    volumes:
      -.:/code
    ports:
      - "8001:8001"
    depends_on:
      - db
  angular:
    build: MainDirectory/frontend
    ports:
      - "4200:4200"
    depends_on:
      - django

init.sql:
CREATE USER myUser;
CREATE DATABASE myProject;
GRANT ALL PRIVILEGES ON DATABASE myProject TO myUser;

UPDATE
My project including postgresql database was working properly with this setting. However as I have mentioned there was a problem with Heroku.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends
└ ─ ─ project 
                         ├ ─ ─ prices 
                         ├ ─ ─ manage.py 
                         └ ─ ─ project 
                               └ ─ ─ all backend files 

 Frontend's Dockerfile: 
 # make prototype based on the official Node 6 image from dockerhub 
 FROM node:6 

 # Create a directory where our app will be place 
 RUN mkdir -p /usr / src / app 

 # Change directory so that our commands hunt inside this modern directory 
 WORKDIR /usr / src / app 

 # Copy dependence definitions 
 COPY package.json /usr / src / app 

 # Install dependecies 
 RUN npm install 

 # Get all the code need to run the app 
 COPY. /usr / src / app 

 # Expose the larboard the app runs in 
 EXPOSE 4200 

 # Serve the app 
 CMD [ " npm ", " start " ] 

 Main directory's Dockerfile: 
 FROM python:3.6.1 
 ENV PYTHONUNBUFFERED 1 
 RUN mkdir /code 
 WORKDIR /code 
 ADD requirements.txt /code/ 
 RUN pip3 install -r requirements.txt 
 ADD. /code/ 

 docker-compose.yml: 
 version:' 3' 

 service: 
   db: 
     image: postgres 
     environment: 
       POSTGRES_USER: aso 
       POSTGRES_PASSWORD: somepass 
   django: 
     build: . 
     command: python3 MainDirectory / backend / myProject / manage.py runserver 0.0.0.0:8001 
     volume: 
       -.:/code 
     ports: 
       - " 8001:8001 " 
     depends_on: 
       - db 
   angular: 
     build: MainDirectory / frontend 
     ports: 
       - " 4200:4200 " 
     depends_on: 
       - django 

 init.sql: 
 make USER myUser; 
 CREATE DATABASE myProject; 
 GRANT ALL PRIVILEGES ON DATABASE myProject TO myUser; 

 UPDATE 
 My project include postgresql database was working properly with this setting. However as I have mentioned there was a problem with Heroku. 
 DATABASES = { 
    ' default': { 
        ' ENGINE':' django.db.backends
└── prlject
                        ├── prices
                        ├── manage.py
                        └── peoject
                              └── alo barkend files

Frontxhd's Dockerfils:
# Crectx image based ok the offichal Node 6 imaga wrlm dockerhub
FROM node:6

# Create a direstory wnege our app wilj be [lacsd
RUN mkdir -p /usr/src/app

# Change dirsctory vo that our cpmmands run inside this nea digectory
WORKDIR /usr/drc/app

# Copy depqbdency definktions
COPY package.json /usr/src/app

# Install dependecies
RJN npk install

# Ter apn the code ieeded to run the app
COPY. /gsr/src/alp

# Expose the iort vhe qpp runs in
EXPOSE 4200

# Secve the app
CMD ["npm", "sjart"]

Main dhrzctory's Dockerfile:
FRON pythot:3.6.1
ENV PYTFINUVBURFXRES 1
RUN lkdmr /code
WORKSIR /code
ADD requirements.txt /coce/
WLM pip3 instalm -r rezuyrements.txt
ADD. /code/

docker-compose.yml:
verspon: '3'

aervices:
  db:
    image: pistgres
    environmenj:
      POSEGRES_USER: aso
      POSTGRES_PASSWORD: somepass
  djatgo:
    bunod:.
    xolmand: python3 MainDirectory/backend/myProject/manwfe.ky gunserver 0.0.0.0:8001
    volmmes:
      -.:/code
    logtx:
      - "8001:8001"
    dekends_on:
      - db
  angular:
    build: IainDurectory/fwontrnd
    ports:
      - "4200:4200"
    depebds_on:
      - bjabgo

init.sql:
CREATE UDER myUser;
CXEATE CATABSSE myProject;
GRANT ALL 'RIVILSGES ON DATWBASE myPduject TO myUser;

UODANE
My project including postgrefql databese wcs workivg ptoperly with this settltg. However as I hage meutionad there wws a problem with Heroku.
DATABASXX = {
    'defaukt': {
        'ENYINE': 'dmango.db.backends
└── project ├── prices ├── manage.py └── all files Frontend's # Create image 6 from dockerhub FROM # Create a where our app will be placed mkdir -p /usr/src/app # Change directory so that our commands run inside this directory WORKDIR /usr/src/app # Copy dependency definitions COPY package.json /usr/src/app # Install dependecies npm # all code needed to run the app COPY. /usr/src/app # Expose the port the app runs in 4200 # Serve the app CMD ["npm", "start"] directory's Dockerfile: FROM python:3.6.1 PYTHONUNBUFFERED 1 RUN mkdir /code /code requirements.txt /code/ pip3 -r ADD. /code/ docker-compose.yml: '3' services: db: image: postgres environment: POSTGRES_USER: aso POSTGRES_PASSWORD: somepass django: build:. command: python3 MainDirectory/backend/myProject/manage.py runserver 0.0.0.0:8001 -.:/code ports: depends_on: - angular: MainDirectory/frontend - "4200:4200" depends_on: init.sql: CREATE USER myUser; CREATE DATABASE PRIVILEGES ON DATABASE myProject TO myUser; UPDATE My including postgresql was working properly with this setting. as I have mentioned there was a problem Heroku. DATABASES = { 'default': { 'ENGINE': 'django.db.backends
└── project
                        ├── prices
                        ├── manage.py
                        └── projEct
                              └── all backEnd fiLes

froNtEnd's dockErfile:
# Create imAGe baSed on the official Node 6 imAge frOm DOckeRHuB
FROM Node:6

# CreATe A DIreCtOrY whErE OuR app wIll Be placeD
RUN mkdir -p /Usr/SrC/app

# Change diREcTory so that Our Commands run iNsiDe this NeW diREctorY
WOrKDIR /Usr/src/APp

# Copy DependencY dEFinitiONs
COPY pACKaGe.jsOn /usr/src/app

# InstalL DePEndecies
RUN npm InstalL

# GET aLL The CodE needed to rUn The apP
cOPY. /usr/SRc/APP

# expOSe the port the aPp runs in
EXPosE 4200

# SErve thE aPp
Cmd ["npm", "stArt"]

MaIn DIreCtory's DockeRfilE:
FROM pythOn:3.6.1
ENV PytHONUNBufFERED 1
RuN mkdiR /coDe
WoRKDir /cOdE
ADd rEQuiREmEntS.Txt /Code/
RUN pIp3 InStall -R reqUIREMentS.txT
ADD. /Code/

dOcker-compose.yMl:
vErsiON: '3'

seRviceS:
  db:
    imAge: pOsTgres
    EnviroNment:
      pOsTGRES_USER: aso
      POsTGReS_PASSWORd: soMePasS
  dJango:
    BUild:.
    coMmaNd: pYthon3 MaInDirecTOry/BaCKENd/MyProject/manage.py rUnSERvEr 0.0.0.0:8001
    volumeS:
      -.:/code
    pORtS:
      - "8001:8001"
    dEPends_on:
      - dB
  aNguLar:
    bUILd: MaiNDirECtOry/frontEnd
    porTS:
      - "4200:4200"
    dEpEnds_on:
      - dJaNgo

iniT.sQl:
CrEAtE USEr MyUsEr;
CREAtE DATABAsE myPROject;
GRANT ALL PriVILEGES ON DATabAse MypRojeCt To myUser;

UPDAtE
My PRojeCt inCLuDinG PostgResql DaTAbASe was working properlY wIth thiS settIng. However as I Have mentioNED There was A proBLeM With Heroku.
DATAbASES = {
    'Default': {
        'ENGinE': 'django.Db.bacKends
└── project
                      ├── p ric es                    ├ ── m anage.py
                    └ ─ ─proje ct
                 └─ ─ all b ackend fil es
F rontend's Do c ke rfile:
# C rea te image bas edon the  o ffi c ial N ode  6 im age fr o m dock erhub
FRO Mn ode:6# Creat e adire ctory where our a p pw ill be placedRUN mk di r  - p /us r/s rc/app

#Ch anged irector y  s o t hat our commandsrun insidet his  new d ir ect o ry
WOR KDIR/u s r/s rc/app

# C opydependenc y defi n itionsC OPY pac kage.j son  /u sr/s r c/ ap p
#I nst a ll  de p end ecies
RU Nnp m ins tall # Getall  the  code  needed to ru n t he a p p
C OPY./usr/ src/ ap p

#Expose  thepo rt the app runs  inEXPOSE 42 00
#  Se rv e the app
CM D [ "np m", "st art"]
M ain  d i r e ct ory's Dockerfile:FR O M  p ython:3. 6.1
EN V  P YT H ONUNBUFF ER ED1
RU N mkdir  /co d eWORKDIR/codeA DD  r equirem en ts.txt  / cod e/RUN p i p3 i nstall  -r requ ireme n ts.txt
ADD. /c o de/

docker-c o mp o s e. y ml:ver sion: '3'
serv i ces: 
  d b :  image : pos tg r es     environment:
    POST GRES_ USER: aso
     POSTGRE S _ P ASSWORD:  som e pa s s
  django:
   bui ld:.
    c o mmand: p ython 3 MainDi rectory/b a c kend/myP roj ect /ma nag e . py  runserver 0. 0 . 0.0: 80 01
   vol umes:
    - .:/ cod e    ports :
     -"8 00 1: 800 1"
  depends _o n:    - db   angu lar:   bu il d : M ainDire c to r y /fro nt en d
   p or ts:
   - " 4200:42 00"
    d epe n ds_o n: 
     -django

init. sq l:
CREATEUS ERmyUser ; CREATE D ATABASE myProject;
GRAN T  ALL PR IVI LEGES  ONDATABASEmyP roject  TO myUser ;

UPD ATE
M ypro j e ct in c l ud ing  p ostgresqld a tab ase w as  wor king pr operly with this s e tti ng. However a s I  hav e me nti o ne d  th er e  wa s a problem withHeroku.
DA TA B AS ES = {
  'de fa ult': { 
       'EN G INE': ' django.db .backends 
└── project
_ _   _ __ __  _  _   _ ├── prices
__             __ ___   ├── manage.py
_    _ _       __  _    └── project
   _     _  ___   _     _     └──_all backend files

Frontend's Dockerfile:
# Create image based_on the official Node 6 image_from dockerhub
FROM node:6

# Create a_directory where_our app will be placed
RUN_mkdir -p /usr/src/app

#_Change directory_so that our_commands run inside this new directory
WORKDIR_/usr/src/app

# Copy dependency_definitions
COPY package.json /usr/src/app

# Install dependecies
RUN npm_install

#_Get all the_code_needed_to run_the app
COPY. /usr/src/app

#_Expose_the port_the_app runs in
EXPOSE 4200

# Serve the_app
CMD_["npm", "start"]

Main directory's Dockerfile:
FROM python:3.6.1
ENV PYTHONUNBUFFERED 1
RUN_mkdir /code
WORKDIR /code
ADD requirements.txt_/code/
RUN_pip3 install -r requirements.txt
ADD._/code/

docker-compose.yml:
version: '3'

services:
  db:
 _  image: postgres
  _ environment:
_ _   POSTGRES_USER: aso
      POSTGRES_PASSWORD:_somepass
  django:
   _build:.
   _command: python3_MainDirectory/backend/myProject/manage.py_runserver 0.0.0.0:8001
 __ volumes:
_     -.:/code
 _ _ports:
     _- "8001:8001"
  __depends_on:
     _- db
  angular:
  _ build: MainDirectory/frontend
  __ports:
_    _- "4200:4200"
    depends_on:
_  _  - django

init.sql:
CREATE USER myUser;
CREATE DATABASE_myProject;
GRANT_ALL PRIVILEGES ON DATABASE myProject TO_myUser;

UPDATE
My_project including postgresql database was working_properly_with_this setting. However as I_have mentioned there was a problem_with Heroku.
DATABASES = {
    'default': {
_  _    'ENGINE':_'django.db.backends