Golang Docker Machine, Docker Swarm, Docker Stack Example
Branch: master
Clone or download
Latest commit e78d8af Feb 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
model initial commit Dec 24, 2018
.gitignore initial commit Dec 24, 2018
Dockerfile Readme Feb 3, 2019
README.md docker swarm Feb 3, 2019
app.go log Dec 24, 2018
docker-compose.yml Readme Feb 3, 2019
docker-stack.yml Readme Feb 3, 2019
go.mod initial commit Dec 24, 2018
go.sum docker-stack Dec 24, 2018

README.md

go-docker-swarm

  • Docker: Create a single container.
  • Docker Compose: Manager and Orchestrate multiple containers on a single host.
  • Docker Machine: Create and manage VMs running docker daemon.
  • Docker Swarm: A Cluster of docker nodes.
  • Docker Stack: Deploy, Manage, and Orchestrate multiple containers on a swarm cluster.

Running the app on a single host using docker-compose

$ docker-compose up
$ curl http://localhost:8080/
3f741654cee0: Welcome! Please hit the `/qod` API to get the quote of the day.

$ curl http://localhost:8080/qod
3f741654cee0: If I work as hard as I can, I wonder how much I can do in a day?

Running the app on a swarm cluster using docker-stack

Read the tutorial: Container Orchestration with Docker Machine, Docker Stack, and Swarm