Skip to content

hirurg-lybitel/nx-docker-sample

Repository files navigation

Nx-docker-sample

Example for dockering monorepo NX via multistage building.

Starting

For create and run images:

> docker-compose up

For run in development mode without dockering:

  • install dependencies:
> yarn
  • start project:
> yarn start:all

Description

There are 3 fronts and 1 server:

image

Each container runs on its own port:

  • localhost:4201 for first React app
  • localhost:4202 for second React app
  • localhost:4203 for first Angular app
  • localhost:4310 for nodejs server

For serve static files (fronts) uses nginx.

For serve server uses pm2.