Skip to content

Commit

Permalink
docker-compose.yml: Deduplicate django & celery envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Jul 24, 2024
1 parent bd23dfb commit c6f369f
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions dandi/tests/data/dandiarchive-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
condition: service_healthy
rabbitmq:
condition: service_started
environment:
environment: &django_env
DJANGO_CELERY_BROKER_URL: amqp://rabbitmq:5672/
DJANGO_CONFIGURATION: DevelopmentConfiguration
DJANGO_DANDI_DANDISETS_BUCKET_NAME: dandi-dandisets
Expand All @@ -30,7 +30,7 @@ services:
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
DJANGO_STORAGE_BUCKET_NAME: django-storage
DJANGO_MINIO_STORAGE_MEDIA_URL: http://localhost:9000/django-storage
DJANGO_DANDI_SCHEMA_VERSION:
DJANGO_DANDI_SCHEMA_VERSION: ~
DJANGO_DANDI_WEB_APP_URL: http://localhost:8085
DJANGO_DANDI_API_URL: http://localhost:8000
DJANGO_DANDI_JUPYTERHUB_URL: https://hub.dandiarchive.org
Expand Down Expand Up @@ -61,25 +61,8 @@ services:
rabbitmq:
condition: service_started
environment:
DJANGO_CELERY_BROKER_URL: amqp://rabbitmq:5672/
DJANGO_CONFIGURATION: DevelopmentConfiguration
DJANGO_DANDI_DANDISETS_BUCKET_NAME: dandi-dandisets
DJANGO_DANDI_DANDISETS_LOG_BUCKET_NAME: dandiapi-dandisets-logs
DJANGO_DANDI_DANDISETS_EMBARGO_BUCKET_NAME: dandi-embargoed-dandisets
DJANGO_DANDI_DANDISETS_EMBARGO_LOG_BUCKET_NAME: dandiapi-embargo-dandisets-logs
DJANGO_DATABASE_URL: postgres://postgres:postgres@postgres:5432/django
DJANGO_MINIO_STORAGE_ACCESS_KEY: minioAccessKey
DJANGO_MINIO_STORAGE_ENDPOINT: minio:9000
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
DJANGO_STORAGE_BUCKET_NAME: django-storage
DJANGO_MINIO_STORAGE_MEDIA_URL: http://localhost:9000/django-storage
DJANGO_DANDI_SCHEMA_VERSION:
<< : *django_env
DJANGO_DANDI_VALIDATION_JOB_INTERVAL: "5"
DJANGO_DANDI_WEB_APP_URL: http://localhost:8085
DJANGO_DANDI_API_URL: http://localhost:8000
DJANGO_DANDI_JUPYTERHUB_URL: https://hub.dandiarchive.org
DJANGO_DANDI_DEV_EMAIL: "[email protected]"
DANDI_ALLOW_LOCALHOST_URLS: "1"

minio:
image: minio/minio:RELEASE.2022-04-12T06-55-35Z
Expand Down

0 comments on commit c6f369f

Please sign in to comment.