- Build the image using
docker image build -t bbs-v2:1.0 .
- Deploy the image using
docker stack deploy -c app-stack.yml bbs-v2
- Read Logs Using
docker service logs bbs-v2_bbs-v2
- Stop Service Using
docker stack rm bbs-v2
To install a new dependency, start the image, then use the docker exec -it bbs-v2_web.1.oz4c0qbw3wj18yodlrsnlreq0 npm i aws-sdk
to install a package.