Commit 4aac6e83 authored by jornh's avatar jornh Committed by Tao Feng

productionize docker-compose a bit more (#123)

* Gunicorn-ify compose - all services have 2 workers

* gitignore

* PR template a bit leaner

* Bump search to 1.4.1
parent abd98ab6
### Summary of Changes ### Summary of Changes
_Include a summary of changes then remove this line_ <!-- _Include a summary of changes then, optionally, remove this line_ -->
### Documentation ### Documentation
_What documentation did you add or modify and why? Add any relevant links then remove this line_ <!-- _What documentation did you add or modify and why? Add any relevant links then optionally, remove this line_ -->
### CheckList ### CheckList
Make sure you have checked **all** steps below to ensure a timely review. Make sure you have checked **all** steps below to ensure a timely review.
- [ ] PR title addresses the issue accurately and concisely. - [ ] PR title addresses the issue accurately and concisely.
- [ ] PR includes a summary of changes. - [ ] PR includes a summary of changes.
- [ ] I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)" - [ ] My commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
example/backup/
example/docker/neo4j/plugins/
example/docker/es_data*
...@@ -14,6 +14,8 @@ services: ...@@ -14,6 +14,8 @@ services:
- 7687:7687 - 7687:7687
volumes: volumes:
- ./example/docker/neo4j/conf:/conf - ./example/docker/neo4j/conf:/conf
- ./example/docker/neo4j/plugins:/plugins
- ./example/backup:/backup
networks: networks:
- amundsennet - amundsennet
elasticsearch: elasticsearch:
...@@ -21,10 +23,14 @@ services: ...@@ -21,10 +23,14 @@ services:
container_name: es_amundsen container_name: es_amundsen
ports: ports:
- 9200:9200 - 9200:9200
# TODO - tried mounting ES data outside the volume.
# Not confident I did it right, I saw it acting up on restarts, plz halp!
# volumes:
# - ./example/docker/es_data:/usr/share/elasticsearch/data
networks: networks:
- amundsennet - amundsennet
amundsensearch: amundsensearch:
image: amundsendev/amundsen-search:1.3.0 image: amundsendev/amundsen-search:1.4.1
container_name: amundsensearch container_name: amundsensearch
ports: ports:
- 5001:5000 - 5001:5000
...@@ -34,6 +40,7 @@ services: ...@@ -34,6 +40,7 @@ services:
- amundsennet - amundsennet
environment: environment:
- PROXY_ENDPOINT=es_amundsen - PROXY_ENDPOINT=es_amundsen
command: gunicorn -w 2 --bind :5000 search_service.search_wsgi
amundsenmetadata: amundsenmetadata:
image: amundsendev/amundsen-metadata:1.1.2 image: amundsendev/amundsen-metadata:1.1.2
container_name: amundsenmetadata container_name: amundsenmetadata
...@@ -45,8 +52,9 @@ services: ...@@ -45,8 +52,9 @@ services:
- amundsennet - amundsennet
environment: environment:
- PROXY_HOST=bolt://neo4j_amundsen - PROXY_HOST=bolt://neo4j_amundsen
command: gunicorn -w 2 --bind :5000 metadata_service.metadata_wsgi
amundsenfrontend: amundsenfrontend:
image: amundsendev/amundsen-frontend:1.0.9 image: amundsendev/amundsen-frontend:1.1.0
container_name: amundsenfrontend container_name: amundsenfrontend
depends_on: depends_on:
- amundsenmetadata - amundsenmetadata
...@@ -58,7 +66,12 @@ services: ...@@ -58,7 +66,12 @@ services:
environment: environment:
- SEARCHSERVICE_BASE=http://amundsensearch:5000 - SEARCHSERVICE_BASE=http://amundsensearch:5000
- METADATASERVICE_BASE=http://amundsenmetadata:5000 - METADATASERVICE_BASE=http://amundsenmetadata:5000
# Only for easy config-less Quickstart bookmark evalutation. `TestConfig` extends ordinary `LocalConfig` by
# defining `AUTH_USER_METHOD` to a hardcoded dummy user in `amundsen_application.tests.test_utils.get_test_user()`
# See further docs in https://github.com/lyft/amundsenfrontendlibrary/blob/master/docs/configuration.md#flask
# and https://github.com/lyft/amundsenfrontendlibrary/blob/master/docs/configuration.md#authentication
- FRONTEND_SVC_CONFIG_MODULE_CLASS=amundsen_application.config.TestConfig - FRONTEND_SVC_CONFIG_MODULE_CLASS=amundsen_application.config.TestConfig
command: gunicorn -w 2 --bind :5000 amundsen_application.wsgi
networks: networks:
amundsennet: amundsennet:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment