Skip to content

About

Docker setup for node react and postgres, planning to use express for the API and pg for queries. There is currently some weirdness with the node_modules folder caching, but I have confirmed that each docker container will pull the dependencies in its package.json including new ones that are not in the top level node_modules folder

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

docker-postgres-node-react

Steps to set up

  1. Connect to your server (I'm using Ubuntu)

  2. Install docker

  3. Install docker-compose

  4. Install npm

  5. Create the react project with -- npm install -g create-react-app@3

  6. Clone the repo into your project directory

  7. Change the paths if needed

  8. Run this command to create the persistent postgres volume -- docker volume create pgdata

When dependencies change, you will need to run docker-compose up --build

About

Docker setup for node react and postgres, planning to use express for the API and pg for queries. There is currently some weirdness with the node_modules folder caching, but I have confirmed that each docker container will pull the dependencies in its package.json including new ones that are not in the top level node_modules folder

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors