Example for dockering monorepo NX via multistage building.
> docker-compose up
- install dependencies:
> yarn
- start project:
> yarn start:all
There are 3 fronts and 1 server:
Each container runs on its own port:
localhost:4201
for first React applocalhost:4202
for second React applocalhost:4203
for first Angular applocalhost:4310
for nodejs server
For serve static files (fronts) uses nginx.
For serve server uses pm2.