Skip to content

Instantly share code, notes, and snippets.

@thinkmicroservices
Last active February 22, 2020 02:06
Show Gist options
  • Save thinkmicroservices/4c29f1c890ee82c2c51d0a14b8a3a91b to your computer and use it in GitHub Desktop.
Save thinkmicroservices/4c29f1c890ee82c2c51d0a14b8a3a91b to your computer and use it in GitHub Desktop.
Docker-Compose file for ConfigurationService, Fluentd, ElasticSearch and Kibana
## docker-compose -f ./dc-01-config.yml up -d
## starts up:
## - elasticsearch
## - fluentd
## - kibana
## - ConfigurationService
version: "3.1"
services:
################
# Elastisearch # https://geowarin.com/spring-boot-logs-in-elastic-search-with-fluentd/
################
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
# container_name: elasticsearch
environment:
- "discovery.type=single-node"
expose:
- "9200"
ports:
- "9200:9200"
networks:
- spring_ri_network
##########
# Kibana # http://localhost:5601/app/kibana#/home
##########
kibana:
image: kibana:7.2.0
links:
- "elasticsearch"
ports:
- "5601:5601"
depends_on:
- elasticsearch
networks:
- spring_ri_network
###########
# fluentd #
###########
fluentd:
image: thinkmicroservices/fluentd:latest
links:
- "elasticsearch"
ports:
- "24224:24224"
- "24224:24224/udp"
networks:
- spring_ri_network
depends_on:
- elasticsearch
#########################
# configuration service #
#########################
config-service:
image: thinkmicroservices/configuration-service:latest
environment:
- spring.main.banner-mode="off"
networks:
- spring_ri_network
ports:
- 8888:8888
depends_on:
- elasticsearch
- fluentd
- kibana
links:
- fluentd
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: configuration.svc
networks:
spring_ri_network:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment