Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 666 Bytes

File metadata and controls

45 lines (31 loc) · 666 Bytes

REACT-NODEJS-MYSQL-DOCKER

Starter Project

Docker compose : NodeJS and MySQL app with React in a docker

Before start editing the code

$ cd client
$ yarn install
$ cd server
$ yarn install

Commands docker-compose

$ docker-compose build --no-cache
$ docker-compose up -d
$ docker-compose ps
$ docker-compose down

Live Docker Logs

$ docker-compose logs --tail=[number] -f [container]

.env file example

MYSQL_USER=sampleuser
MYSQL_PASSWORD=samplepassword
MYSQL_DATABASE=sampledb

MYSQL_HOST=localhost
MYSQL_ROOT_PASSWORD=root