Skip to content

Instantly share code, notes, and snippets.

@Kumawatlalit912
Created February 15, 2023 23:55
Show Gist options
  • Save Kumawatlalit912/27271193ac8d7297203aa1cef5bbf2c4 to your computer and use it in GitHub Desktop.
Save Kumawatlalit912/27271193ac8d7297203aa1cef5bbf2c4 to your computer and use it in GitHub Desktop.
updated docker-compose.yml file for version 3
#uncomment things you want to use and comment that you dont want
#Give it A star
version: "3"
services:
#mongodb:
#container_name: mongodb
#image: mongo:latest
#ports:
# - 27017:27017
#volumes:
# - ~/docker/mongodb:/data/db
#redis:
#container_name: redis
#image: redis:latest
#ports:
# - 6379:6379
elasticsearch:
container_name: elasticsearch
image: elasticsearch:8.6.1
ports:
- 9200:9200
- 9300:9300
volumes:
# # for macos
# - ~/docker/elasticsearch:/usr/share/elasticsearch/data
# for linux dist.
- ~/docker/elasticsearch:/data/elasticsearch/
environment:
- discovery.type=single-node
- ES_HOST=localhost
- ES_PORT=9200
- xpack.security.audit.enabled=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
# - ELASTIC_PASSWORD=password # password for default user: elastic
kibana:
container_name: kibana
image: kibana:8.6.1
ports:
- 5601:5601
depends_on:
- elasticsearch
environment:
- ELASTICSEARCH_URL=http://localhost:9200
# - xpack.security.enabled=false
# - ELASTICSEARCH_USERNAME=elastic
# - ELASTICSEARCH_PASSWORD=password
minio:
container_name: minio
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_storage:/data
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
command: server --console-address ":9001" /data
volumes:
minio_storage: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment