Skip to content

Instantly share code, notes, and snippets.

@vinaypuppal
Created October 31, 2019 02:31
Show Gist options
  • Save vinaypuppal/ab2c0cdc600f017b7de519dc811cf7b8 to your computer and use it in GitHub Desktop.
Save vinaypuppal/ab2c0cdc600f017b7de519dc811cf7b8 to your computer and use it in GitHub Desktop.
version: "3.7"
services:
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongo-vol:/var/lib/mongo/data
networks:
- front-tier
redis:
image: redis:3.2.5
ports:
- "6379:6379"
networks:
- front-tier
elasticsearch:
image: elasticsearch:5.6
ports:
- "9200:9200"
volumes:
- es-vol:/usr/share/elasticsearch/data
networks:
- front-tier
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
elasticsearch_7:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.1
ports:
- "9300:9200"
volumes:
- es-vol:/usr/share/elasticsearch7/data
networks:
- front-tier
environment:
- discovery.type=single-node
- cluster.name=docker-cluster-7
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
kibana:
image: kibana:5.6
ports:
- "5601:5601"
networks:
- front-tier
kibana7:
image: docker.elastic.co/kibana/kibana:7.4.1
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch_7:9200
ports:
- "5602:5601"
networks:
- front-tier
postgres:
image: postgres:10.6-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: dev
ports:
- "5432:5432"
volumes:
- pg-vol:/var/lib/postgresql/data
networks:
- front-tier
volumes:
mongo-vol:
driver: local
pg-vol:
driver: local
es-vol:
driver: local
networks:
front-tier:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment