配置位置: /mnt/hgfs/workplace/container_config/nginx:/etc/nginx/conf.d
nginx:
docker run -p 80:80 -v /mnt/hgfs/workplace/container_config/nginx:/etc/nginx/conf.d -d nginx
kafka:
docker run -p 9092:9092 --name my-kafka -v /mnt/hgfs/workplace/container_config/kafka/kafka-logs:/kafka --env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 -env KAFKA_ADVERTISED_HOST_NAME=127.0.0.1 -env KAFKA_MESSAGE_MAX_BYTES=2000000 -d wurstmeister/kafka
kafka-manager:
docker run -p 9020:9000 --env ZK_HOSTS=192.168.67.137:2181 -d sheepkiller/kafka-manager
elasticsearch:
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.3.2
docker run --link YOUR_ELASTICSEARCH_CONTAINER_NAME_OR_ID:elasticsearch -p 5601:5601 {docker-repo}:{version}
docker run --link 816fc4b903f4:elasticsearch -p 5601:5601 -d docker.elastic.co/kibana/kibana:7.3.2
docker run -d --name kibana --net elastic -p 5601:5601 -e "ELASTICSEARCH_HOSTS=http://192.168.67.137:9200" docker.elastic.co/kibana/kibana:7.3.2
docker run -d -p 8848:8848 -e MODE=standalone -e PREFER_HOST_MODE=hostname -v /mnt/hgfs/workplace/container_config/nacos/custom.properties:/home/nacos/init.d/custom.properties -v /mnt/hgfs/workplace/container_config/nacos/logs:/home/nacos/logs --restart always --name nacos nacos/nacos-server