- Make docker defaults for prod and dev for kickstarting a project easy way
- Server: mongo + node + express + graphql
- Client: react + apollo + redux
docker-compose build
docker-compose up
(this kickstarts the nodemon environment too)
- Open
localhost:80/api/graphql
for the local server environemt - Open
localhost:3001
for the local client environemt
- Set
NODE_ENV
variable inDockerfile
in client and server to production. - Change the last command in
Dockerfile
for client tonpm run build
. - Change the last command in
Dockerfile
for server tonpm start
.