Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

kylinsystems/ksys-docker-cloud

Repository files navigation

The KSYS-Docker-Cloud

KSYS Docker Cloud Infrastructure by Docker Swarm

  • Proxy : traefik
  • Management : portainer, swarmpit, registry
  • LDAP : openldap, phpldapadmin, ldapaccountmanager
  • Logging : graylog
  • Monitoring : prometheus, grafana
  • ELK : Elasticsearch, logstash, Kibana

Swarm Docker Cluster

Single Node : master and slave in one Docker Node (for testing) Multiple Node : Nultiple master and slave nodes (for production)

1.1 Create a Swarm Cluster (Windows 10/Hyper-V)

https://docs.docker.com/get-started/part4/#create-a-cluster

First, quickly create a virtual switch for your virtual machines (VMs) to share, so they can connect to each other.

  1. Launch Hyper-V Manager
  2. Click Virtual Switch Manager in the right-hand menu
  3. Click Create Virtual Switch of type External
  4. Give it the name "My Virtual Switch", and check the box to share your host machine’s active network adapter

Now, create a couple of VMs using our node management tool, docker-machine:

docker-machine create -d hyperv --hyperv-virtual-switch "My Virtual Switch" mymanager1
docker-machine --debug --native-ssh create -d hyperv --hyperv-virtual-switch "My Virtual Switch" myworker1

1.2 Create a single Swarm Node in Docker Desktop (Windows 10)

docker swarm init

2. Usage

3. Reference

Grafana Dashboard

OpenLDAP

Using below ldapsearch script within openldap container to test LDAP user, replace [CONTAIENR ID] with real ID.

Or you may connect to openldap container console in Portainer, then ldapsearch in console directly.

docker exec [CONTAINER ID] ldapsearch -x -H ldap://localhost -b dc=ldap,dc=example,dc=org -D "cn=admin,dc=ldap,dc=example,dc=org" -w admin

LDAP Account Manager

Change [LAM Configuration] -> [Edit Server Profiles]

About

KSYS Cloud Infrastructure by Docker Swarm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages