Skip to content

Commit

Permalink
Merge pull request #2412 from LD4P/docker-compose
Browse files Browse the repository at this point in the history
Comment out monitoring apps in docker-compose.
  • Loading branch information
jermnelson committed Sep 2, 2020
2 parents e40f886 + 36d3bbd commit 6f100a1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,20 @@ To trigger a test exception, doubleclick "The underdrawing for the new world of
### Monitoring ElasticSearch
DejaVu is available for monitoring local ElasticSearch.

To use DejaVu, browse to http://localhost:1358, and when prompted, enter `http://localhost:9200` as the ElasticSearch URL and `*` as the index name.
To use DejaVu:
1. Uncomment the appropriate section in `docker-compose.yml`. (Do not commit this change.)
2. `docker-compose up -d`
3. Browse to http://localhost:1358.
4. When prompted, enter `http://localhost:9200` as the ElasticSearch URL and `*` as the index name.

### Monitoring Mongo
Mongo-Express is available for monitoring local Mongo.

To use Mongo-Express:
1. Uncomment the appropriate section in `docker-compose.yml`. (Do not commit this change.)
2. `docker-compose up -d`
3. Browse to http://localhost:8082.


#### Changes to environment variables

Expand Down
33 changes: 19 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
- api
pipeline:
image: ld4p/sinopia_indexing_pipeline:latest
# Replace image with build to build from local code. Do not commit docker-compose.yml.
# build:
# context: ../sinopia_indexing_pipeline
environment:
Expand All @@ -36,12 +37,13 @@ services:
ports:
- 9200:9200
- 9300:9300
elasticsearch-ui:
image: appbaseio/dejavu:latest
ports:
- 1358:1358
depends_on:
- elasticsearch
# Uncomment to use Dejavu to monitor Elasticsearch. Do not commit docker-compose.yml.
# elasticsearch-ui:
# image: appbaseio/dejavu:latest
# ports:
# - 1358:1358
# depends_on:
# - elasticsearch
mongo:
image: mongo:4.4
restart: always
Expand All @@ -54,23 +56,26 @@ services:
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
mongo-setup:
image: ld4p/sinopia_dev_setup:latest
# Replace image with build to build from local code. Do not commit docker-compose.yml.
# build:
# context: ../sinopia_api
# dockerfile: Dockerfile-setup
depends_on:
- mongo
- pipeline
restart: "no"
mongo-express:
image: mongo-express
restart: always
ports:
- 8082:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: sekret
# Uncomment to use Mongo-Express to monitor Mongo. Do not commit docker-compose.yml.
# mongo-express:
# image: mongo-express
# restart: always
# ports:
# - 8082:8081
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: sekret
api:
image: ld4p/sinopia_api:latest
# Replace image with build to build from local code. Do not commit docker-compose.yml.
# build:
# context: ../sinopia_api
# dockerfile: Dockerfile
Expand Down

0 comments on commit 6f100a1

Please sign in to comment.