Skip to content

darcusfenix/microservice-cinema-comments

Repository files navigation

Microservice of comments about movies in a cinema

alt text

Install node dependencies

$ npm install

How to start or continue development ?

$ npm start

How to build for production ?

$ docker build -t darcusfenix/micro-cinema-comments:v1.0.0 .

How to run in production ?

$ docker run -it --name micro-cinema-comments \
-p 3000:3000 -d \
darcusfenix/micro-cinema-comments:v1.0.0

How to create a service in docker swarm ?

$ docker service create \
--replicas 5 \
--name micro-cinema-comments \
--update-delay 10s \
--publish 3001:3000 \
--env-file env \
darcusfenix/micro-cinema-comments:v1.0.0

How to update a service with new image in docker swarm and Zero downtime ?

$ docker service update \
--image darcusfenix/micro-cinema-comments:v1.0.1 \
micro-cinema-comments

How to follow logs of a container ?

$ docker logs --follow 5cae460ac10e

About

microservice for comments of movies in cinema

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published