Skip to content

Commit 3958b56

Browse files
authored
Merge pull request #1470 from dandi/more-compose
Further improvements to `docker-compose.yml`
2 parents 2308f95 + c6f369f commit 3958b56

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

dandi/tests/data/dandiarchive-docker/docker-compose.yml

+3-22
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# <https://github.com/dandi/dandi-api/blob/master/docker-compose.override.yml>,
55
# but using images uploaded to Docker Hub instead of building them locally.
66

7-
version: '2.1'
8-
97
services:
108
django:
119
image: dandiarchive/dandiarchive-api
@@ -19,7 +17,7 @@ services:
1917
condition: service_healthy
2018
rabbitmq:
2119
condition: service_started
22-
environment:
20+
environment: &django_env
2321
DJANGO_CELERY_BROKER_URL: amqp://rabbitmq:5672/
2422
DJANGO_CONFIGURATION: DevelopmentConfiguration
2523
DJANGO_DANDI_DANDISETS_BUCKET_NAME: dandi-dandisets
@@ -32,7 +30,7 @@ services:
3230
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
3331
DJANGO_STORAGE_BUCKET_NAME: django-storage
3432
DJANGO_MINIO_STORAGE_MEDIA_URL: http://localhost:9000/django-storage
35-
DJANGO_DANDI_SCHEMA_VERSION:
33+
DJANGO_DANDI_SCHEMA_VERSION: ~
3634
DJANGO_DANDI_WEB_APP_URL: http://localhost:8085
3735
DJANGO_DANDI_API_URL: http://localhost:8000
3836
DJANGO_DANDI_JUPYTERHUB_URL: https://hub.dandiarchive.org
@@ -63,25 +61,8 @@ services:
6361
rabbitmq:
6462
condition: service_started
6563
environment:
66-
DJANGO_CELERY_BROKER_URL: amqp://rabbitmq:5672/
67-
DJANGO_CONFIGURATION: DevelopmentConfiguration
68-
DJANGO_DANDI_DANDISETS_BUCKET_NAME: dandi-dandisets
69-
DJANGO_DANDI_DANDISETS_LOG_BUCKET_NAME: dandiapi-dandisets-logs
70-
DJANGO_DANDI_DANDISETS_EMBARGO_BUCKET_NAME: dandi-embargoed-dandisets
71-
DJANGO_DANDI_DANDISETS_EMBARGO_LOG_BUCKET_NAME: dandiapi-embargo-dandisets-logs
72-
DJANGO_DATABASE_URL: postgres://postgres:postgres@postgres:5432/django
73-
DJANGO_MINIO_STORAGE_ACCESS_KEY: minioAccessKey
74-
DJANGO_MINIO_STORAGE_ENDPOINT: minio:9000
75-
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
76-
DJANGO_STORAGE_BUCKET_NAME: django-storage
77-
DJANGO_MINIO_STORAGE_MEDIA_URL: http://localhost:9000/django-storage
78-
DJANGO_DANDI_SCHEMA_VERSION:
64+
<< : *django_env
7965
DJANGO_DANDI_VALIDATION_JOB_INTERVAL: "5"
80-
DJANGO_DANDI_WEB_APP_URL: http://localhost:8085
81-
DJANGO_DANDI_API_URL: http://localhost:8000
82-
DJANGO_DANDI_JUPYTERHUB_URL: https://hub.dandiarchive.org
83-
DJANGO_DANDI_DEV_EMAIL: "[email protected]"
84-
DANDI_ALLOW_LOCALHOST_URLS: "1"
8566

8667
minio:
8768
image: minio/minio:RELEASE.2022-04-12T06-55-35Z

0 commit comments

Comments
 (0)