1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| version: "3.7" services: flog: image: mingrammer/flog container_name: flog command: "-f json -l -d 1" depends_on: - fluentd links: - fluentd logging: driver: "fluentd" options: fluentd-address: localhost:24224 tag: fake.log networks: - elk-nginx
fluentd: image: fluentd:${FLUENTD_VERSION} container_name: fluentd_${FLUENTD_VERSION} build: context: ./fluentd args: FLUENTD_VERSION: $FLUENTD_VERSION ports: - "24224:24224" - "24224:24224/udp" depends_on: - "elasticsearch" networks: - elk-nginx volumes: - ./fluentd/etc:/fluentd/etc
elasticsearch: image: elasticsearch:${ELK_VERSION} container_name: elasticsearch_${ELK_VERSION} build: context: ./elasticsearch args: ELK_VERSION: $ELK_VERSION mem_limit: 1G ports: - "9200:9200" expose: - 9200 volumes: - ./elasticsearch/data:/usr/share/elasticsearch/data environment: - discovery.type=single-node - "ES_JAVA_OPTS=-Xms512m -Xmx512m" - xpack.security.enabled=true networks: - elk-nginx
kibana: image: kibana:${ELK_VERSION} container_name: kibana_${ELK_VERSION} build: context: kibana/ args: ELK_VERSION: $ELK_VERSION mem_limit: 1G volumes: - ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml - ./kibana/data:/usr/share/kibana/data links: - "elasticsearch" ports: - "5601:5601" networks: - elk-nginx
networks: elk-nginx: driver: bridge
|