杨捷 php_杨捷/docker-compose-files

Docker Compose Files

Some typical docker compose examples.

If you're not familiar with Docker, can have a look at these books (in CN):

Install Docker&Docker Compose

$curl -sSL https://get.docker.com/ | sh

$sudopip installdocker-compose

Docker-compose Usage

Examples files

Using consul to make a service-discoverable architecture.

ELK example.

Elk cluster, with netflow support.

docker-compose scale es=3

A simple haproxy and web applications cluster.

Quickly bootup a hyperledger fabric cluster with several validator nodes, without vagrant or any manual configuration.

Now we support from v0.6 to v1.0.x.

See hyperledger_fabric for more details.

Start a simple kafka service for testing.

Start 3 mongo instance to make a replica set.

Start mongo (as cluster) and elasticsearch, use a mongo-connector to sync the data from mongo to elasticsearch.

Start 1 mongo instance and a mongo-express web tool to watch it.

The mongo instance will store data into local /opt/data/mongo_home.

The web UI will listen on local 8081 port.

Use nginx as a proxy with authentication for backend application.

Demo the packetbeat, elasticsearch and kibana.

Some kibana dashboard config files are included.

To import them, after all containers startup, go inside the kibana container, and run

$cd /kibana/beats-dashboards-1.0.1 && ./load.sh http://elasticsearch:9200

docker registry mirror, with redis as the backend cache.

Spark cluster with master and worker nodes.

docker-compose scale worker=2

Try submitting a test pi application using the spark-submit command.

/urs/local/spark/bin/spark-submit --master spark://master:7077 --class org.apache.spark.examples.SparkPi /usr/local/spark/lib/spark-examples-1.4.0-hadoop2.6.0.jar 1000

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值