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.
You should have docker and docker-compose installed on your machine.
- 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
-
Web App with React at
-
API as NodeJS project with GraphQL at
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.