Thank you for reading this post, don't forget to subscribe!
cat docker-compose.yml
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 |
version: '3.7' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3 container_name: elasticsearch restart: always environment: - TZ=Europe/Kiev - ELASTIC_PASSWORD=password - discovery.type=single-node - "ES_JAVA_OPTS=-Xms2048m -Xmx2048m" - xpack.security.enabled=true ulimits: memlock: soft: -1 hard: -1 nofile: soft: 65536 hard: 65536 cap_add: - IPC_LOCK volumes: - /home/ubuntu/elastic/elasticsearch/data:/usr/share/elasticsearch/data - /etc/localtime:/etc/localtime:ro ports: - 9200:9200 - 9300:9300 kibana: container_name: kibana image: docker.elastic.co/kibana/kibana:7.9.3 restart: always environment: - TZ=Europe/Kiev - server.name=kibana - server.host=0.0.0.0 - elasticsearch.url=http://elasticsearch:9200 - ELASTICSEARCH_USERNAME=elastic - ELASTICSEARCH_PASSWORD=password ports: - 5601:5601 depends_on: - elasticsearch |