CarlitosDroid / docker-compose-nodejs-mysql

This project sample uses nodejs express framework and MySQL as a specialized database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#DOCKER-COMPOSE-NODEJS-EXPRESS-MYSQL In this sample, we will look at the functionality provided by 'Docker Compose' for defining and running multi-container Docker applications.

We are going to use 'MySQL' like our specialized database and 'Node.js' as our platform for creating highly performant web applications.

#ScreenShots

docker_compose

docker_compose

RUN THE PROJECT

docker-compose up

INSPECT YOUR MYSQL CONTAINER(to see your database)

  1. docker ps
  2. docker exec -it YOUR_MYSQL_CONTAINER_ID bash
  3. mysql -u root -p
  4. put the password(123)
  5. enter
  6. use CHIRINOS;
  7. show tables;
  8. describe EMPLOYEE;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';

About

This project sample uses nodejs express framework and MySQL as a specialized database.


Languages

Language:JavaScript 80.2%Language:Pug 7.7%Language:Dockerfile 6.3%Language:Shell 3.1%Language:CSS 2.7%