Skip to content

darcusfenix/microservice-cinema-movies

Repository files navigation

Microservice of 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-movies:v1.0.0 .

How to run in production ?

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

How to create a service in docker swarm ?

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

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

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

How to follow logs of a container ?

$ docker logs --follow 'CONTAINER ID'

About

microservice for movies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published