Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: docker-compose.override.yml for cadd-rest-api #73

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions cadd-rest-api.env.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Environment for cadd-rest-api related containers.

LC_ALL=en_US.UTF-8

DATABASE_URL=/data/db/cadd_rest_api.db

# We can share one redis instance but not the database with another celery.
CELERY_BROKER_URL=redis://redis:6379/1
# Only one CADD process can be run per CADD container because of using
# Snakemake.
CELERY_WORKERS=1

DJANGO_ALLOWED_HOSTS="*"
DJANGO_SECRET_KEY="kah3geeLeed1Kiej9ohng4aiDo0uho4aiRa1KoojeMaiG3qua3Ahku6voo9eeT2a"
DJANGO_SETTINGS_MODULE="config.settings.production"
DJANGO_SECURE_SSL_REDIRECT=0

CADD_SH=/opt/miniconda3/share/cadd-scripts-1.6.post1-0/CADD.sh
CADD_CONDA=/opt/miniconda3/bin/activate
CADD_TIMEOUT=300
8 changes: 5 additions & 3 deletions docker-compose.override.yml-cadd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ services:

cadd-rest-api-server:
<<: *service_default
image: "${image_cadd_name-varfish-org/cadd-rest-api}:${image_cadd_version-0.3.4-0}"
image: "${image_base-ghcr.io/varfish-org}/\
${image_cadd_name:-cadd-rest-api}:${image_cadd_version:-main}"
env_file: cadd-rest-api.env
command:
- wsgi
Expand All @@ -36,8 +37,9 @@ services:
cadd-rest-api-worker:
<<: *service_default
deploy:
replicas: 5
image: "${image_cadd_name-varfish-org/cadd-rest-api}:${image_cadd_version-0.3.4-0}"
replicas: "${cadd_rest_api_worker_replicas:-5}"
image: "${image_base-ghcr.io/varfish-org}/\
${image_cadd_name:-cadd-rest-api}:${image_cadd_version:-main}"
env_file: cadd-rest-api.env
command:
- celeryd
Expand Down