Skip to content
/ docker-server Public template

Building infrastructure using docker (boilerplate)

Notifications You must be signed in to change notification settings

amamov/docker-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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