Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.6 KB

File metadata and controls

52 lines (32 loc) · 1.6 KB

docker-compose installation using repositories from The Road to GraphQL (React Express Postgres)

The docker container clone code from the books "The Road to GraphQL" and "The Road to React" to start a multi-container application which is using the technologies: React, GraphQL, Apollo, Express, NodeJS and Postgres.

The code is cloned from the following repositories into two separated containers

Additionally a container with a Postgres database will be initiated.

Requirements

You should have docker and docker-compose installed on your machine.

Installation

  • Clone the project from the repo,
  • build your project using
 $ docker-compose build
  • and/or run the following command directly inside the directory
 $ docker-compose up -d

Your project will run in the browser as

Deployment

Included is a deployment script deployment-react-graphql-express-postgres.sh so that the application can be started easily.

Be careful as this script

  • stops all relevant container
  • deletes all exited container
  • deletes unused images
  • deletes orphaned volumes
  • and deletes orphaned network nodes.

Finally it builds and starts up all docker images.