This repository has been archived by the owner. It is now read-only.
Open
Conversation
…ication create a docker-compose configration to deploy the nodejs app and a postgresql service. add configs for networks and open the port for the nodejs app (5000 for app, 9042 if you want to enable the debugger) and the database (for debugging, if it is needed). add a docker volume to persist the database.
create a Makefile inspired by gazr normalization to be able to easily deploy and manage the docker environment. this config let you launch basic docker-compose command to run and manage the services inside containers. add a section to the USER_GUIDE to explain how to use the Makefile commands to run your environment. Fixes: MLH#3 Refs: https://gazr.io/
Contributor
|
@antoine-amara Thanks for the PR. Give me a couple days to review and test it. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
create a docker-compose configuration to quickly deploy a development environment. This configuration will deploy a Nodejs container with the Nodejs process running inside and a postgres container which run Postgresql process. It exposes port 5000 to the host for the Nodejs app, it exposes the port 9042 if the developer wants to connect a chrome debugger onto it. It exposes Postgresql port too for debugging.
create a Makefile to abstract docker-compose commands, so any developers can launch and basically manage this development environment.
here is the commands available in the Makefile (this is a screenshot from the
make helpcommand):