Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rgl/docker-swarm-cluster-ubuntu-vagrant

a 3-node docker swarm cluster wrapped in a vagrant environment
https://github.com/rgl/docker-swarm-cluster-ubuntu-vagrant

docker swarm ubuntu vagrant

Last synced: 2 months ago
JSON representation

a 3-node docker swarm cluster wrapped in a vagrant environment

Awesome Lists containing this project

README

        

a 3-node docker swarm cluster wrapped in a vagrant environment

# TODO

* Install http://port.us.org/
* Use https://github.com/codedellemc/rexray with https://hub.docker.com/r/rexray/rbd/ for ceph storage
AND see https://github.com/codedellemc/labs too
OR https://github.com/contiv/volplugin
* Install https://github.com/weaveworks/scope
* Install https://github.com/goharbor/harbor instead of the vanilla repository

# Usage

Build and install the [Ubuntu Linux Base Box](https://github.com/rgl/ubuntu-vagrant).

Add the following entries to your `/etc/hosts` file:

```
10.10.0.201 registry.example.com
10.10.0.201 docker1.example.com
10.10.0.202 docker2.example.com
10.10.0.203 docker3.example.com
```

Run `vagrant up` to launch the 3-node cluster.

Try the following endpoints:

* [portainer](http://docker1.example.com:9000): a [Portainer](https://portainer.io/) instance that you can use to manage docker.
* [go-info](http://docker1.example.com:8000): a example that shows how an Go application can use secrets and configs.

# Troubleshoot

* Set the docker daemon debug mode and watch the logs:
* set `"debug": true` inside the `/etc/docker/daemon.json` file
* restart docker with `systemctl restart dockerd`
* watch the logs with `journalctl --follow`