version: "3.0" services: elasticsearch: container_name: es-container image: docker.elastic.co/elasticsearch/elasticsearch:8.4.3 environment: - xpack.security.enabled=false - "discovery.type=single-node" - ELASTIC_PASSWORD=iN9v2p7TpcjN2AqENCbN networks: - es-net ports: - 9200:9200 kibana: container_name: kb-container image: docker.elastic.co/kibana/kibana:8.4.3 environment: - ELASTICSEARCH_HOSTS=http://es-container:9200 networks: - es-net depends_on: - elasticsearch ports: - 5601:5601 networks: es-net: driver: bridge ipam: driver: default config: - subnet: 172.27.238.0/24 gateway: 172.27.238.1