Skip to content

Small environment to test nodejs application, with docker compose.

Notifications You must be signed in to change notification settings

phwebcloud/nodejs-mysql-dockercompose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local deployment instruction

Install docker + docker compose

Ubuntu/Debian

https://docs.docker.com/engine/install/ubuntu/

CentOS/RedHat

https://docs.docker.com/engine/install/centos/

Docker Compose

https://docs.docker.com/compose/install/

Testing...

  • After installing docker and docker compose, run the comand above inside the root directory:

    docker-compose up --build -d

  • Check created containers:

    docker ps

  • Access the application using the Server IP on browser, or just localhost(in case you installed locally).

  • To check the inserts on the database, run:

    docker exec mysql mysql -pdefpass -e 'SELECT * FROM preferences.preferences';

About

Small environment to test nodejs application, with docker compose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published