Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
un-comment out services in d.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchneider committed Aug 17, 2018
1 parent 5a63d35 commit 3a1fee4
Showing 1 changed file with 56 additions and 67 deletions.
123 changes: 56 additions & 67 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ volumes:

services:

# nlp-api:
# container_name: 'NLP_API'
# hostname: ${NLP_API_HOSTNAME}
# build:
# context: ./nlp
# dockerfile: Dockerfile
# ports:
# - "${NLP_API_HOST_PORT}:${NLP_API_CONTAINER_PORT}"
# volumes:
# - ./nlp:/api
# command: ["/api/scripts/wait-for-it.sh", "${NLP_SOLR_HOSTNAME}:${NLP_SOLR_CONTAINER_PORT}", "${NLP_MONGO_HOSTNAME}:${NLP_MONGO_CONTAINER_PORT}", "${SCHEDULER_HOSTNAME}:${SCHEDULER_CONTAINER_PORT}", "${NLP_PG_HOSTNAME}:${NLP_PG_CONTAINER_PORT}", "--timeout=1800", "--", "python3", "api.py"]
# extra_hosts: #for container --> host comms
# - "docker.local:172.16.123.1"
# env_file:
# - .env
#
# scheduler:
# container_name: 'LUIGI_SCHEDULER'
# hostname: ${SCHEDULER_HOSTNAME}
# image: 'axiom/docker-luigi:2.7.1'
# ports:
# - "${SCHEDULER_HOST_PORT}:${SCHEDULER_CONTAINER_PORT}"
# env_file:
# - .env
nlp-api:
container_name: 'NLP_API'
hostname: ${NLP_API_HOSTNAME}
build:
context: ./nlp
dockerfile: Dockerfile
ports:
- "${NLP_API_HOST_PORT}:${NLP_API_CONTAINER_PORT}"
volumes:
- ./nlp:/api
command: ["/api/scripts/wait-for-it.sh", "${NLP_SOLR_HOSTNAME}:${NLP_SOLR_CONTAINER_PORT}", "${NLP_MONGO_HOSTNAME}:${NLP_MONGO_CONTAINER_PORT}", "${SCHEDULER_HOSTNAME}:${SCHEDULER_CONTAINER_PORT}", "${NLP_PG_HOSTNAME}:${NLP_PG_CONTAINER_PORT}", "--timeout=1800", "--", "python3", "api.py"]
extra_hosts: #for container --> host comms
- "docker.local:172.16.123.1"
env_file:
- .env

scheduler:
container_name: 'LUIGI_SCHEDULER'
hostname: ${SCHEDULER_HOSTNAME}
image: 'axiom/docker-luigi:2.7.1'
ports:
- "${SCHEDULER_HOST_PORT}:${SCHEDULER_CONTAINER_PORT}"
env_file:
- .env

nlp-solr:
container_name: 'NLP_SOLR'
Expand All @@ -51,38 +51,38 @@ services:
env_file:
- .env

# nlp-mongo:
# container_name: 'NLP_MONGO'
# image: mongo
# hostname: ${NLP_MONGO_HOSTNAME}
# environment:
# - MONGO_DATA_DIR=/data/db
# - MONGO_LOG_DIR=/dev/null
# - MONGO_INITDB_DATABASE=${NLP_MONGO_DATABASE}
# ports:
# - "${NLP_MONGO_HOST_PORT}:${NLP_MONGO_CONTAINER_PORT}"
# volumes:
# - './utilities/nlp-mongo/setup.js:/docker-entrypoint-initdb.d/setup.js'
# - 'nlp-mongodata:/data/db'
# env_file:
# - .env
#
# nlp-postgres:
# container_name: 'NLP_POSTGRES'
# hostname: ${NLP_PG_HOSTNAME}
# build:
# context: ./utilities/nlp-postgres
# dockerfile: Dockerfile
# environment:
# POSTGRES_USER: ${NLP_PG_USER}
# POSTGRES_PASSWORD: ${NLP_PG_PASSWORD}
# POSTGRES_DB: ${NLP_PG_DATABASE}
# ports:
# - "${NLP_PG_HOST_PORT}:${NLP_PG_CONTAINER_PORT}"
# volumes:
# - 'nlp-pgdata:/var/lib/postgresql/data/'
# env_file:
# - .env
nlp-mongo:
container_name: 'NLP_MONGO'
image: mongo
hostname: ${NLP_MONGO_HOSTNAME}
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGO_INITDB_DATABASE=${NLP_MONGO_DATABASE}
ports:
- "${NLP_MONGO_HOST_PORT}:${NLP_MONGO_CONTAINER_PORT}"
volumes:
- './utilities/nlp-mongo/setup.js:/docker-entrypoint-initdb.d/setup.js'
- 'nlp-mongodata:/data/db'
env_file:
- .env

nlp-postgres:
container_name: 'NLP_POSTGRES'
hostname: ${NLP_PG_HOSTNAME}
build:
context: ./utilities/nlp-postgres
dockerfile: Dockerfile
environment:
POSTGRES_USER: ${NLP_PG_USER}
POSTGRES_PASSWORD: ${NLP_PG_PASSWORD}
POSTGRES_DB: ${NLP_PG_DATABASE}
ports:
- "${NLP_PG_HOST_PORT}:${NLP_PG_CONTAINER_PORT}"
volumes:
- 'nlp-pgdata:/var/lib/postgresql/data/'
env_file:
- .env

ingest-api:
container_name: INGEST_API
Expand Down Expand Up @@ -174,17 +174,6 @@ services:
volumes:
- 'redisdata:/data'

results-client:
container_name: RESULTS_CLIENT
hostname: ${RESULTS_CLIENT_HOSTNAME}
build:
context: ./utilities/results-client
dockerfile: Dockerfile
environment:
- "PORT=${RESULTS_CLIENT_HOST_PORT}"
ports:
- "${RESULTS_CLIENT_HOST_PORT}:${RESULTS_CLIENT_CONTAINER_PORT}"

swagger:
container_name: MAPPER_Swagger_Docs
hostname: ${MAPPER_SWAGGER_HOSTNAME}
Expand Down

0 comments on commit 3a1fee4

Please sign in to comment.