Created
November 19, 2019 18:30
-
-
Save sohangp/98b9d5168a8052e4afcedb0a1477baeb to your computer and use it in GitHub Desktop.
docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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