Skip to content

Commit

Permalink
OPC: Adding Contextual Scoring service definition to default docker c…
Browse files Browse the repository at this point in the history
…ompose (#101)

* OPC: Adding Contextual Scoring service definition to default docker compose

* Formatting.

Signed-off-by: Ali Yahya <amyahya@gmail.com>

---------

Signed-off-by: Ali Yahya <amyahya@gmail.com>
Co-authored-by: Ali Yahya <amyahya@gmail.com>
  • Loading branch information
alex-wold and mrala authored Jan 24, 2024
1 parent 37aa0ff commit f3f8135
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions static/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,37 @@ services:
- 127.0.0.1:5432:5432/tcp
restart: always

contextual-scoring-service:
image: registry.dorf.plextrac.ninja/cicd-app-images/backend:${BACKEND_IMAGE:-$UPGRADE_STRATEGY}
deploy:
replicas: 1
depends_on:
- postgres
- redis
restart: always
environment:
CLIENT_DOMAIN_NAME: ${CLIENT_DOMAIN_NAME:?err}
REDIS_CONNECTION_STRING: "${REDIS_CONNECTION_STRING:-redis}"
REDIS_PASSWORD: "${REDIS_PASSWORD:?err}"
PG_HOST: ${PG_HOST:?err}
PG_CORE_DB: ${PG_CORE_DB:?err}
PG_CORE_RW_PASSWORD: ${PG_CORE_RW_PASSWORD:?err}
PG_CORE_RW_USER: ${PG_CORE_RW_USER:?err}
PG_CORE_RO_USER: ${PG_CORE_RO_USER:?err}
PG_CORE_RO_PASSWORD: ${PG_CORE_RO_PASSWORD:?err}
PG_DEBUG_QUERY_LOGGING: "true"
healthcheck:
test:
- "CMD"
- "npm"
- "run"
- "healthcheck:contextual-scoring-service"
- "liveness"
- "--"
- "--no-update-notifier"
entrypoint: npm run
command: "start:contextual-scoring-service"

volumes:
dbdata: {}
uploads: {}
Expand Down

0 comments on commit f3f8135

Please sign in to comment.