Skip to content

Commit

Permalink
compose: Set top-level project name
Browse files Browse the repository at this point in the history
Set the top-level project name in the docker-compose files so that it
can be used as the default prefix for container names. Use 'cms' for all
stacks apart from the load tests (i.e. 'cms-load') and the dev
deployment (i.e. 'dev-cms'). The project name can be overridden on
deployment through the '-p' command line flag or by setting the
'COMPOSE_PROJECT_NAME' environment variable.

Signed-off-by: Phoevos Kalemkeris <[email protected]>
  • Loading branch information
phoevos committed Jan 16, 2025
1 parent f4fb0ff commit a5d74e1
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 10 deletions.
2 changes: 2 additions & 0 deletions docker-compose-auth.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.6"

name: cms

services:

auth-db:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-celery.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.6"

name: cms

services:
worker:
build:
Expand Down
12 changes: 2 additions & 10 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This is for spinning up core services as single hosts in the DEV environment
version: "3.6"

name: dev-cms

services:

medcat-snomed:
extends:
file: ./docker-compose.yml
service: medcat-snomed
image: cogstack-model-serve_medcat-snomed:dev
labels:
- org.cogstack.model-serve.env=dev
volumes:
- ${MODEL_PACKAGE_FULL_PATH}:/app/model/model.zip:ro
environment:
Expand Down Expand Up @@ -38,8 +38,6 @@ services:
file: ./docker-compose.yml
service: medcat-icd10
image: cogstack-model-serve_medcat-icd10:dev
labels:
- org.cogstack.model-serve.env=dev
environment:
- BASE_MODEL_FULL_PATH=$MODEL_PACKAGE_FULL_PATH
- AWS_ACCESS_KEY_ID=
Expand All @@ -66,8 +64,6 @@ services:
file: ./docker-compose.yml
service: de-identification
image: cogstack-model-serve_de-identification:dev
labels:
- org.cogstack.model-serve.env=dev
environment:
- BASE_MODEL_FULL_PATH=$MODEL_PACKAGE_FULL_PATH
- AWS_ACCESS_KEY_ID=
Expand All @@ -94,8 +90,6 @@ services:
file: ./docker-compose.yml
service: medcat-deid
image: cogstack-model-serve_medcat-deid:dev
labels:
- org.cogstack.model-serve.env=dev
environment:
- BASE_MODEL_FULL_PATH=$MODEL_PACKAGE_FULL_PATH
- AWS_ACCESS_KEY_ID=
Expand All @@ -122,8 +116,6 @@ services:
file: ./docker-compose.yml
service: medcat-umls
image: cogstack-model-serve_medcat-umls:dev
labels:
- org.cogstack.model-serve.env=dev
environment:
- BASE_MODEL_FULL_PATH=$MODEL_PACKAGE_FULL_PATH
- AWS_ACCESS_KEY_ID=
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-log.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.6"

name: cms

services:

mongodb:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-mlflow.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.6"

name: cms

services:

mlflow-db:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-mon.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.6"

name: cms

services:

prometheus:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-proxy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.6"

name: cms

services:

proxy:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3.6"

name: cms

services:

medcat-snomed:
Expand Down
2 changes: 2 additions & 0 deletions tests/load/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3"

name: cms-load

services:
master:
image: locustio/locust:2.26.0
Expand Down

0 comments on commit a5d74e1

Please sign in to comment.