This is a simple Node.js & MongoDB Docker Compose config for use on Heroku.
Example app comes with Koa, GraphQL, Mongoose, and ESLint setup.
Run docker-compose up
.
By default the Node.js container will listen on port 8080
, to change it edit the ports
section of the web
service in the docker-compose.yml
file.
By default the MongoDB container will listen on port 27017
, to change it edit the ports
section of the mongo
service in the docker-compose.yml
file.
Docker Compose will run yarn dev
if NODE_ENV=development
or yarn start
if NODE_ENV=production
. See .env.example
.