Docker Compose Files

Docker Compose Files

Some typical docker compose examples.

Install Docker and Docker Compose

Take ubuntu for example

$ curl -sSL https://get.docker.com/ | sh
$ sudo pip install docker-compose

Docker-compose Usage

See Docker Compose Documentation.

Examples files

consul-discovery

Using consul to make a service-discoverable architecture.

elk_netflow

Elk cluster, with netflow support.

docker-compose scale es=3

haproxy_web

A simple haproxy and web applications cluster.

hyperledger

Quickly bootup a hyperledger cluster with several validator nodes, without vagrant or any manual configuratio
n. By default, the cluster enables PBFT as the consensus.

See hyperledger for more details.

mongo_cluster

Start 3 mongo instance to make a replica set.

mongo-elasticsearch

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

mongo_webui

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.

nginx_auth

Use nginx as a proxy with authentication for backend application.

packetbeat_ek

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

registry_mirror

docker registry mirror, with redis as the backend cache.

spark_cluster

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 老人的视角,没有什么是时间温柔不了
    doubanhaha阅读 150评论 0 0
  • 好久没有带妮妮去看世界,这次我们克服各种困难,提前预定好酒店,带妮妮玩儿去! 网评特别棒的度假村,亲子活动是特色。...
    9b63be390a48阅读 387评论 0 0
  • 原来就像手机一样,你很喜欢那个款那个型号,然而你没有钱,所以你就想尽一切办法得到它。为了早日拥有它,你选择了价...
    飞飛Fly阅读 322评论 2 0
  • 1摘抄句子 1.姚先生并不以为忤,只微微一笑道:“我们的瓦,是美丽的瓦,不能和寻常的瓦一概而论。我们的是琉璃瓦。”...
    笑颜于粤阅读 463评论 0 0