Skip to content
This repository has been archived by the owner. It is now read-only.

Add docker compose #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

antoine-amara
Copy link

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 help command):

help

…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/
@nlaz
Copy link
Contributor

nlaz commented Apr 18, 2019

@antoine-amara Thanks for the PR. Give me a couple days to review and test it. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants