Skip to content

Commit

Permalink
Allow to scale services on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Nov 15, 2024
1 parent 59ba24d commit 7a9315c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
"
deploy:
<<: *deploy
replicas: 3
replicas: ${WEB_REPLICAS:-3}

default_worker:
<<: *default-app
Expand All @@ -72,6 +72,7 @@ services:
"
deploy:
<<: *deploy
replicas: ${DICOM_WORKER_REPLICAS:-3}

receiver:
<<: *default-app
Expand Down
4 changes: 4 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ CALLING_AE_TITLE="ADIT1DEV"
# The AE title where the receiver is listening for incoming files.
RECEIVER_AE_TITLE="ADIT1DEV"

# Replicas of the services that can be scaled (production only).
WEB_REPLICAS=5
DICOM_WORKER_REPLICAS=3

# The directory where download folders are mounted.
MOUNT_DIR="/mnt"

Expand Down

0 comments on commit 7a9315c

Please sign in to comment.