Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 994 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 994 Bytes

this is server boilerplate with docker

Building infrastructure using docker stack, swarm, compose

build required image

  • docker build -t testapp_image:1.0.0 ./testapp

  • docker build -t nginx_image:1.0.0 ./nginx

init docker swarm

  • docker swarm init

deploy services in stack

  • docker stack deploy -c compose.yml core_stack
  • docker stack ls
  • docker service ls
  • docker service ps core_stack_nginx
  • docker service logs <서비스에_해당하는_컨테이너_id>
  • docker stack rm core_stack

dependency

TODO

  • env file -> secret