Skip to content

MediaSoftDev/NodeDockSQL

Repository files navigation

Nest Logo

A progressive Docker Develop faster. Run anywhere. Build with the #1 most-used developer tool

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Donate us Support us Follow us on Twitter

Description

NodeDockSQL framework TypeScript starter repository.

Project setup

$ yarn install

Compile and run the project

# development
$ yarn run start

# watch mode
$ yarn run dev

Docker Command

# development
$ docker compose down

$ docker compose up --build

Dockerfile

FROM node:20 
WORKDIR /myapp
COPY package.json .
RUN npm install

COPY . .
CMD npm start

Docker Compose

version: '3.8'

services:
  mysqldb:
    image: mysql
    env_file: ./.env
    environment:
      - MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
      - MYSQL_DATABASE=$MYSQL_DATABASE
    ports:
      - $MYSQL_LOCAL_PORT:$MYSQL_DOCKER_PORT
  
  app:
    build: .
    depends_on:
      - mysqldb
    links:
      - mysqldb
    ports:
      - $NODE_LOCAL_PORT:$NODE_DOCKER_PORT

Deployment

When you're ready to deploy your NodeDockSQL application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.

Resources

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

Software of Development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published