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
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.