Skip to content

Instantly share code, notes, and snippets.

@sohangp
Created November 19, 2019 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sohangp/98b9d5168a8052e4afcedb0a1477baeb to your computer and use it in GitHub Desktop.
Save sohangp/98b9d5168a8052e4afcedb0a1477baeb to your computer and use it in GitHub Desktop.
docker-compose
version: "3.5"
services:
# Install postgres and setup the student database.
postgres:
container_name: postgres
image: debezium/postgres
ports:
- 5432:5432
environment:
- POSTGRES_DB=studentdb
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
# Install Elasticsearch.
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.0
environment:
- discovery.type=single-node
ports:
- 9200:9200
- 9300:9300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment