/NodeDevEnviroment

Simple project to run a PostgreSQL database on docker

Primary LanguageDockerfile

USER MANUAL

Overview

This is personal project to mount a simple dev arch with Node + MySQL.

Pre-requirements

Docker and docker-compose.

Requirements

Place your data on the node folder

How to

Delete the Entrypoint line from the NodeJS Dockerfile and uncomment the command line on the docker-compose node service.

Then, just run it:

$ docker-compose up -d 

Help commands

To stop the project:

$ docker-compose stop

To delete the project:

docker-compose stop
docker-compose rm

To rebuild the project (you have to do this everytime you change something on the node folder):

docker-compose up

To connect to the database container, you have to specify the host:

mysql -u foo -h 0.0.0.0 -p

Note: Don't forget to change the default values on the .env file ;)