This is personal project to mount a simple dev arch with Node + MySQL.
Docker and docker-compose.
Place your data on the node folder
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
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 ;)